
Squid プロキシを使用して、2 つのサーバー間で http プロキシを作成したいと考えています。VPS の 1 つ (番号 1) はイラン (CentOS 7) にあり、もう 1 つ (番号 2) は他の国にあります。VPS 2 に Squid プロキシをインストールし、VPS 1 に v2ray をインストールしました。v2ray アウトバウンドを次のように構成します。
{
"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": {}
}
しかし、v2ray でアカウントを作成すると、機能せず失敗します。イランのインターネット検閲を回避するために、Squid プロキシと v2ray スクリプトを使用してプロキシを作成するのを手伝ってください。ご協力ありがとうございます。