Hi everyone, I need help with routing. I am connecting to a service provider via VPN on a site-to-site configuration.

Posted May 23, 2017 1.6k views
FirewallDigitalOcean ArticlesVPNUbuntu 16.04Development

I am connecting to a service provider via VPN and it is required to route as: Provider IP<->VPN<->Host. I have setup a droplet and configured it with strongswan to setup the ipsec VPN and it is working. However, I need to route all traffic to the provider IP via my VPN gateway for encryption and tunneling to Provider. I am not sure what I am doing wrong but when I try adding a static route between my host and my VPN droplet, it returns the following error: SIOCADDRT: Network is unreachable. The PROVIDER IP network is configured to not respond to pings and probes, but still, my VPN Gateway is reachable. All help is highly appreciated

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


I will recommend starting with this tutorial on how to setup IKEv2 VPN Server with StrongSwan:

by Justin Ellingwood
by Namo
A virtual private network, or VPN, allows you to securely encrypt traffic as it travels through untrusted networks, such as those at the coffee shop, a conference, or an airport. IKEv2, or Internet Key Exchange v2, is a...