|
|
Den 17. jul 2004, kl. 11:20, skrev sam:
Jon Bendtsen wrote:
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
Here is the part of the config file:
dev tap
port 5000
mode server
ifconfig 10.8.0.1 255.255.255.0
ifconfig-pool 10.8.0.4 10.8.0.255
tls-server
ca /root/my-openvpn-keys/ca.crt
cert /root/my-openvpn-keys/fujicrystal-serv.crt
key /root/my-openvpn-keys/fujicrystal-serv.key
dh /root/my-openvpn-keys/dh2048.pem daemon
writepid /var/run/openvpn.pid
up get-vars.sh
fine, that looks right. Then you have to run the script as the same
user as openvpn and see what happens.
Does it give any output?
JonB
____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users
|