Answer the question
In order to leave comments, you need to log in
Can you help me set up OpenVPN strictly for LAN connectivity?
There are two grids: 192.168.1.0, 192.168.2.0 and 192.168.5.0
In the second grid, a virtual machine with openvpn-server on debian is running.
Clients connect to ovpn, but all traffic goes through the tunnel ... along with the Internet. It is necessary to let through the tunnel only traffic of the local network behind the tunnel (RDP, Radmin, connection to the 1C server), and all sorts of VKontakte and YouTubers went through the "local" Internet of the client.
Answer the question
In order to leave comments, you need to log in
Found the answer myself. It was necessary to remove these 2 lines in the server configuration. One sets the ovpn server as the default gateway, and the second sends DNS to it.
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question