Hello,
I just installed Ubuntu Server 10 (actually I switched from Ubuntu desktop 10), and am having trouble getting OpenVPN server to work.
I am using the Static Key Mini-HOWTO (
http://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html). I've gotten it working as a standard VPN, but I'm having trouble with the step called "Allow client to reach entire server subnet". When I include the "route" line in my server.config, no machines can ping the server anymore.
- My server is at 192.168.1.98
- My gateway is at 192.168.1.2. It has a route setup to direct 10.8.0.0 at 255.255.255.0 to 192.168.1.98. I'm somewhat sure this is correct, because everything worked before I switched to the server OS.
- I have enabled IP forwarding on the server.
Here is my server.config:
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key
route 192.168.1.0 255.255.255.0
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
After running OpenVPN I cannot ping 192.168.1.98 from other machines on the server LAN (e.g. 192.168.1.103) or the VPN client (i.e. 10.8.0.2). If I comment out the "route" line everything works correctly, except of course the VPN client can't access other machines on the server's LAN.