I'm trying to configure my OpenVPN server to provide access to the LAN behind it and I'm having a problem. I'm sure its very simple but my routing knowledge is very limited. Here is my setup.
Server subnet: 10.0.0.0/16
OpenVPN server IP: 10.0.0.4
VPN subnet: 10.8.0.0
Client subnet: 192.168.100.0/24
I can successfully connect to my VPN server and ping its local IP (10.0.0.4) from the client. I cannot reach any other servers on the server's subnet however (e.g. 10.0.0.2).
I am attempting to follow the guide at https://openvpn.net/community-resources ... er-subnet/
I have the following push directive in server.conf
server config
push "route 10.0.0.0 255.255.255.0"
The directions in the link above also state:
I think this is what I'm missing. Unfortunately I have no clue as to how to set up this route. I suspect its another option to add in my server.conf but I really don't know.Next, you must set up a route on the server-side LAN gateway to route the VPN client subnet (10.8.0.0/24) to the OpenVPN server (this is only necessary if the OpenVPN server and the LAN gateway are different machines).
Here is the routing table on my client when connected:
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.8.0.9 0.0.0.0 UG 50 0 0 tun0
0.0.0.0 192.168.100.1 0.0.0.0 UG 100 0 0 enp1s0
<redacted> 192.168.100.1 255.255.255.255 UGH 100 0 0 enp1s0
10.0.0.0 10.8.0.9 255.255.255.0 UG 50 0 0 tun0
10.8.0.1 10.8.0.9 255.255.255.255 UGH 50 0 0 tun0
10.8.0.9 0.0.0.0 255.255.255.255 UH 50 0 0 tun0
192.168.100.0 0.0.0.0 255.255.255.0 U 100 0 0 enp1s0
192.168.100.1 0.0.0.0 255.255.255.255 UH 100 0 0 enp1s0
TIA