New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help? How to setup server to be able to accept connections from outside of a VPN.
I am trying to setup a server with a VPN. I want the VPN to be the default connection for all outgoing requests. I however, still want the host to respond to requests directly to its main IP for certain ports. How do I accomplish this?
I will be using debian/ubuntu.
Inside a Proxmox VM.
Complex setups are an options....
Comments
Im sure this is possible by default?
I run a home server connected to external VPN and I can still access on the private 192.168.0.27 IP.
Its also a proxmox box.
But it isn't a local private ip that I am trying to connect from.
Essentially what you want is an iptables rule that MARKs packets based on whatever rule you want and a routing rule to specially route packets with the MARK. The default route should handle the rest.
See: https://unix.stackexchange.com/questions/21093/output-traffic-on-different-interfaces-based-on-destination-port (and some related links) to get ideas for your specific needs.