Hi ottafish, any luck with this? We are trying the same, or similar.
We have a client that connects to a server which is running a proxy and accepts connections from the wider internet. We want all traffic from the proxy to route to the internet through the client. I think this is the same, or similar, as you have posted above. The main problem prohibiting swapping client-server roles is due to firewall restrictions.
I am happy with lan-to-lan routing, as nicely explained here:
http://community.openvpn.net/openvpn/wiki/RoutedLans
However, there is no mention of a gateway in that configuration, and that is the key requirement for us, to allow the VPN traffic to "get out" to the wider internet.
I'm building up my knowledge in this area and happy to attempt to solve it for myself, but if anyone could point me in the correct direction, that would be great.
My gut feeling at this stage is that configuration requires:
Server OpenVPN configuration: apply some magic routing to let traffic from this host into the VPN tunnel.
Client OpenVPN configuration: apply some magic routing to let VPN traffic out of the tunnel.
Server Routing: Set the client's IP address (either the VPN end point, or its own IP on its own subnet, or even its own gateway) as the default gateway on the server - which should then send all traffic from the server over the VPN and the client's subnet to that gateway, and on to the wider internet.
We don't mind if the routing is inefficient, meaning *all* traffic originating from the server host is routed over the VPN.
Thoughts?