Report this

What is the reason for this report?

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

Posted on May 23, 2017

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



This textbox defaults to using Markdown to format your 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.

Hello,

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

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-18-04-2

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.