Jean-Pierre on the openvpn list gave me this pointer -- hope it helps
anyone else using openvpn (and lacks the openvpn decoder ring, as I do
;-).  The command line parameters are
"
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...
"
Since I *think* the purpose of tun_mtu might be to set the tun_mtu, as I
did in the openvpn.conf file, I might try:

/sbin/ip link set mtu $3 dev $1
/sbin/ip route add $4/32 via dev $1

Thanks Erich! (et Jean-Pierre aussi)
Rick.


-----Original Message-----
From: Erich Titl [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 05, 2004 4:59 AM
To: Tibbs, Richard
Subject: Re: [leaf-user] Openvpn problems executing up-script

Rick

Tibbs, Richard wrote:

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

/sbin/ip link set mtu $2 dev $1
/sbin/ip route add $4/32 via dev $1

cheers
Erich





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