Can't ping VPN server from LAN client

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
twf85
OpenVpn Newbie
Posts: 1
Joined: Wed Jul 11, 2018 1:24 pm

Can't ping VPN server from LAN client

Post by twf85 » Wed Jul 11, 2018 9:05 pm

I have two requirements, but the last one is giving me a hell of a time:
  • Run VPN server from Windows 10 PC
  • Access SAMBA shares located on VPN server at same IP address from VPN and LAN clients
No matter what I tried, I could not access the VPN server via its LAN IP address from any VPN clients. To spell that out, it looked something like:

LAN IP of VPN server: 192.168.123.4
VPN subnet: 10.8.0.0/24
VPN server IP: 10.8.0.1

I could access the shares of the VPN server from VPN clients via 10.8.0.1, but not 192.168.123.4.

Eventually, I gave up and ran the VPN server from the LAN gateway. Accessing the SAMBA shares via the same IP is critical for proper QuickBooks Multi-User support, so my hands were tied.

Now I'm taking another swing at it, but from an angle I hadn't thought of before: Access the shares via the VPN server IP (10.8.0.1) from LAN and VPN clients (192.168.123.0/24 & 10.8.0.0/24).

I'm dead in the water. Again. I can't ping the VPN server IP from a client on the LAN (not directly connected to the VPN). I have tried:
  • Modifying the registry to enable IPEnableRouter and also started the Routing and Remote Access service
  • Routing via LAN gateway

    Code: Select all

    ip route add 10.8.0.0/24 via 192.168.123.4 ....
  • Routing on LAN client

    Code: Select all

    route add 10.8.0.0 mask 255.255.255.0 192.168.123.4
Should I give this up and go back to trying to access VPN server via its LAN IP? Is it possible to access the LAN IP of the VPN server from VPN clients?

Post Reply