I have two services running on a VPS instance that are currently bound to the external IP address (25.25.25.25). I want those services to only be accessible over a VPN. I'm able to connect to the VPN and i'm given my internal IP address for tun0 but i'm confused about how to setup the virtual interface to bind the services to listen on(if i even need one at all)
My question is, how do I pull back my two services to a subnet that lives "behind" the VPN, but within the same virtual host and then route that traffic to clients over the VPN? I've done lots of VPN's on Cisco/Juniper/etc where there's actual subnets that are behind the device to route to, but never done this on Linux within the same host.
I'm on Centos 6 and my VPN is StrongSwan.
My question is, how do I pull back my two services to a subnet that lives "behind" the VPN, but within the same virtual host and then route that traffic to clients over the VPN? I've done lots of VPN's on Cisco/Juniper/etc where there's actual subnets that are behind the device to route to, but never done this on Linux within the same host.
I'm on Centos 6 and my VPN is StrongSwan.
Last edited: