Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openvpn client-with-lan routing problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trogie
n00b
n00b


Joined: 06 Jul 2004
Posts: 54
Location: Kortrijk, Belgium, Europe

PostPosted: Thu Oct 23, 2008 8:16 am    Post subject: openvpn client-with-lan routing problem Reply with quote

Hello,

I have an openvpn server on the internet (VPS). Some clients (mostly internet routers) have a private lan behind them and these lans should be accessible for other clients. So I have the client-config-dir set with all client files (common names from certificates) and the iroutes in them. Also the 'route' options in the server configuration and the 'push route'.

But there is a problem: if client1 with 192.168.0.0 private network connects to the vpn server it also gets the 'push route' for his own private network! The router will now start to send all 192.168.0.0 towards the vpn server! If the openvpn server knows that client1 has the 192.168.0.0 (iroute, route,..) network behind him, then it should not push that route to that client no? If I remotely remove that route from the routing table on the client than everything works like it should.

Is there a misconfiguration or am I missing something?
_________________
Visit Belgiums Paraglide Portal - Bezoek de Belgische Paraglide portaal
-- http://www.paraglide.be --
Back to top
View user's profile Send private message
trogie
n00b
n00b


Joined: 06 Jul 2004
Posts: 54
Location: Kortrijk, Belgium, Europe

PostPosted: Sat Oct 25, 2008 10:08 am    Post subject: Reply with quote

found the problem. Missed a netmask in the client ccd file... Wrote 255.255.0.0 instead of 255.255.255.0 and that's why that client got his own private network pushed...
_________________
Visit Belgiums Paraglide Portal - Bezoek de Belgische Paraglide portaal
-- http://www.paraglide.be --
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum