OpenVPN - Can't access other machines on the server's subnet
Hi, I'm setting up my first OpenVPN connection and using the "Examples" section of the man page as a guide.
The problem is that while I'm able to ping the server from the client, I can't ping any other machine on the server's subnet. I know that this has something to do with ip forwarding and routing, but I don't know what commands to execute.
I have done a 'echo 1 > /proc/sys/net/ipv4/ip_forward' on both machines. The OpenVPN FAQ says that I "need to add an internal LAN route to the LAN gateway so that the private OpenVPN subnet (declared in the server, ifconfig, or ifconfig-pool directives) is routed to the OpenVPN server machine (i.e. its internal address)", but I'm not sure what the proper route command is to make that happen.
My server is:
on subnet 192.168.1.0/24
with IP 192.168.1.100
and tun1 is 10.4.0.1
My client is:
on subnet 192.168.0.0/24
with IP 192.168.0.106
and tun1 is 10.4.0.2
From the client, I can ping 10.4.0.1 and 192.168.1.100. I can't ping 192.168.1.102 (another machine on the server's subnet).