D
D
Denis Michurin2018-02-21 14:51:07
openvpn
Denis Michurin, 2018-02-21 14:51:07

Route to the local network of the Openvpn client through its server, how to configure?

There is an OpenVPN server, clients are connected to it, you need to configure routing to the local network, which is accessible behind one of the
OpenVPN server IP clients - 192.168.1.1
Client IP behind which. you need to access the local network - 192.168.1.10
The local network behind it - 10.0.2.0.24 I register
the route towards the OVPN client
route add -net 10.0.2.0/24 gw 192.168.1.10

openvpn# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.2.0        192.168.1.10    255.255.255.0   UG    0      0        0 tun-o

But there is no ping.
What else needs to be configured?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Griboks, 2018-02-21
@Griboks

Doesn't ping require two-way communication? Maybe the other side hasn't configured anything itself or is simply blocking the traffic.

M
mureevms, 2018-02-21
@mureevms

Obviously, it's a matter of routing.
1. On the client 192.168.1.10, you need to enable routing
2. Depends on the size and configuration of the network:
2.1 Or on all the points of the network 10.0.2.0 (to which you need access), register the client's IP address as the gateway, while the address must be from the network 10.0.2.0
2.2 Similarly to 2.1, only configure on each network wheelbarrow (again, to which you need access) a static route through a wheelbarrow with a client
2.3 Or, as Dmitry Shitskov said , make a route to the network 192.168. Client OVPN

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question