分类 默认分类 下的文章

一些VPS(比如virmach)做代理访问google会出验证码。
做个分流,google走IPv6,其他走ipv4,vps本身的IP出去。

先装warp让他支持IPV6。
参考:https://p3terx.com/archives/cloudflare-warp-configuration-script.html

# 自动配置 WARP WireGuard 双栈全局网络
bash <(curl -fsSL git.io/warp.sh) d

然后修改V2RAY的配置:

{
  "inbounds": [
    {
      "port": 23333,
      "listen": "127.0.0.1",
      "protocol": "vmess",    
      "settings": {
        "clients": [
          {
            "id": "66666666-8888-7777-6666-888888888888",  
            "alterId": 64
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "wsSettings": {
          "path":"/t00ls.kele/"
        }
      },
      "sniffing": {
        "enabled": true,
        "destOverride": ["http", "tls"]
      }
    }
  ],
  "outbounds": [
    {
      "tag":"IP4_out",
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag":"IP6_out",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIPv6"
      }
    }
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "outboundTag": "IP6_out",
        "domain": ["geosite:netflix","geosite:google"]
      },
      {
        "type": "field",
        "outboundTag": "IP4_out",
        "network": "udp,tcp"
      }
    ]
  }
}

重启V2RAY。

IPv4 优先
编辑 /etc/gai.conf 文件,在末尾添加下面这行配置:

precedence ::ffff:0:0/96  100

IPv6 优先
编辑 /etc/gai.conf 文件,在末尾添加下面这行配置:

label 2002::/16   2

验证优先级
执行 curl ip.p3terx.com 命令,显示 IPv4 地址则代表 IPv4 优先,否则为 IPv6 优先。

最近测试某产品,nmap发现该产品开放了110和25,但是没有特征字符串,很奇怪。
然后产品线说,我们测试没有这俩端口啊。
然后,我就装上终端模拟器,直接在设备上netstat也没发现开启110和25,这就奇怪了。
在我本机电脑,先telnet IP 110,然后查看netstat -ano| findstr "110",
根据PID找到进程名,tasklist | findstr "PID",
发现进程为“HipsDaemon.exe”
是火绒的进程。
奇怪了。火绒为啥本地开个110和25端口呢。
往上搜了下,原来是邮件监控功能搞的鬼,应该是防止本地中木马,
本地的邮件客户端外发垃圾邮件,所以火绒给过滤一遍的意思吧。

仅此记录一下。

道德三皇五帝,功名夏侯商周。七雄五霸闹春秋,顷刻兴亡过手。春史几行名姓,北邙无数荒丘。前人田地后人收,说甚龙争虎斗。

杨慎作有《西江月》一首,“落日西飞滚滚,大江东去滔滔。夜来今日又明朝,蓦地青春过了。千古风流人物,一时多少英豪。龙争虎斗,茫劬劳,落得一场谈笑。” 冯梦龙在这里唱和一下,遂有这首词:“道德三皇五帝,功名夏侯商周。七雄五霸闹春秋,秦汉兴亡过乎。春史几行名姓,北邙无数荒丘。前人田地后人收,说甚龙争虎斗”。文字略有出入。

#Cloudflare
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 131.0.72.0/22;
set_real_ip_from 104.16.0.0/13;
set_real_ip_from 104.24.0.0/14;
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 2a06:98c0::/29;
set_real_ip_from 2c0f:f248::/32;

# use any of the following two
real_ip_header CF-Connecting-IP;
#real_ip_header X-Forwarded-For;