On Thu, 2010-09-02 at 16:14 +0100, kevin wrote:
> I am trying to set up an openvpn connection between our main server and
> the off-site backup server. Something nice and simple with a static key.
> I seem to get a connection but have a routing problem.
>> The config file is
>> port 1194
> dev tun
> ifconfig 10.8.0.1 10.8.0.2
> secret /etc/openvpn/static.key
> keepalive 10 60
> tun-mtu 1500
> script-security 2
> route-up "route delete -net 192.168.200.0"
> route-up "route add -net 192.168.200.0 netmask 255.255.255.0 dev tun0"
> verb 5
> status openvpn-status.log
>> The routing table comes up with:
>> Kernel IP routing table - with VPN up
> Destination Gateway Genmask Flags Metric Ref Use
> 10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0
> 192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
> 0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0
>> What happened to the route 192.168.200.0
Shouldn't it be push rather than route up? sth like :
push "route 10.0.0.0 255.255.255.0"
WebAngel, reliable VPS hosting
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!