Port forwarding to a VPN connected host
I have an application running on my desktop that I need the outside world to access. When I'm not on VPN, it works fine.
When I bring up the VPN, the port forwarding no longer works. IE, everything works as expected.
Is there some way that I can punch a hole for outside connections coming in so my NAT rule works? I will be swapping VPN connections often and am trying to figure out how I can set things up that regardless of which VPN host I'm connected to, the outside world will be able to reach the application.
When I bring up the VPN, the port forwarding no longer works. IE, everything works as expected.
Is there some way that I can punch a hole for outside connections coming in so my NAT rule works? I will be swapping VPN connections often and am trying to figure out how I can set things up that regardless of which VPN host I'm connected to, the outside world will be able to reach the application.
Comments
We have a split-tunnel guide there, however it looks like it only covers outgoing connections. Incoming connections are harder to handle because when your computer replies to it, it looks like it's connecting to a remote public IP which goes into the VPN adapter.
There's probably some guides on how to do policy based routing, unfortunately I don't have one at hand as my network runs entirely on Linux.