ziobudda |
09-13-2006 10:04 AM |
OpenVPN and default route
Hi, I have installed an openvpn for my wlan connettivity. I have a problem with the default route.
"unable to redirect default gateway -- Cannot read current default gateway from system".
I have see more and more documents on internet and in one of them I see the #route-gateway directive. But it does not works. The only way to go on internet is:
Code:
sudo route add -net 10.k.0.0 netmask 255.255.255.0 dev tun0;
sudo route add default gw 10.k.o.p
Where is my error ??
My client.conf file is:
Code:
client
dev tun
proto udp
remote 192.x.x.x 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 4
My server.conf file is:
Code:
port 1194
proto udp
dev tun
ca ca.crt
cert /path/server1.crt
dh dh1024.pem
server 10.k.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.x.y.0 255.255.255.0"
push "route 10.z.w.0 255.255.255.0"
push "redirect-gateway"
keepalive 10 120
comp-lzo
max-clients 3
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 4
Tnx.
|