GeoTrev
I have been sniffing around forums trying to find a good answer to this question and if its already been answered I'am all ears. I have an open vpn server running on an Ubuntu VPS. My client will always be on a 4g network and also is the one hosting the webcontent over port 1880. My VPN subnet is 10.8.0.x where my server is 10.8.0.1 and my client is 10.8.0.6. The goal is to use the vpn tunnel to get the web traffic out of the private 4g network that I cannot directly connect to from the outside. The VPS has a static ip and a FQDM...so I would like it to serve me the webserver content from the client when I connect to the domain. What direction do I need to head in order to accomplish this? IP tables in my client/server config? More push directives from my server to the client in ovpn config? Nginx reverse proxy? I don't really understand how the routing is supposed to work when there is a tun0 interface. Do I need to bridge my tun0 and eth0 on my server? Thoughts?
TinCanTech
You use iptables to forward the port 1880 to the destination host you choose (ie. 10.8.0.6) just like you would with a router port-forwarding .. it should not be hard to find such an example with google.
GeoTrev
Thank you! After being pointed in this direction I humbly hang my head in shame at how easy this is. I just needed those small details of which machine and what method not used to linux only done port forwarding on routers!
TinCanTech
Hehe .. No shame .. that is what a helpful community is all about, without questions there would be no answers.
As a long time Wind blows user, when I discovered how versatile Linux is I switched and never looked back 8-)