C
C
CjGuSSa2019-10-07 14:59:09
VPN
CjGuSSa, 2019-10-07 14:59:09

How to make routing with a chain of VPN servers?

There is a server on Debian, located on the M9 site, clients connect to it via VPN, both with static IP addresses and dynamic ones, this server actually combines offices and mobile devices.
Worth it - StrongSwan and xl2tpd. Offices are connected via IPSEC + l2tp, mobile devices via IPSEC.
We took a VPS over the hill, we wanted traffic between offices to walk through a server at the M9 site in Moscow, and everyone went outside through a foreign VPS.
Debian with StrongSwan and xl2tpd was also installed on the server (the server has a shared IP, and as I understand it, Public IP is transferred to it).
The server on M9 raises IPSEC and l2tp with VPS, after that, if you raise the route towards VPS, then the server ceases to be accessible by its IP.
Actually, the question is how to make the scheme work, how to register routes so that when connected via VPN to the VPS, the server on the M9 remains available for connection for clients, including those with dynamic IPs.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2019-10-07
@CjGuSSa

https://habr.com/ru/post/108690/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question