Answer the question
In order to leave comments, you need to log in
openvpn. How to forward the client's local network and give a computer on the network a static ip?
Good afternoon.
All openvpn clients have static IP addresses like 10.8.1.N in order to manage them from the server via ssh.
One client got a local network (comp-comp connection). This computer on the network also needs to be managed from the server side.
Is it possible to forward the network to openvpn and give the computer in LAN a static IP 10.8.1.M ???
Of course, there is an option to distribute the Internet via LAN and raise your vpn client on this computer from the network.
But I would like a simpler solution in order to do without installing vpn and generating certificates for it.
Thank you.
Answer the question
In order to leave comments, you need to log in
can be done differently:
Option 1: register a route to this network on the server so that packets run there.
I did this: I added the command to the
/etc/openvpn/ccd/ username file: when the username
client connects to the openvpn server, a route to this network is raised on the server.
But you will have to use two networks already - one for the VPN, the other for the network behind the VPN client.
Option 2: Register another address in the VPN network on the first computer, and send all incoming traffic to this address to the second computer using iptables address translation. And if it concerns specific services, then make TCP-proxy using xinetd.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question