S
S
Smile4952019-08-26 15:53:51
linux
Smile495, 2019-08-26 15:53:51

Routing from LAN to OpenVPN Access Server?

Available:
local network 192.168.101.0/24 There is an
OpenVpn AS virtual machine in the local network 192.168.101.56 Speaker
subnet 10.0.0.0/24
Static 192.168.111.0/24
192.168.111.0/24 without VPN connection.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Berkutman, 2019-08-26
@Berkutman

Well, look, you understand that the 192.168.101.0 subnet has no routes to the 192.168.111.0 subnet and vice versa.
When you connect a VPN, your routes go through 10.0.0.0, which knows about both networks.
type 192.168.101.0 via 10.0.0.1
and 192.168.111.0 via 10.0.0.1
To go from one subnet to another, you need some kind of router that will route, count up?
Or quite simply and quickly.
There is, for example, Linux RTR - Where there are both grids (for example, two interfaces ens32 192.168.101.1 and ens34 192.168.111.1, each of these interfaces must be in the same lan segment with other devices, computers, etc.), in the parameter / etc/sysctl.conf enable net.ipv4.ip_forward=1
Next write sysctl -p
and wow, you can walk from 192.168.101.0 to 192.168.111.0
while specifying Linux RTR as the default gateway

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question