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
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 &
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 email@example.com -D 9999
Configure your proxy settings for socks 5 proxy localhost port 9999