Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.4 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.4 KB

Docking to Tor

Docker container setup for sending ssh/web/dns traffic over the Tor network on startup. This will also proxy applications such as Terraform which do not natively provide a way to specify proxy addresses.

Start container

docker run -it --cap-add=NET_ADMIN \
        --dns 127.0.0.1 \
        --env ALL_PROXY="socks5h://127.0.0.1:9050" \
        --env HTTPS_PROXY="socks5h://127.0.0.1:9050" \
        --env HTTP_PROXY="socks5h://127.0.0.1:9050" \
        --add-host socks5h:127.0.0.11 \
        --add-host dns4torpnlfs2ifuz2s2yf3fc7rdmsbhm6rw75euj35pac6ap25zgqad.onion:127.0.0.1 \
	      castironclay/docker-tor:latest /bin/bash

Proxy SSH

ssh -o ProxyCommand="connect-proxy -H 127.0.0.11:80 %h %p" user_name@ip_address

Screens

All services housed in screen sessions.

root@dc4e4de04191:~# screen -ls
There are screens on:
        15.dns  (07/11/21 01:24:17)     (Detached)
        9.tor   (07/11/21 01:24:17)     (Detached)
        12.socat        (07/11/21 01:24:17)     (Detached)
3 Sockets in /run/screen/S-root.

Verify

root@dc4e4de04191:~# curl https://wtfismyip.com/json
{
    "YourFuckingIPAddress": "199.195.250.77",
    "YourFuckingLocation": "Unknown",
    "YourFuckingHostname": "ny1.exit.tor.alkyl.eu.org",
    "YourFuckingISP": "FranTech Solutions",
    "YourFuckingTorExit": false,
    "YourFuckingCountryCode": "Unknown"
}