hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
25.39k stars 6.34k forks source link

Can’t push route to 10.0.10.0/24 via 192.168.42.1 #1608

Closed mateuszmaniecki closed 1 month ago

mateuszmaniecki commented 1 month ago

Hi, Sorry if it is wrong way to get help but I try to push route to the private address like in topic.

The case is if I login to root on VPN server I can ping the private address. But if I try to ping this route from the my computer (when I am connected to VPN) there is no results.

Can someone help me to add properly this route to the VPN config?

Im glad for every help.

hwdsl2 commented 1 month ago

@mateuszmaniecki Hello! Please refer to Access VPN server's subnet. For your use case, to allow this traffic, additional configuration is required if the VPN server has multiple network interfaces (e.g. eth0 and eth1), and you want VPN clients to access the local subnet behind the network interface that is not for Internet access. See the linked section for more details.

In addition, if the above instructions do not work, it is possible that you may also need to add a route on your VPN client device for 10.0.10.0/24 (as you mentioned) via the VPN server 192.168.42.1. The steps will depend on your VPN client device's operating system, which you can look up online.