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

kevin lists at cybercolloids.net
Thu Sep 2 16:47:15 IST 2010


On Thu, 2010-09-02 at 16:25 +0100, belgarath wrote:
> 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"
> 

The client network is 192.168.200.0/24
The server network is 192.168.100.0/24
So I think - could be wrong - that I need a section in my routing table
on the server that says how to get to the client network and vice versa.
At the moment I am trying to set up the route on the server so I think
its route and not push. Push would send it to the client. Anyway - its
not happening!





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