Re: [Openvpn-users] Up-script problem

> Modified the script to be
> #!/bin/sh -e
> /sbin/ip route add $1 $2 $3 $4 $5 $6
> But same outcome "... shell failed with error status 1."
Well, an error code of 1 is a progression compared to the 2 you had
before. Error code of 1 indicates that the /sbin/ip command failed and
could not add the route. Proably due to the parameters.
> 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
shouldn't that be
/sbin/ip route add -host $3 mss $2 gw $4 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?
According to the manpage for the --up command:
cmd tun_dev tun_mtu link_mtu ifconfig_local_ip if­
config_remote_ip [ init | restart ]
So that 1576 is your link mtu. I believe it is of no use here...
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