Page 1 of 1

Clients cannot connect to local LAN

Posted: Thu Oct 12, 2017 9:28 am
by StevenDR
Hi all

It's the first time that I want to setup an OpenVPN server on a Windows machine. In the past, I had one running on a RaspPi, which worked, but was lacking performance.

The problem I'm facing at the moment is clients not being able to connect to the local LAN. However, they can connect to the VPN server itself.

I checked the logs, and find some strange behavior: my VPN server has 192.168.1.10 as internal IP address. The next IP, being .11 is my NAS running in the network (which has nothing to do with OpenVPN or any other VPN software). The logs however state the following:

TCP/UDP: Preserving recently used remote address: [AF_INET]192.168.1.11:1294
and a bit below:
UDP link remote: [AF_INET]192.168.1.11:1294

Why is it using my NAS's IP address? I think this might be the cause of the issue.

PS: yes, I've disabled my Windows Firewall
PS2: the external port is 1294, which is "port forwarded" on my router to internal port 192.168.1.10:1194.

Re: Clients cannot connect to local LAN

Posted: Thu Oct 12, 2017 10:50 am
by TinCanTech
Please see:
HOWTO: Request Help !

Also,
  • NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
:arrow: Never use 192.168.0.0/24 or 192.168.1.0/24 (or other common subnets) for your OpenVPN Server LAN :!:
  • You are advised to change your server LAN to a more unique RFC1918 compliant subnet.
    For example: 192.168.143.0/24
Also, ensure IP forwarding is enabled on your server.