fails running command (--up/--down): external program fork failed

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
ksjk1998
OpenVpn Newbie
Posts: 1
Joined: Sun Apr 24, 2016 7:09 pm

fails running command (--up/--down): external program fork failed

Post by ksjk1998 » Sun Apr 24, 2016 7:27 pm

This error has been plauging me for a while and at this point, I feel like i've run out of options. If someone would be so kind enough as to show me what to fix within my configs and up down scripts that would be awesome. Ill answer any unanswered questions but at the moment this one error has made me feeling drained. Thanks in advance.

up.sh

Code: Select all

#!/bin/sh
BR=$1
DEV=$2
MTU=$3
/sbin/ifconfig $DEV mtu $MTU promisc up
/sbin/brctl addif $BR $DEV
down.sh

Code: Select all

#!/bin/sh
BR=$1
DEV=$2
/sbin/brctl delif $BR $DEV
/sbin/ifconfig $DEV down
server.config
1
port 1194
2
proto tcp
3
proto udp
4
dev tap0
5
ca /home/pi/pki/ca.crt
6
cert /home/pi/pki/issued/rpi0.crt
7
key /home/pi/pki/private/rpi0.key
8
dh "/home/pi/pki/dh.pem"
9
server-bridge 192.168.1.73 255.255.255.0 192.168.1.90 192.168.1.99
10
ifconfig-pool-persist ipp.txt
11
push "route 192.168.1.254 255.255.255.0"
12
push "redirect-gateway def1 bypass-dhcp"
13
push "dhcp-option DNS 208.67.222.222"
14
push "dhcp-option DNS 208.67.220.220"
15
keepalive 10 120
16
tls-auth /home/pi/pki/private/ta.key 0
17
cipher AES-128-CBC
18
comp-lzo
19
user nobody
20
group nogroup
21
persist-key
22
persist-tun
23
status /home/pi/Documents/openvpn-status.log
24
log /home/pi/Documents/openvpn.log
25
log-append /home/pi/Documents/openvpnappend.log
26
verb 9
27
up "/etc/openvpn/up.sh br0"
28
down "/etc/openvpn/down.sh br0"
Last edited by debbie10t on Sun Apr 24, 2016 8:10 pm, edited 1 time in total.
Reason: Use bbcode [oconf=config] please

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: fails running command (--up/--down): external program fork failed

Post by Traffic » Mon Apr 25, 2016 1:02 pm

Try removing this:

Code: Select all

user nobody
group nogroup

Post Reply