Member-only story

Setup Routing Settings for Multiple VPNs Connection

Maciej
3 min readMar 1, 2021

--

Introduction

If the line that can access the server is limited, VPN is often used to clear it, even in simple way, VPN is used to access the company server during telework, and it connects to the VPN server on the Internet to fix the connection source IP. By the way, if you use a lot of VPN connections , then the routing will be messed up, and you may not be able to access the target server even though you are connected to the VPN.

In Windows built-in VPN with L2TP/IPsec, SSTP if you connect without thinking, the default gateway will be VPN, so most communication such as communication to the Internet will go through the last connected VPN.

To avoid this, you need to set the routing yourself . All you have to do is organize which server the communication goes through which VPN.

Example case

Case explanation

  • Communication to the Internet does not go via VPN connection.
  • Communication to the FILE SERVER goes via VPN1 connection.
  • Communication to the WEB SERVER is via VPN2 connection.

--

--

Maciej
Maciej

Written by Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

No responses yet