lihaixin/ipt2socks

By lihaixin

Updated 4 months ago

ipt2socks

Image
Networking
0

1.6K

lihaixin/ipt2socks repository overview

ipt2socks - Redirect iptables traffic to SOCKS5 proxy

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

🚀 Docker Compose Usage

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

Tag summary

Content type

Image

Digest

sha256:ecd70021c

Size

48.3 MB

Last updated

4 months ago

docker pull lihaixin/ipt2socks