全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1138|回复: 8

【已解决】socks代理指定ip出口?

[复制链接]
发表于 2022-3-29 21:02:17 | 显示全部楼层 |阅读模式
本帖最后由 asdii 于 2022-3-29 22:54 编辑

我现在有台服务器有多个ip,我想每一ip都匹配一个socks代理,怎么实现呢?

最后还是用了v2ray

大概原理就是,同ip进,同ip出
inbound

  1. {
  2.     "port": 11111,
  3.     "listen": "1.1.1.1",
  4.     "protocol": "socks",
  5.     "settings": {
  6.         "auth": "password",
  7.         "accounts": [
  8.             {
  9.                 "user": "user",
  10.                 "pass": "password"
  11.             }
  12.         ],
  13.         "udp": false,
  14.         "ip": "1.1.1.1",
  15.         "userLevel": 0
  16.     },
  17.     "streamSettings": {},
  18.     "tag": "1111-in",
  19.     "domainOverride": [
  20.         "http",
  21.         "tls"
  22.     ]
  23. }


复制代码


outbound
  1. {
  2. "sendThrough": "1.1.1.1",
  3. "protocol": "freedom",
  4. "settings": {
  5. "domainStrategy": "UseIP"
  6. },
  7. "tag": "1111-out"
  8. },
复制代码



Routing
  1. {
  2. "type": "field",
  3. "inboundTag": "1111-in",
  4. "outboundTag": "1111-out"
  5. },
复制代码
发表于 2022-3-29 21:04:46 来自手机 | 显示全部楼层
好像见过这种脚本,是不是美国站群搭游戏线路的的
发表于 2022-3-29 21:05:56 | 显示全部楼层
socks代理软件是那个
发表于 2022-3-29 21:07:04 | 显示全部楼层
看我之前写的文章:
  1. https://cikeblog.com/use-docker-to-realize-server-multi-ip-communication.html
复制代码
发表于 2022-3-29 21:08:56 | 显示全部楼层
可以使用指定用户打开socks5代理软件,然后用iptable指定不同的用户用不同的出口ip
之前搭建过大型代理池,用的这种方法
发表于 2022-3-29 21:13:21 | 显示全部楼层
sendThrough

https://www.v2fly.org/config/outbounds.html
发表于 2022-3-29 21:19:48 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2022-3-29 22:53:17 | 显示全部楼层
这是最好的年代 发表于 2022-3-29 21:13
sendThrough

https://www.v2fly.org/config/outbounds.html

最后还是用v2ray了,研究了我一个小时
发表于 2022-3-29 23:12:54 来自手机 | 显示全部楼层
试试看看看了,谢谢分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-4 06:10 , Processed in 0.107767 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表