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

[Openvpn-users] Up-script problem

  • Subject: [Openvpn-users] Up-script problem
  • From: "Tibbs, Richard" <rwtibbs@xxxxxxxxxxx>
  • Date: Sat, 4 Dec 2004 18:46:59 -0500

Dear list -- apologies in advance, I am not familiar with unix scripts.

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 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 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?


Openvpn-users mailing list