Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenVPN: "Linux route add command failed"
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
knifeyspoony
n00b
n00b


Joined: 01 Jun 2005
Posts: 70

PostPosted: Mon Jan 14, 2008 8:16 pm    Post subject: OpenVPN: "Linux route add command failed" Reply with quote

Hi,

I am running the OpenVPN client via the startup script on my laptop; running the server on my home router. I am able to connect to my router remotely, but then unable to route all my traffic through the router. The client did work on a past Gentoo install. I don't know what's different this time.

The crticial line below is ERROR: Linux route add command failed: shell command exited with error status: 7. What is status 7? Is there a way I can see what command OpenVPN is issuing, and perhaps a more verbose response from the shell?

Edit: I re-emerged with the ipconfig2 USE flag. Only apparent difference: It exits with error status 2.

Log lines:
Code:

Jan 14 12:02:38 [openvpn] TCP connection established with ip.addy.at.home:80
Jan 14 12:02:38 [openvpn] TCP/UDP: Dynamic remote address changed during TCP connection establishment
Jan 14 12:02:38 [openvpn] TCPv4_CLIENT link local: [undef]
Jan 14 12:02:38 [openvpn] TCPv4_CLIENT link remote: ip.addy.at.home:80
Jan 14 12:02:44 [openvpn] Peer Connection Initiated with ip.addy.at.home:80
Jan 14 12:02:44 [openvpn] TUN/TAP device tap0 opened
Jan 14 12:02:44 [openvpn] /etc/openvpn/up.sh tap0 1500 1579   init
Jan 14 12:02:59 [openvpn] ERROR: Linux route add command failed: shell command exited with error stat
us: 7
Jan 14 12:02:59 [openvpn] Initialization Sequence Completed



openvpn.conf:
Code:
remote ip.addy.at.home
port 80
dev tap
secret /etc/openvpn/static.key
keepalive 10 60
proto tcp-client
persist-tun
persist-key
comp-lzo
route-gateway 192.168.1.1
redirect-gateway
route-delay 15
Back to top
View user's profile Send private message
knifeyspoony
n00b
n00b


Joined: 01 Jun 2005
Posts: 70

PostPosted: Tue Jan 22, 2008 12:16 am    Post subject: Reply with quote

Ping.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23360

PostPosted: Tue Jan 22, 2008 4:55 am    Post subject: Reply with quote

Emerge dev-util/strace. It will let you see the system calls made by the OpenVPN process, which should show you the arguments it is passing to the helper utility. Run it as strace -f -tt -o /tmp/openvpn.strace openvpn openvpn-arguments.
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