Dear list: I experimented a bit making the script
#!/bin/sh -e 
/sbin/ip route add $1 $2 $3 $4 $5 $6
But same outcome "... shell failed with error status 1."

I checked the -e parameter and it is stops the script immediately if any
command fails. 
Higher up in daemon.log openvpn calls the script this way:
Dec  4 21:55:39 firewall openvpn[9273]: /etc/openvpn/openvpn.up tun0
1500 1576 10.1.1.1 10.1.1.2 init

10.1.1.1 is the local vpn endpoint and 10.1.1.2 is intended to be my
laptop over wireless.  Looking at the openvpn howto, and the ip man
page, (http://annys.eines.info/cgi-bin/man/man2html?ip+8) I am thinking
I must need something like
        
/sbin/ip route add $4/32 mtu $2 nexthop dev $1 

I am pretty sure 1500 and 1576 are the result of my attempts to obtain
compatibility with 2.x openvpn on my winXP laptop. 
Have not a clue what to do with the 1576 or the other tunnel endpoint.

Can anyone give me some help here?
Rick.

My config is

dev tun
# For compatability with 2.x openvpn clients/servers
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
# When using TLS-security (tls-server) uncomment this for 2.x
#key-method 2

local 216.x.y.x # anonymized...
# Our remote peer (office subnet)
#remote 137.p.q.r
# Remote peer (wireless internal w/o RU vpn)
remote 192.168.1.3

# 10.1.1.1 is our local VPN endpoint
# 10.1.1.2 is our remote VPN endpoint (home wlan)
ifconfig 10.1.1.1 10.1.1.2
up /etc/openvpn/openvpn.up


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tibbs,
Richard
Sent: Saturday, December 04, 2004 6:47 PM
To: [EMAIL PROTECTED]
Subject: [leaf-user] Openvpn problems executing up-script


Dear list -- apologies in advance, I am not familiar with unix scripts.
Using using openvpn 1.6 on a Bering 1.2 firewall (non-uclibc) I have
tried several different 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?

TIA
Rick.

 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to