Hi !
I have configured an OpenVPN server on a Windows 10 Pro computer.
From my OpenVPN client laptop (also Windows 10 Pro), I can establish the connection with the server.
But, I can not put in place the right configuration to manage to communicate between my OpenVPN client and other computers on the LAN network f the OpenVPN server.
A small diagram will be more effective than a long speech:
+-------+ +------+
|OpenVPN| LAN IP : 172.20.10.6 | |
|client | VPN IP : 10.8.0.2 +-----+ PC 2 | LAN IP : 192.168.1.11
+---+---+ | | |
| | +------+
| |
| | +------+
| | | |
+---+---+ -----+ PC 1 | LAN IP : 192.168.1.12
| | LAN IP : 172.20.10.1 | | |
|Router | | +------+
| | WAN IP : 80.215.65.186 |
+---+---+ | +-------+
| +-----+OpenVPN| LAN IP : 192.168.1.73
| | |Server | VPN IP : 10.8.0.1
| XXXX X | +-------+
| XX XXXX XXXX |
| X X +---+---+
| XXXXX X | | LAN IP : 192.168.1.71
+--------+ XXX+-----+Router |
X INTERNET X | | WAN IP : 109.190.130.188
X XX +-------+
XXXX X
X XXXXXXX
XX XXX
XXXXX
So, 10.8.0.1 can ping 10.8.0.2, and 10.8.0.2 can ping 10.8.0.1.
But, from 10.8.0.2, I can't ping 192.168.1.12.
Here is the configuration file of my OpenVPN server :
port 1194
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 0
topology subnet
server 10.8.0.0 255.255.255.0
push "route 192.168.1.0 255.255.255.0"
push "redirect-gateway def1"
ifconfig-pool-persist ipp.txt
keepalive 10 120
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1
Here is the configuration file of my OpenVPN client :
client
dev tun
proto udp
remote 109.190.130.188 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\PC-portable.crt"
key "C:\\Program Files\\OpenVPN\\config\\PC-portable.key"
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 1
remote-cert-tls server
cipher AES-256-CBC
verb 3
Maybe it is a problem of route configuration, but I don't know what to add or modify.
Here is the route table of the OpenVPN client laptop :
C:\WINDOWS\system32>route print
===========================================================================
Liste d'Interfaces
11...46 1c a8 e3 02 ed ......Microsoft Wi-Fi Direct Virtual Adapter
9...46 1c a8 e3 0a ed ......Microsoft Wi-Fi Direct Virtual Adapter #2
5...3a 71 de 12 bc 8d ......Apple Mobile Device Ethernet
50...00 ff 6d 5c 3c 91 ......TAP-Windows Adapter V9
3...44 1c a8 e3 02 ed ......Dell Wireless 1830 802.11ac
6...44 1c a8 e3 02 ee ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
===========================================================================
IPv4 Table de routage
===========================================================================
Itinéraires actifs :
Destination réseau Masque réseau Adr. passerelle Adr. interface Métrique
0.0.0.0 0.0.0.0 172.20.10.1 172.20.10.2 35
0.0.0.0 128.0.0.0 10.8.0.1 10.8.0.2 35
10.8.0.0 255.255.255.0 On-link 10.8.0.2 291
10.8.0.2 255.255.255.255 On-link 10.8.0.2 291
10.8.0.255 255.255.255.255 On-link 10.8.0.2 291
109.190.130.188 255.255.255.255 172.20.10.1 172.20.10.2 35
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
128.0.0.0 128.0.0.0 10.8.0.1 10.8.0.2 35
172.20.10.0 255.255.255.240 On-link 172.20.10.2 291
172.20.10.2 255.255.255.255 On-link 172.20.10.2 291
172.20.10.15 255.255.255.255 On-link 172.20.10.2 291
192.168.1.0 255.255.255.0 10.8.0.1 10.8.0.2 35
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 172.20.10.2 291
224.0.0.0 240.0.0.0 On-link 10.8.0.2 291
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 172.20.10.2 291
255.255.255.255 255.255.255.255 On-link 10.8.0.2 291
===========================================================================
Itinéraires persistants :
Aucun
IPv6 Table de routage
===========================================================================
Itinéraires actifs :
If Metric Network Destination Gateway
1 331 ::1/128 On-link
5 291 fe80::/64 On-link
50 291 fe80::/64 On-link
5 291 fe80::cfc:6e46:60ad:228a/128
On-link
50 291 fe80::b5cc:6190:b1a1:c741/128
On-link
1 331 ff00::/8 On-link
5 291 ff00::/8 On-link
50 291 ff00::/8 On-link
===========================================================================
Itinéraires persistants :
Aucun
C:\WINDOWS\system32>
Is someone have an idea ?
I searched for tutorials, but not yet find something interesting regarding this case.
Thanks.
Jerome