Sign inSign up

chaoszhu/pcap2socks

By chaoszhu

•Updated over 2 years ago

https://github.com/zhxie/pcap2socks的docker封装,目前只在Linux环境测试。感谢大佬~

Image
0

82

chaoszhu/pcap2socks repository overview

⁠Windows用户请移步作者原仓库 --> https://github.com/zhxie/pcap2socks⁠

⁠部署

# 查看网卡名称
ifconfig 
# 我这里是enp4s0
docker run -d --net=host --restart=always chaoszhu/pcap2socks:1.0.0 -vv --mtu 1500 -P u -d 127.0.0.1:1080 -i enp4s0
# 可移除-vv参数不打印详细的日志

参数说明:

  • -P u:使用uu加速器预设。也可指定参数替代这个指令: -s <需要代理的设备的 IP 地址> -p <需要代理的设备上所填写的网关>
  • -d 127.0.0.1:1080:socks代理地址
  • -i enp4s0:enp4s0为网卡名称, 使用 ifconfig 查看

⁠switch配置:

# 举例:启动后查看打印日志
docker logs -f [容器ID

# IP Address  172.24.102.101
# Mask           255.255.0.0
# Gateway     172.24.101.101

# switch网络配置(链接同局域网wifi2.4g)

# ------在IP地址设置------
# IP地址: 172.24.102.101
# 子网掩码:255.255.0.0 
# 默认网关: 172.24.101.101

# ------DNS设置------
# DNS:8.8.8.8

支持原项目所有参数:https://github.com/zhxie/pcap2socks?tab=readme-ov-file#flags⁠

⁠Linux故障排除

https://github.com/zhxie/pcap2socks?tab=readme-ov-file#troubleshoot⁠

Tag summary

Content type

Image

Digest

sha256:2a8f91185…

Size

29.8 MB

Last updated

over 2 years ago

docker pull chaoszhu/pcap2socks:1.0.0