WARNING: Failed running command (--up/--down): external prog
Posted: Tue Dec 20, 2011 10:58 am
Hallo,
after reading several similar discussions, I realize my problem is different somehow, so I write this new post.
My config file for the kvpnc on ubuntu client is :
on the ubuntu server side (different pc of course) the config file looks like this (took comments out for readability)
I can start the server and when I'm trying to connect with kvpnc I always get a
so I tried the "--script-security 3 system" to write in the server.conf, but the server then doesn't restart.
Maybe I just didn't get it right where to put the "--script-security 3 system" option, but I also couldn't find out by reading other posts in this forum or elsewhere.
So I hope you can help me finding the error I made.
Thanks so far
after reading several similar discussions, I realize my problem is different somehow, so I write this new post.
My config file for the kvpnc on ubuntu client is :
Code: Select all
#Festlegen als was fungiert wird
tls-client
pull
# Methode festlegen tun oder tap
dev tap
# Protokoll auswaehlen udp oder tcp
proto udp
# IP/Name und Port des Servers
remote 80.*.*.* 1194
# Auflösen des Hostnames des Servers (wegen nicht permanent mit dem Internet verbundenen Rechnern)
resolv-retry infinite
# Localen Port festlegen oder freigeben
nobind
# Verbindung immer gleich halten
persist-key
persist-tun
#zu verwendende Zertifikate und Schlüssel
ca /home/lrohr/Desktop/vpn/ca.crt
cert /home/lrohr/Desktop/vpn/client.crt
key /home/lrohr/Desktop/vpn/client.key
# Verschlüsselung
cipher AES-256-CBC
# Komprimiernug
comp-lzo
# Authentifizierungsmethode
auth SHA1
# "Gesprächigkeit" des Tunnels
verb 3
# Silence repeating messages
mute 20
Code: Select all
;local a.b.c.d
port 1194
;proto tcp
proto udp
;dev tap
dev tun
;dev-node MyTap
ca ./easy-rsa2/keys/ca.crt
cert ./easy-rsa2/keys/server.crt
key ./easy-rsa2/keys/server.key # This file should be kept secret
dh ./easy-rsa2/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;push "route 192.168.10.0 255.255.255.0"
push "route 192.168.2.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
;push "redirect-gateway"
;push "dhcp-option DNS 10.8.0.1"
;push "dhcp-option WINS 10.8.0.1"
;client-to-client
;duplicate-cn
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
;log-append openvpn.log
verb 5
;mute 20
Code: Select all
debug: Wallet disabled or not available, reading passwords from config file.
debug: openvpn: /usr/sbin/openvpn
debug: Support for TUN/TAP found (compiled into kernel or kernel module already loaded).
debug: No default interface found, using "lo".
debug: No IP for default interface found, using "127.0.0.1".
info: Trying to connect to server "80.*.*.*" with ...
debug: Setting DNS_UPDATE "NO".
debug: Starting Openvpn management handler...
debug: [openvpn] Tue Dec 20 11:51:20 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
debug: [openvpn] Tue Dec 20 11:51:20 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
debug: [openvpn]
debug: [openvpn] Tue Dec 20 11:51:24 2011 WARNING: External program may not be called unless '--script-security 2' or higher is enabled. Use '--script-security 3 system' for backward compatibility with 2.1_rc8 and earlier. See --help text or man page for detailed info.
error: OpenvpnManagementHandler: The remote host closed the connection
debug: [openvpn] Tue Dec 20 11:51:24 2011 WARNING: Failed running command (--up/--down): external program fork failed
debug: [openvpn]
Maybe I just didn't get it right where to put the "--script-security 3 system" option, but I also couldn't find out by reading other posts in this forum or elsewhere.
So I hope you can help me finding the error I made.
Thanks so far