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

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


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