Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openvpn: client routing table non correct [solved]
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
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4788
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sat Nov 01, 2008 1:49 am    Post subject: openvpn: client routing table non correct [solved] Reply with quote

I'need to route client to a gataway different then the server one.
this is my server conf:
Code:

s939 openvpn # cat server.conf |grep -v ^\; |grep -v ^$ |grep -v ^#
port 1194
proto udp
dev tap1
ca keys/ca.crt
cert keys/server.crt
key keys/server.key  # This file should be kept secret
dh keys/dh1024.pem
ifconfig-pool-persist ipp.txt
server-bridge 172.16.200.128 255.255.255.0 172.16.200.10 172.16.200.50
push "route 0.0.0.0 255.255.255.0 172.16.200.254"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3

and this my client route table:
Code:

client-openvpn:/live/image/openvpn# route -en
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         172.16.200.254  255.255.255.0   UG        0 0          0 tap0
172.16.199.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
172.16.200.0    0.0.0.0         255.255.255.0   U         0 0          0 tap0

first line should be moved in last place.
what's wrong?
_________________
vu vu vu
gentù
mi piaci tu


Last edited by cloc3 on Sat Nov 01, 2008 8:55 am; edited 1 time in total
Back to top
View user's profile Send private message
Ph0eniX
Guru
Guru


Joined: 24 Sep 2004
Posts: 502
Location: New York, U.S.

PostPosted: Sat Nov 01, 2008 4:15 am    Post subject: Reply with quote

For starters you have a problem with in the definition of this route (the subnet mask):
Code:

push "route 0.0.0.0 255.255.255.0 172.16.200.254"
'

24bits of what? If this is supposed to be a default route, the subnet mask should be 0.0.0.0.
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4788
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sat Nov 01, 2008 8:55 am    Post subject: Reply with quote

Ph0eniX wrote:

Code:

push "route 0.0.0.0 255.255.255.0 172.16.200.254"


thanks:
Code:

push "route 0.0.0.0 0.0.0.0 172.16.200.254"

works fine.
_________________
vu vu vu
gentù
mi piaci tu
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