LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2006, 10:04 AM   #1
ziobudda
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:

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.
 
  


Reply



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 02:20 AM
Not getting a default route wswartz Linux - Networking 4 10-27-2005 11:25 AM
OpenVPN client cannot route to LAN TheAmazingSteve Linux - Networking 1 09-29-2005 03:40 PM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
Route dialup modem packets back through dialup instead of default route cable modem jogress Linux - Networking 1 10-21-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:42 PM.

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