Page 1 of 1

Ubuntu NAT/Routing connections through Openvpn client

Posted: Sun Jun 02, 2013 7:10 pm
by chamrog
Greetings,

I have a working connection to a vpn provider, i would however like to share those connections, with other machines on my sub-net, in particular devices that don't support openvpn, TVs for instance.

So my plan was to just set the machine that has the running VPN connection as the default gateway, for those systems that cannot do the VPN related things buy them selves.

I expect that i need to do some NATing, im sure its something simple :) The VPN itself is working from client is loaded.

so what i have

Ubuntu client with TUN0, machine ipaddress 192.168.1.128, this is what i would like to route traffic through. Does this make sense? :) Im not really sure what it takes to make this work, i suspect it can be done with purely route commands, but im far from sure.


/C