https://github.com/zhxie/pcap2socks的docker封装,目前只在Linux环境测试。感谢大佬~
82
# 查看网卡名称
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参数不打印详细的日志
参数说明:
# 举例:启动后查看打印日志
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
https://github.com/zhxie/pcap2socks?tab=readme-ov-file#troubleshoot
Content type
Image
Digest
sha256:2a8f91185…
Size
29.8 MB
Last updated
over 2 years ago
docker pull chaoszhu/pcap2socks:1.0.0