v2ray y conectarse a un servidor proxy

v2ray y conectarse a un servidor proxy

Quiero usar un proxy Squid para crear un proxy http entre 2 servidores. uno de mis vps (num 1) está en Irán (centos 7) y otro (num 2) es otro país. Instalé squid proxy en vps 2 y v2ray en vps 1. configuro v2ray saliente de esta manera:

{
  "log": {
    "loglevel": "warning", 
    "access": "./access.log"
  },
 
  "api": {
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ],
    "tag": "api"
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 62789,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "127.0.0.1"
      },
      "tag": "api"
    }
  ],
  "outbounds": [
    {
      "protocol": "vmess",
      "settings": { 
        "vnext": [
          {
            "address": "1.1.1.1",
            "port": 8888,
            "users": [
              {
                "alterId": 64,
                "id": "b12614c5-5ca4-4eba-a215-c61d642116ce"
              }
            ]
          }
        ]
      },
      "tag": "VMESS",
      "proxySettings": {
          "tag": "HTTP"  
        }
    },
    {
      "protocol": "http",
      "settings": {
        "servers": [
          {
            "address": "my ip vps2",
            "port": 3128,
            "users": [
              {
                 "user": "username", 
                 "pass": "password" 
              }
            ]
          }
        ]
      },
      "tag": "HTTP"
    }
  
,
    {
      "protocol": "freedom",
      "settings": {}
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "statsUserUplink": true,
        "statsUserDownlink": true
      }
    },
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  },
  "routing": {
    "rules": [
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ],
        "type": "field"
      }
    ]
  },
  "stats": {}
}

pero cuando creo una cuenta en v2ray no funciona y falla. Por favor, ayúdenme a crear un proxy con squid proxy y un script v2ray para evitar la censura en Internet en Irán. gracias por tu ayuda.

información relacionada