Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save crgr/007847324c504be61c088b29e4e653e9 to your computer and use it in GitHub Desktop.
Save crgr/007847324c504be61c088b29e4e653e9 to your computer and use it in GitHub Desktop.
How to install and use iodine for DNS tunneling.

Domain

We need some records on our domain (mydomain.com) DNS for connections. Add these records:

t1              IN      NS      t1ns.mydomain.com. ; note final the dot!
t1ns            IN      A       OUR_SERVER_IP

Server

Install the iodine package, run the server with a password and an unused range ip address.

sudo aptitude install iodine
sudo iodined -f -c -P apassword 10.0.1.1 t1.mydomain.com &

Linux client

Install iodine and establish a connection with the server via DNS tunnelling. Then forward the 9999 port via ssh your server to act as a proxy for connections (connect with your server user and password).

sudo iodine -f -P apassword t1.mydomain.com &
ssh user@10.0.1.1 -D 9999

Browser

Configure your proxy settings for socks 5 proxy localhost port 9999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment