TheIf you can set yourself an SSH server, then the free sshuttle tunnelscan tunnel all TCP traffic through an sshthe connection, doing all the firewall work for you.
To forward all TCP traffic and DNS requests to a remote SSH server, the command is simple enough :
sshuttle --dns -vr ssh_server 0/0
Besides TCP and DNS, sshuttle does not forward other requests such as UDP, ICMP, ping etc.
For more information and examples see the article Using Sshuttle in Daily Work.