I am connecting to my computer at home using ssh. I want to redirect all traffic from the laptop in the field over ssh through the computer at home.
This works well for http, as i just connect to my computer at home using "ssh -D8080 ..." and then set the browser to proxy socks 8080.
I am now trying to redirect all traffic through ssh, no matter what protocol or port. I want the ssh connection to accept all the traffic which is meant for the laptop's ethernet card, and let that go to the computer at home.
This should eliminate the possibility of the laptop's traffic being intercepted in untrusted wlans, etc.
How would i do this using iptables? (I am thinking that maybe i would need privoxy to handle the socks stuff, but i am not sure).
Thanks for your help!