Answer the question
In order to leave comments, you need to log in
Network behind a router connected to a VPN network?
You need to see the network behind the router that is connected to the openvpn network. From the inside (from the network 192.168.5.0) everything works fine, all machines see the vpn network, but the machines in the vpn network do not see them in response (they do not see 192.168.5.0) ....
Network A 192.168.5.0/24 the router on which it is installed openvpn client 192.168.5.1 with VPN address 192.168.245.56
Network B 192.168.245.0/24 openvpn server on pritunl openvpn client 192.168.245.4 trying to see the network behind router 192.168.5.251.
Answer the question
In order to leave comments, you need to log in
If I understand correctly, the scheme is as follows:
There is a router behind which the local network is 192.168.5.0/24
The router has an interface with the local network address 192.168.5.1
The router has an OpenVPN server with the network 192.168.245.0/24
The router has an interface with the address 192.168.245.56
A remote client is trying to connect to your router in order to get into the local network 192.168.5.0 /24. The OpenVPN server gives it the address 192.168.245.4.
At the same time, the remote client does not see the network 192.168.5.0 /24.
If so, then the problem is most likely in the routing. The connecting client knows nothing about the route to the 192.168.5.0/24 network. You must add a route to this network when the client connects to the OpenVPN server.
For example, if the OS of the client is Windows, then you can manually add the route:
route add 192.168.5.0 mask 255.255.255.0 192.168.245.56
If after adding the route access to the network 192.168.5.0 /24 appears, then you can add the OpenVPN file of the client to the config file line:
route 192.168.5.0 mask 255.255.255.0 192.168.245.56
Then the route will be added automatically upon connection.
But keep in mind that the OpenVPN client must be run with administrator rights, as adding a route requires privilege escalation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question