|
我现在有台服务器有多个ip,我想每一ip都匹配一个socks代理,怎么实现呢?
最后还是用了v2ray
大概原理就是,同ip进,同ip出
inbound - { "port": 11111, "listen": "1.1.1.1", "protocol": "socks", "settings": { "auth": "password", "accounts": [ { "user": "user", "pass": "password" } ], "udp": false, "ip": "1.1.1.1", "userLevel": 0 }, "streamSettings": {}, "tag": "1111-in", "domainOverride": [ "http", "tls" ]}
复制代码
outbound - {"sendThrough": "1.1.1.1","protocol": "freedom","settings": {"domainStrategy": "UseIP"},"tag": "1111-out"},
复制代码
Routing - {"type": "field","inboundTag": "1111-in","outboundTag": "1111-out"},
复制代码 |
|