Sign inSign up

ookangzheng/docker-tor-obfs-bridge

By ookangzheng

•Updated over 2 years ago

tor with private bridge + obfs4 + http + socks5

Image
0

1.1K

ookangzheng/docker-tor-obfs-bridge repository overview

⁠Run via docker-compose cli


version: '3.9'
# port 42218 -- Private bridge port (Block for firewall)
# port 51000 -- obfs4 port
services:
    tor-obfs4-bridge:
        container_name: tor-obfs4-bridge
        environment:
            - OR_PORT=42218
            - PT_PORT=51000
            - [email protected]
        tmpfs: '/tmp:rw,size=4k'
        image: ookangzheng/docker-tor-obfs-bridge:latest
        network_mode: 'service:guard-socks'

# Port 9151 HTTP Proxy / Socks5
# Port 9050 must be blocked by firewall
    guard-socks:
         container_name: guard-socks
         environment:
            - PROXY_USER=myuser
            - PROXY_PASS=mypassword
         ports:
            - '9151:9151'
            - '42218:42218'
            - '51000:51000'
            - '9150:9150'
         image: ookangzheng/guard-socks:latest

⁠Rebuild docker container

docker-compose up -d --no-deps --build tor-obfs4-bridge

⁠Docker-compose stop, recreate, and run

docker-compose down && docker-compose build --no-cache && docker-compose up

⁠Add a protection layer with guard-socks

curl --socks5-hostname 127.0.0.1:9150 https://ipinfo.tw/ip Normal curl to test Tor

curl --socks5-hostname "username:[email protected]:9151" https://ipinfo.tw/ip Test tor with upstream SOCKS5

⁠Construct obfs information

⁠Exec into docker

docker exec -it tor-obfs4-bridge /bin/ash

⁠Check output TOR obfs Bridge

cat /var/lib/tor/pt_state/obfs4_bridgeline.txt

⁠Check public key

cat /var/lib/tor/fingerprint

⁠Sample Bridge obfs4

Bridge obfs4 123.45.67.89:443 EFC6A00123412345935F091E4 cert=KkdWiWlfetJG9SFrzX8g1tasdfasdfNNH+iudVW48CoH/XVXPQntbivXIqZA iat-mode=0

Tag summary

Content type

Image

Digest

sha256:dab371dd5…

Size

100.5 MB

Last updated

over 2 years ago

docker pull ookangzheng/docker-tor-obfs-bridge