[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Up-script problem


  • Subject: Re: [Openvpn-users] Up-script problem
  • From: Jean-Pierre Schwickerath <lists@xxxxxxxxxxxx>
  • Date: Sun, 5 Dec 2004 01:51:56 +0100


> I am using openvpn 1.6 on 2.4.20 kernel with the ip route command
> available (no bash, just plain shell).  I have tried several script
> lines to add the route. These are:
> #!/bin/sh -e
> ip route add 10.1.1.0 255.255.255.0 nexthop $5
> 
> #!/bin/sh -e
> ip route add $1
> 
> #!/bin/sh -e
> ip route add $1 $2 $3 $4 $5 $6
> 
> In each case I get the message in daemon.log
> Dec  4 19:11:58 firewall openvpn[3939]: /etc/openvpn/openvpn.up tun0
> 1256 1300 10.1.1.1 10.1.1.2 init
> Dec  4 19:11:58 firewall openvpn[3939]: script failed: shell command
> exited with error status: 2
> Dec  4 19:11:58 firewall openvpn[3939]: Exiting
> 
> Can anybody tell me how to get the script to succeed?

I'm not sure but maybe a few things to check:

- is your file executable for the user running openvpn?
- did you try to run the script without "-e"?
- could you try to enter the full path to "ip"?

Otherwise, check what error code 2 is for your shell?

Jean-Pierre

-- 
Powered by Linux From Scratch - http://schwicky.net/
PGP Key ID: 0xEE6F49B4 - AIM/Jabber: Schwicky - ICQ: 4690141

Nothing is impossible... Everything is relative!

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users