Answer the question
In order to leave comments, you need to log in
How to set up OpenVPN with white address translation to the client?
There is a server1 with an interface from the white network 12.34.56.78/29, for example, the ip-address on it is 12.34.56.74, the default gateway is 12.34.56.73. In stock we have ip-shki from 12.34.56.75 to 12.34.56.78.
Next, we have server2 with an interface from the white network 44.55.66.77/30, ip-address 44.55.66.78, default gateway - 44.55.66.77 and 192.168.1.1/24 gray interface for the local network and workstations located behind this router.
The task is to set up an OpenVPN tunnel between server1 and server2 in such a way that it is possible to distribute white addresses from the 12.34.56.78/29 subnet to clients located behind the router (server2). So that, in addition to the gray network 192.168.1.0/24, clients can configure addresses from 12.34.56.75 to 12.34.56.78.
Question: how to do this, what is needed for this? Perhaps someone will point to the manual on the network or share their own. Manuals are googled, but not one has yet realized the idea.
I suspect that it is necessary to create 2 bridge interfaces at both ends of the tunnel, and configure openvpn on tap interfaces. You also need the correct iptables configs.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question