View previous topic :: View next topic |
Author |
Message |
cloc3 Advocate
Joined: 13 Jan 2004 Posts: 4788 Location: http://www.gentoo-users.org/user/cloc3/
|
Posted: Sat Nov 01, 2008 1:49 am Post subject: openvpn: client routing table non correct [solved] |
|
|
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 |
|
|
Ph0eniX Guru
Joined: 24 Sep 2004 Posts: 502 Location: New York, U.S.
|
Posted: Sat Nov 01, 2008 4:15 am Post subject: |
|
|
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 |
|
|
cloc3 Advocate
Joined: 13 Jan 2004 Posts: 4788 Location: http://www.gentoo-users.org/user/cloc3/
|
Posted: Sat Nov 01, 2008 8:55 am Post subject: |
|
|
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 |
|
|
|