Hi,
I'm trying to get OPENVPN to start and execute a script that passes the local IP of the VPN to the transmission settings.json bind_socket variable.
I have this solution working nicely on a raspberry pi but i wanted to get it working on transmission in freeness. I can connect to the VPN easily by issuing
openvpn /media/home/vpn.conf
and everything works fine...
but if i issue
openvpn --config /media/home/vpn.conf --script-security 2 --up /media/home/up.sh
I get the following error
Thu Apr 3 16:38:19 2014 us=161145 /media/home/up.sh tun1 1500 1572 172.20.26.14 255.255.248.0 init
Thu Apr 3 16:38:19 2014 us=162080 WARNING: Failed running command (--up/--down): could not execute external program
Thu Apr 3 16:38:19 2014 us=162113 Exiting due to fatal error
the strange thing is that if I cut and past the above command
/media/home/up.sh tun1 1500 1572 172.20.26.14 255.255.248.0 init
into the shell then it works fine.... as far as I know openvpn executes as root, and the up.sh script has 755 permissions... I'm a bit stumped...
Any ideas would be appreciated..
Thanks
I'm trying to get OPENVPN to start and execute a script that passes the local IP of the VPN to the transmission settings.json bind_socket variable.
I have this solution working nicely on a raspberry pi but i wanted to get it working on transmission in freeness. I can connect to the VPN easily by issuing
openvpn /media/home/vpn.conf
and everything works fine...
but if i issue
openvpn --config /media/home/vpn.conf --script-security 2 --up /media/home/up.sh
I get the following error
Thu Apr 3 16:38:19 2014 us=161145 /media/home/up.sh tun1 1500 1572 172.20.26.14 255.255.248.0 init
Thu Apr 3 16:38:19 2014 us=162080 WARNING: Failed running command (--up/--down): could not execute external program
Thu Apr 3 16:38:19 2014 us=162113 Exiting due to fatal error
the strange thing is that if I cut and past the above command
/media/home/up.sh tun1 1500 1572 172.20.26.14 255.255.248.0 init
into the shell then it works fine.... as far as I know openvpn executes as root, and the up.sh script has 755 permissions... I'm a bit stumped...
Any ideas would be appreciated..
Thanks