Thread: DNS Tunnel
View Single Post
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#61
It works for me now . Thanks to those who helped.
The key issue was enabling ip masquerade - my ubuntu feisty box had not that by default. The simplest guide to do that was in http://www.ibiblio.org/pub/Linux/doc...ple-HOWTO.html.

No need for hacking routing tables on my wi-fi router.
Now I can invoke iodined server in a root terminal by doing

Code:
modprobe ipt_MASQUERADE
iptables -F; iptables -t nat -F; iptables -t mangle -F
iptables -t nat -A POSTROUTING -s 172.16.0.0/8 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
iodined -P my_password -m 220 172.16.0.1 my.tunnel.domain
Setting MTU to 220 was sadly being necessary for my settings.

The thing seems slow though. Since I don't have hotels or airports or other pay-per-connect wireless networks nearby, I have tested it using a gprs connection on my IT, so most likely it is going to be quicker when using the real thing.

Do I need it? No, because I have flat gprs. Did I enjoy troubleshooting? Yes a lot . Shall I use it on the road? Maybe (I'll try to post from jail, afterwards)