ipt2socks is a utility to redirect network traffic from iptables or nftables to a SOCKS5 proxy. It's useful for building a transparent proxy server.
Official Website: https://github.com/zfl9/ipt2socks
To deploy this service using docker-compose with VLAN network support:
version: '3.8'
services:
ipt2socks:
image: lihaixin/ipt2socks:latest
container_name: ipt2socks
restart: always
privileged: true
environment:
- NO="" # Authorization code (Leave empty for automatic online fetching)
- S5IP=6.6.6.6 # SOCKS5 proxy IP
- S5PORT=1080 # SOCKS5 proxy port
- S5USER=user # SOCKS5 proxy username
- S5PASSWD=password # SOCKS5 proxy password
- DNS=8.8.8.8 # DNS address for redirection
networks:
vlan:
ipv4_address: 172.19.0.2
networks:
vlan:
external: true
Run the following command to start the service:
docker-compose up -d
Powered by GitHub Actions
Content type
Image
Digest
sha256:ecd70021c…
Size
48.3 MB
Last updated
4 months ago
docker pull lihaixin/ipt2socks