A
A
AkZwork2019-12-01 00:42:50
linux
AkZwork, 2019-12-01 00:42:50

How to make Double VPN within one server?

Good afternoon.
I have two IPs on VPS
On the first one VPN works and clients connect to it.
How can I make sure that the network connection is always from the second ip?
And at the same time, block access to clients if the second ip was suddenly disabled.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentine, 2019-12-01
@vvpoloskin

The most normal solution is a proxy for accessing the Internet. Otherwise, you need to come up with something with source based routing (ip rule) or vrf (ip nets)

A
alex1478, 2019-12-18
@alex1478

When writing the NAT iptables rule for VPN users to access the Internet, you need to specify the output IP instead of the output interface

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question