Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-13-2006, 11:04 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 14

Rep: Reputation: 0
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:

sudo route add -net 10.k.0.0 netmask dev tun0; 
sudo route add default gw 10.k.o.p
Where is my error ??

My client.conf file is:
dev tun
proto udp
remote 192.x.x.x 1194
resolv-retry infinite
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
verb 4
My server.conf file is:
port 1194
proto udp
dev tun
ca ca.crt
cert /path/server1.crt
dh dh1024.pem
server 10.k.0.0
ifconfig-pool-persist ipp.txt
push "route 10.x.y.0"
push "route 10.z.w.0"
push "redirect-gateway"
keepalive 10 120
max-clients 3
user nobody
group nobody
status openvpn-status.log
log-append  openvpn.log
verb 4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 03:20 AM
Not getting a default route wswartz Linux - Networking 4 10-27-2005 12:25 PM
OpenVPN client cannot route to LAN TheAmazingSteve Linux - Networking 1 09-29-2005 04:40 PM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 03:11 PM
Route dialup modem packets back through dialup instead of default route cable modem jogress Linux - Networking 1 10-21-2003 04:48 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration