LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] OpenVPN

[ILUG] OpenVPN

belgarath belgarath at webangel.ie
Thu Sep 2 16:26:05 IST 2010


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
> persist-tun
> persist-key
> comp-lzo
> 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
> Iface
> 10.8.0.2        0.0.0.0         255.255.255.255 UH    0      0        0
> tun0
> 192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0
> eth0
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth1
> 0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0
> eth1
> 
> 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
http://www.webangel.ie



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell