error: OpenvpnManagementHandler: Connection refused

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

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

Post Reply
gopi219
OpenVpn Newbie
Posts: 1
Joined: Sun Apr 22, 2012 11:15 am

error: OpenvpnManagementHandler: Connection refused

Post by gopi219 » Sun Apr 22, 2012 11:49 am

Hi,


I am trying to exercise a transparent Open VPN connection. I am trying to connect to the server using "KVpnc". I haven't used package management and compiled from the source. The version I am working with is Debian 6 machines;

Network setup
VPN_SRVR(eth0:192.168.0.2) <----> (eth0:192.168.0.1)Linux_IP_FWD_ENABLED(eth1:192.168.1.1) <----> (eth1:192.168.1.2)KVPNC_CLIENT (eth0: 10.1.1.1)

Open VPN 2.1.3 apt-get installed @ server side
Open VPN 2.2.2 make installed @ client side
KVpnc 0.9.5 apt-get installed @ client side

I could able to ping between VPN_SRVR and KVPNC_CLIENT;

Code: Select all

------client.conf---------------------------------------------
# OpenVPN server
remote 192.168.0.2
# Tunnel mode
dev tun
# IP addresses
ifconfig 10.9.0.2 10.9.0.1
# Cipher mode
cipher none
# Authentication mode
auth none
# Log verbosity
verb 3
#Script-security
script-security 3 system
management localhost 7505
-----------------------------------------------------------------

Code: Select all

--------server.conf-----------------------------------------
# Tunnel mode
dev tun
# IP addresses
ifconfig 10.9.0.1 10.9.0.2
# Cipher mode
cipher none
# Authentication mode
auth none
# Log verbosity
verb 3
script-security 3 system
management 0.0.0.0 7505
-------------------------------------------------------------------
When I try to connect to server from KVpnc I get error on log window

Code: Select all

----------KVpnc.log-----------------------------------------
debug: Wallet disabled or not available, reading passwords from config file.
debug: Preserving network environment
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 "192.168.0.2" with ... 
debug: Setting DNS_UPDATE "Yes".
debug: Starting Openvpn management handler...
debug: [openvpn] Sun Apr 22 17:14:11 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
debug: [openvpn] Sun Apr 22 17:14:11 2012 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.
debug: [openvpn] Sun Apr 22 17:14:11 2012 WARNING: Failed running command (--up/--down): external program fork failed
debug: [openvpn] 
debug: [openvpn] Sun Apr 22 17:14:11 2012 ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext
debug: [openvpn] 
error: OpenvpnManagementHandler: Connection refused
error: OpenvpnManagementHandler: Got no greeting within 3 seconds from management interface, retrying.
error: OpenvpnManagementHandler: Connection refused
error: OpenvpnManagementHandler: Got no greeting within 3 seconds from management interface, retrying.
error: OpenvpnManagementHandler: Connection refused
error: OpenvpnManagementHandler: Got no greeting within 3 seconds from management interface, retrying.
error: OpenvpnManagementHandler: Connection refused
debug: Disconnect requested
debug: Disconnect requested, status connecting
debug: Killing process while connecting. 
success: Successful connect try canceled.
debug: Disconnected.
------------------------------------------------------------
Please let me know the mistake I did in configuration and/or network setup...


Reg,
Gopi

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: error: OpenvpnManagementHandler: Connection refused

Post by krzee » Mon Apr 23, 2012 7:45 am

if you want to disable encryption and auth, you may as well use GRE tunnels, they should be a little more efficient. but in your case you're in the same lan... so if you dont need encryption, a vpn and a tunnel are both unnecessary. im not sure of your end-goal but it looks like a vpn is not needed

Post Reply