I have two Windows boxes (Windows 10 and Windows 7). The first one named SERVER runs OpenVPN as server, the remote one named REMOTE runs the OpenVPN client and connects to the SERVER fine. Both have IP routing enabled through HKLM\System\CurrentControlSet\services\Tcpip\Parameters\IPEnableRouter=1 and both are running the Routing and RAS Service. Both have their Windows firewalls disabled entirely.
Here are the IP configuration details:
SERVER:
local IP 10.150.1.1/24
default gateway is 10.150.1.254
VPN Transfer IP 10.150.2.1/24
REMOTE
local IP 192.168.1.251/24
default gateway is 192.168.1.254
VPN Transfer IP 10.150.2.6/24 (assigned by the OpenVPN Server when the connection is established)
The problem is, that from the SERVER I can not ping REMOTE's local IP address 192.168.1.251, while all other pings work.
In detail:
From SERVER:
ping 10.150.2.6 is ok
ping 192.168.1.251 fails!!!!!!!!!!!!
tracert -d 192.168.1.251 yields
1 <1 ms <1 ms <1 ms 10.150.1.254 (<<< the default gateway of SEVER)
and from there out to the public Internet...
From REMOTE
ping 10.150.1.1 is ok
ping 10.150.2.1 is ok, too
I would like to be able to ping 192.168.1.251 from the SERVER (and, as the next step, have PCs on REMOTE PCs local LAN be able to ping the SERVER through the OpenVPN link, but that is anothe issue). I don't find the cause for the SERVER forwarding the packets aimed at REMOTE's local LAN interface to the public Internet, rather than forwarding them via OpenVPN to the REMOTE PC.
Here are the two routing tables:
SERVER
===========================================================================
Schnittstellenliste
15...d0 17 c2 ac a2 1a ......Realtek PCIe GBE Family Controller #2
5...00 ff 1b 1f c1 7f ......TeamViewer VPN Adapter
4...00 ff 18 da d2 10 ......TAP-Windows Adapter V9
1...........................Software Loopback Interface 1
2...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
13...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
===========================================================================
IPv4-Routentabelle
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 10.150.1.254 10.150.1.1 266
10.150.1.0 255.255.255.0 Auf Verbindung 10.150.1.1 266
10.150.1.1 255.255.255.255 Auf Verbindung 10.150.1.1 266
10.150.1.255 255.255.255.255 Auf Verbindung 10.150.1.1 266
10.150.2.0 255.255.255.0 10.150.2.2 10.150.2.1 20
10.150.2.0 255.255.255.252 Auf Verbindung 10.150.2.1 276
10.150.2.1 255.255.255.255 Auf Verbindung 10.150.2.1 276
10.150.2.3 255.255.255.255 Auf Verbindung 10.150.2.1 276
127.0.0.0 255.0.0.0 Auf Verbindung 127.0.0.1 306
127.0.0.1 255.255.255.255 Auf Verbindung 127.0.0.1 306
127.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
192.168.1.0 255.255.255.0 10.150.2.6 10.150.2.1 21
224.0.0.0 240.0.0.0 Auf Verbindung 127.0.0.1 306
224.0.0.0 240.0.0.0 Auf Verbindung 10.150.1.1 266
224.0.0.0 240.0.0.0 Auf Verbindung 10.150.2.1 276
255.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
255.255.255.255 255.255.255.255 Auf Verbindung 10.150.1.1 266
255.255.255.255 255.255.255.255 Auf Verbindung 10.150.2.1 276
===========================================================================
Ständige Routen:
Netzwerkadresse Netzmaske Gatewayadresse Metrik
0.0.0.0 0.0.0.0 10.150.1.254 Standard
192.168.1.0 255.255.255.0 10.150.2.6 1
===========================================================================
REMOTE
===========================================================================
Schnittstellenliste
20...00 ff ce e4 56 f0 ......TAP-Windows Adapter V9 #2
19...00 ff 0e 36 39 0b ......TAP-Windows Adapter V9
18...00 0c 29 74 75 c7 ......Intel(R) PRO/1000 MT-Netzwerkverbindung #2
1...........................Software Loopback Interface 1
12...00 00 00 00 00 00 00 e0 Microsoft-ISATAP-Adapter
17...00 00 00 00 00 00 00 e0 Microsoft-ISATAP-Adapter #2
21...00 00 00 00 00 00 00 e0 Microsoft-ISATAP-Adapter #3
===========================================================================
IPv4-Routentabelle
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 192.168.1.254 192.168.1.251 266
10.150.1.0 255.255.255.0 10.150.2.5 10.150.2.6 21
10.150.2.1 255.255.255.255 10.150.2.5 10.150.2.6 21
10.150.2.4 255.255.255.252 Auf Verbindung 10.150.2.6 276
10.150.2.6 255.255.255.255 Auf Verbindung 10.150.2.6 276
10.150.2.7 255.255.255.255 Auf Verbindung 10.150.2.6 276
127.0.0.0 255.0.0.0 Auf Verbindung 127.0.0.1 306
127.0.0.1 255.255.255.255 Auf Verbindung 127.0.0.1 306
127.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
192.168.1.0 255.255.255.0 Auf Verbindung 192.168.1.251 266
192.168.1.251 255.255.255.255 Auf Verbindung 192.168.1.251 266
192.168.1.255 255.255.255.255 Auf Verbindung 192.168.1.251 266
224.0.0.0 240.0.0.0 Auf Verbindung 127.0.0.1 306
224.0.0.0 240.0.0.0 Auf Verbindung 192.168.1.251 266
224.0.0.0 240.0.0.0 Auf Verbindung 10.150.2.6 276
255.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
255.255.255.255 255.255.255.255 Auf Verbindung 192.168.1.251 266
255.255.255.255 255.255.255.255 Auf Verbindung 10.150.2.6 276
===========================================================================
Ständige Routen:
Netzwerkadresse Netzmaske Gatewayadresse Metrik
0.0.0.0 0.0.0.0 192.168.1.254 Standard
===========================================================================