openvpn and routing

Charles Curley charlescurley at charlescurley.com
Thu Mar 7 14:58:52 MST 2013


I tried installing openvpn and following this tutorial:
http://wiki.debian.org/OpenVPN

I got as far as the statement "You should probably configure your route
at this step." I have tried several "route add" commands but none seem
to produce useful results. I can ping the local side of the connection,
but not the remote side.

My client looks like:

root at yendi:/etc/openvpn# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.9.8.1        0.0.0.0         255.255.255.255 UH    0      0        0 tun0
192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0
192.168.124.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
root at yendi:/etc/openvpn# 

My server looks like:

root at dzur:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.9.8.2        0.0.0.0         255.255.255.255 UH    0      0        0 tun0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.31    0.0.0.0         UG    0      0        0 eth0
root at dzur:~# 

How do I add the appropriate route to each machine? Thanks

-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB


More information about the PLUG mailing list