Answer the question
In order to leave comments, you need to log in
Why can't the OpenVPN client see the network behind the server?
Hello. I know that this topic is just izzhova on the Internet, but I just can not win. How to make the client see the network behind the OpenVPN server. There is a home network 192.168.0.0/24, in this network there is a computer with Ubuntu Server 192.168.0.3. Server network 10.8.0.0/24. When connecting to the server, the client pings other clients and the server itself, and from the server's internal network sees only its internal ip (192.168.0.3).
IPTABLES -A INPUT -i tun0 -j ACCEPT
IPTABLES -A FORWARD -i tun0 -j ACCEPT
IPTABLES -A FORWARD -s 10.8.0.0/24 -d 192.168.0.0/24 -j ACCEPT
IPTABLES -A FORWARD -s 192.168.0.0 -d 10.8.0.0/24 -j ACCEPT
Answer the question
In order to leave comments, you need to log in
Because devices inside the network do not know anything about the existence of the VPN network and send all responses to the default gateway. And your default gateway is not a VPN server, as far as I understand. As a result, response packets are lost.
It is necessary on each device within the network to add a route to the VPN network through the VPN server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question