M
M
Megum1n2020-03-26 10:58:14
openvpn
Megum1n, 2020-03-26 10:58:14

How to configure OpenVPN to work on LAN from WAN?

I configure OpenVPN on ubuntu-server 19 with two network cards. Main goal:
WAN => OpenVPN <= LAN

According to the instructions from openvpn, I write in the config:
push "route 192.168.2.0 255.255.255.0"

spoiler
192.168.2.0/24 - локалка

In theory, I should calmly give the entire subnet to VON, but in the end nothing works. Ping is performed only to the address of the VPN server.
How to set up a VPN correctly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2020-03-26
@Megum1n

Do your computers inside the network know about the route to the VPN client?
This works immediately only if the VPN server is also the default gateway for computers within the network. As far as I understand, this is not your case. If this is the case, then you need to register a route to the VPN network on the computers and specify the internal address of the VPN server as the gateway. Routes can be written in any available way: by hand, via DHCP, via GPO ...

D
Dmitriy Loginov, 2020-03-26
@caramingo

Little information in the subject.
Is there an Internet connection to the VPN server?
Is the locale visible from the server and vice versa?
Is packet forwarding between network interfaces enabled on the server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question