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

Re: [Openvpn-users] variables in up scripts


  • Subject: Re: [Openvpn-users] variables in up scripts
  • From: Jon Bendtsen <jon.bendtsen@xxxxxxxxxx>
  • Date: Sat, 17 Jul 2004 11:16:35 +0200

Den 17. jul 2004, kl. 11:01, skrev sam:

Jon Bendtsen wrote:

Den 17. jul 2004, kl. 10:44, skrev sam:

Hi, I changed the script get-vars.sh contains the following line:
export >> /tmp/tempfile
But after executed OpenVPN and established connection with the client, I still don't see the "tempfile" in the /tmp directory.


how do you tell openvpn to execute it ?


JonB

Sorry, I forgot I commented out the UP line, after I enabled it, it still has the problem with permission:
Jul 17 16:54:13 fbsd openvpn[37959]: TUN/TAP device /dev/tap0 opened
Jul 17 16:54:13 fbsd openvpn[37959]: /sbin/ifconfig tap0 10.8.0.1 netmask 255.255.255.0 mtu 1500 up
Jul 17 16:54:13 fbsd openvpn[37959]: get-vars.sh tap0 1500 1590 10.8.0.1 255.255.255.0 init
Jul 17 16:54:13 fbsd openvpn[37959]: script failed: could not execute shell command
Jul 17 16:54:13 fbsd openvpn[37959]: Exiting


Here is the permission of the get-vars.sh file:
root@fbsd [5:04pm] [...local/etc]# ls -l get-vars.sh
-rwxrwxrwx  1 nobody  nogroup  24 Jul 17 16:49 get-vars.sh*

Here is the content of the script:
# cat get-vars.sh
export  >>  $(tempfile)

su nobody run this script

and please, give me the part of the config file that contains the line with this script



JonB


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