一、服务器端配置文件(先购买VPS代理服务器):

       /usr/local/etc/v2ray/config.json

{
  "inbounds": [
    {
      "port": 10800,
      "listen": "0.0.0.0",
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "d660738b-3891-46fe-81a4-2228e3d557f5",
            "level": 1,
            "alterId": 64
          }
        ]
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    }
  ]
}



二、客户端配置文件:

     {
"inbounds": [{
    "port": 1081,
    "listen": "127.0.0.1",
    "protocol": "socks",
    "settings": {
      "udp": true
    }
  }],
  "outbounds": [{
    "protocol": "vmess",
    "settings": {
      "vnext": [{
        "address": "204.10.19.198",
        "port": 10800,
        "users": [{ "id": "d660738b-3891-46fe-81a4-2228e3d557f5" }]
      }]
    }
  },{
    "protocol": "freedom",
    "tag": "direct",
    "settings": {}
  }],
  "routing": {
    "domainStrategy": "IPOnDemand",
    "rules": [{
      "type": "field",
      "ip": ["geoip:private"],
      "outboundTag": "direct"
    }]
  }
}


三、Ubuntu网络代理设置

    




https://virmach.com/best-cheapest-linux-vps/#
WEB account: ABB P: FreeWorld@202408
IP: 204.10.19.198

Ubuntu OS account: root     P: citi2024

 




标签: none

评论已关闭