WARNING: Failed running command (--up/--down): external prog
Posted: Fri Nov 13, 2015 11:03 pm
Hello experts
I am running OpenVPN Server on Ubuntu 14.0.4 server in Azure with a OpenWRT AP as OpenVPN client. The .config file (on the server) includes a script to add route - which unfortunately is failing:
Nov 13 17:23:02 UbuntuSrvr daemon.notice ovpn-ppcode_openvpn[1681]: /etc/openvpn/ppcode.up tun0 1500 1545 172.27.224.1 172.27.224.2 init
Nov 13 17:23:02 UbuntuSrvr daemon.err ovpn-ppcode_openvpn[1681]: WARNING: Failed running command (--up/--down): could not execute external program
Nov 13 17:23:02 UbuntuSrvr daemon.notice ovpn-ppcode_openvpn[1681]: Exiting due to fatal error
The tunnel comes up fine as I comment the script (highlighted below):
script-security 2
# Use a dynamic tun device.
dev tun
# 172.27.224.1 is our local VPN endpoint (OpenVPNSrvr).
# 172.27.224.2 is our remote VPN endpoint (gl-inet WRT AP).
ifconfig 172.27.224.1 172.27.224.2
# up script will establish routes once the VPN is alive.
up /etc/openvpn/ppcode.up
And here is the ppcode.up file:
#!/sbin/bash
# add route to houwels network via VPN end-point of WRT
route add -net 192.168.8.0 netmask 255.255.255.0 gw $5
I have been searching the help on the forum and found discussions like the one below:
topic9431.html
But it has not helped my case. I have added "script-security 2" in the .config file, but in vain.
Could some one help, appreciate it,
Thanks
I am running OpenVPN Server on Ubuntu 14.0.4 server in Azure with a OpenWRT AP as OpenVPN client. The .config file (on the server) includes a script to add route - which unfortunately is failing:
Nov 13 17:23:02 UbuntuSrvr daemon.notice ovpn-ppcode_openvpn[1681]: /etc/openvpn/ppcode.up tun0 1500 1545 172.27.224.1 172.27.224.2 init
Nov 13 17:23:02 UbuntuSrvr daemon.err ovpn-ppcode_openvpn[1681]: WARNING: Failed running command (--up/--down): could not execute external program
Nov 13 17:23:02 UbuntuSrvr daemon.notice ovpn-ppcode_openvpn[1681]: Exiting due to fatal error
The tunnel comes up fine as I comment the script (highlighted below):
script-security 2
# Use a dynamic tun device.
dev tun
# 172.27.224.1 is our local VPN endpoint (OpenVPNSrvr).
# 172.27.224.2 is our remote VPN endpoint (gl-inet WRT AP).
ifconfig 172.27.224.1 172.27.224.2
# up script will establish routes once the VPN is alive.
up /etc/openvpn/ppcode.up
And here is the ppcode.up file:
#!/sbin/bash
# add route to houwels network via VPN end-point of WRT
route add -net 192.168.8.0 netmask 255.255.255.0 gw $5
I have been searching the help on the forum and found discussions like the one below:
topic9431.html
But it has not helped my case. I have added "script-security 2" in the .config file, but in vain.
Could some one help, appreciate it,
Thanks