Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadedgnome/4cb5921c9e9c72f07f216067bb7ee1e0 to your computer and use it in GitHub Desktop.
Save jadedgnome/4cb5921c9e9c72f07f216067bb7ee1e0 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