PDA

View Full Version : [kubuntu] Kvpnc - OpenVPN Can't Connect Keeps Timing Out



DasFox
May 8th, 2011, 10:27 AM
I ran the Kvpnc wizard and imported my config file and when I try to connect it always says connection timed out...

I can connect to OpenVPN without a problem using the terminal, all I can say is kvpnc is a real pain and I don't get why I can't connect with it if I can connect without a problem from the terminal.

I thought this was suppose to be a simple GUI that you just imported your config add in your cert and the cert path and that's all...

I appreciate any help someone can give me to get this thing working...

THANKS


Here's what my log has been saying;


p, li { white-space: pre-wrap; } 921 2011-05-07 23:15:00 debug: New authtype: "cert".
922 2011-05-07 23:15:00 debug: currect connection type: "4".
923 2011-05-07 23:15:00 debug: New authtype: "cert".
924 2011-05-07 23:15:05 debug: New profile: _etc_openvpn_VPNSwiss-CH
925 2011-05-07 23:15:05 debug: New type: openvpn
926 2011-05-07 23:15:05 debug: currect connection type: "4".
927 2011-05-07 23:15:05 debug: New authtype: "cert".
928 2011-05-07 23:15:05 debug: currect connection type: "4".
929 2011-05-07 23:15:05 debug: New authtype: "cert".
930 2011-05-07 23:15:06 error: Writing user password has failed.
931 2011-05-07 23:15:06 error: Writing preshared key has failed.
932 2011-05-07 23:15:06 error: Writing preshared key password has failed.
933 2011-05-07 23:15:06 info: Profile "_etc_openvpn_VPNSwiss-CH" saved.
934 2011-05-07 23:15:06 debug: New profile: _etc_openvpn_VPNSwiss-CH
935 2011-05-07 23:15:06 debug: New type: openvpn
936 2011-05-07 23:15:06 debug: currect connection type: "4".
937 2011-05-07 23:15:06 debug: New authtype: "cert".
938 2011-05-07 23:15:06 debug: currect connection type: "4".
939 2011-05-07 23:15:06 debug: New authtype: "cert".
940 2011-05-07 23:15:10 error: Writing user password has failed.
941 2011-05-07 23:15:10 error: Writing preshared key has failed.
942 2011-05-07 23:15:10 error: Writing preshared key password has failed.
943 2011-05-07 23:15:10 info: Profile "_etc_openvpn_VPNSwiss-CH" saved.
944 2011-05-07 23:15:10 info: Saving profile _etc_openvpn_VPNSwiss-CH...
945 2011-05-07 23:15:11 error: Writing user password has failed.
946 2011-05-07 23:15:11 error: Writing preshared key has failed.
947 2011-05-07 23:15:11 error: Writing preshared key password has failed.
948 2011-05-07 23:15:11 info: Profile "_etc_openvpn_VPNSwiss-CH" saved.
949 2011-05-07 23:15:11 info: Profile _etc_openvpn_VPNSwiss-CH saved.
950 2011-05-07 23:15:12 debug: openvpn: /usr/sbin/openvpn
951 2011-05-07 23:15:12 debug: Support for TUN/TAP found (compiled into kernel or kernel module already loaded).
952 2011-05-07 23:15:12 debug: Default interface: "eth0".
953 2011-05-07 23:15:12 debug: IP address of default interface: "192.168.1.4".
954 2011-05-07 23:15:12 info: Trying to connect to server "chpro.vpnswiss.com" with ...
956 2011-05-07 23:15:12 debug: Setting DNS_UPDATE "NO".
957 2011-05-07 23:15:12 debug: Starting Openvpn management handler...
958 2011-05-07 23:15:12 debug: [openvpn] Sat May 7 23:15:12 2011 OpenVPN 2.1.3 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Mar 11 2011
959 2011-05-07 23:15:12 debug: [openvpn] Sat May 7 23:15:12 2011 MANAGEMENT: Socket bind failed on local address [AF_INET]127.0.0.1:2222: Address already in use
960 2011-05-07 23:15:14 error: Binding to socket on local address failed.
961 2011-05-07 23:15:15 debug: There is a reason to stop connecting, terminating "openvpn" process.
962 2011-05-07 23:15:15 debug: Disconnect requested
963 2011-05-07 23:15:15 debug: Disconnect requested, status connecting
964 2011-05-07 23:15:15 debug: Killing process while connecting.
966 2011-05-07 23:15:15 success: Successful connect try canceled.
967 2011-05-07 23:15:15 debug: Disconnected.
968 2011-05-07 23:15:19 error: Writing user password has failed.
969 2011-05-07 23:15:19 error: Writing preshared key has failed.
970 2011-05-07 23:15:19 error: Writing preshared key password has failed.
971 2011-05-07 23:15:19 info: Profile "_etc_openvpn_VPNSwiss-CH" saved.
972 2011-05-07 23:15:19 debug: Restoring network environment
973 Log session ended at: Sat May 7 23:15:19 2011
974 Log session started at: Sat May 7 23:15:32 2011
975 2011-05-07 23:15:32 debug: Preserving network environment
976 2011-05-07 23:15:35 debug: openvpn: /usr/sbin/openvpn
977 2011-05-07 23:15:35 debug: Support for TUN/TAP found (compiled into kernel or kernel module already loaded).
978 2011-05-07 23:15:44 error: Writing user password has failed.
979 2011-05-07 23:15:44 error: Writing preshared key has failed.
980 2011-05-07 23:15:44 error: Writing preshared key password has failed.
981 2011-05-07 23:15:44 info: Profile "_etc_openvpn_VPNSwiss-CH" saved.
982 2011-05-07 23:15:44 debug: Some passwords which were needed were obtained from a password dialog.
983 2011-05-07 23:15:44 debug: Default interface: "eth0".
984 2011-05-07 23:15:44 debug: IP address of default interface: "192.168.1.4".
985 2011-05-07 23:15:44 info: Trying to connect to server "chpro.vpnswiss.com" with ...
987 2011-05-07 23:15:44 debug: Setting DNS_UPDATE "NO".
988 2011-05-07 23:15:44 debug: Starting Openvpn management handler...
989 2011-05-07 23:15:44 debug: [openvpn] Sat May 7 23:15:44 2011 OpenVPN 2.1.3 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Mar 11 2011
990 2011-05-07 23:15:44 debug: [openvpn] Sat May 7 23:15:44 2011 MANAGEMENT: Socket bind failed on local address [AF_INET]127.0.0.1:2222: Address already in use
991 2011-05-07 23:15:47 error: Binding to socket on local address failed.
992 2011-05-07 23:15:47 debug: There is a reason to stop connecting, terminating "openvpn" process.
993 2011-05-07 23:15:47 debug: Disconnect requested
994 2011-05-07 23:15:47 debug: Disconnect requested, status connecting
995 2011-05-07 23:15:47 debug: Killing process while connecting.
997 2011-05-07 23:15:47 success: Successful connect try canceled.
998 2011-05-07 23:15:47 debug: Disconnected.
999 2011-05-07 23:16:21 error: Writing user password has failed.
1000 2011-05-07 23:16:21 error: Writing preshared key has failed.
1001 2011-05-07 23:16:21 error: Writing preshared key password has failed.
1002 2011-05-07 23:16:21 info: Profile "_etc_openvpn_VPNSwiss-CH" saved.
1003 2011-05-07 23:16:21 debug: Restoring network environment
1004 Log session ended at: Sat May 7 23:16:21 2011
1005 Log session started at: Sat May 7 23:18:07 2011
1006 2011-05-07 23:18:15 debug: Preserving network environment
1007 2011-05-07 23:18:20 debug: openvpn: /usr/sbin/openvpn
1008 2011-05-07 23:18:20 debug: Support for TUN/TAP found (compiled into kernel or kernel module already loaded).
1009 2011-05-07 23:18:28 error: Writing user password has failed.
1010 2011-05-07 23:18:28 error: Writing preshared key has failed.
1011 2011-05-07 23:18:28 error: Writing preshared key password has failed.
1012 2011-05-07 23:18:28 info: Profile "_etc_openvpn_VPNSwiss-CH" saved.
1013 2011-05-07 23:18:28 debug: Some passwords which were needed were obtained from a password dialog.
1014 2011-05-07 23:18:28 debug: Default interface: "eth0".
1015 2011-05-07 23:18:28 debug: IP address of default interface: "192.168.1.4".
1016 2011-05-07 23:18:28 info: Trying to connect to server "chpro.vpnswiss.com" with ...
1018 2011-05-07 23:18:28 debug: Setting DNS_UPDATE "NO".
1019 2011-05-07 23:18:28 debug: Starting Openvpn management handler...
1020 2011-05-07 23:18:28 debug: [openvpn] Sat May 7 23:18:28 2011 OpenVPN 2.1.3 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Mar 11 2011
1021 2011-05-07 23:18:28 debug: [openvpn]
1022 2011-05-07 23:18:28 info: Send username...
1023 2011-05-07 23:18:28 info: Send password...
1024 2011-05-07 23:18:28 debug: [openvpn] Sat May 7 23:18:28 2011 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
1025 2011-05-07 23:18:28 debug: [openvpn]
1026 2011-05-07 23:18:28 debug: [openvpn] Sat May 7 23:18:28 2011 RESOLVE: NOTE: chpro.vpnswiss.com resolves to 5 addresses
1027 2011-05-07 23:18:28 debug: [openvpn] Sat May 7 23:18:28 2011 Attempting to establish TCP connection with [AF_INET]94.231.84.82:1194 [nonblock]
1028 2011-05-07 23:18:28 debug: [openvpn]
1029 2011-05-07 23:18:38 debug: [openvpn] Sat May 7 23:18:38 2011 TCP: connect to [AF_INET]84.231.84.00:1194 failed, will try again in 5 seconds: Connection timed out
1030 2011-05-07 23:18:43 error: Connection has been timed out. Terminate.
1031 2011-05-07 23:18:43 debug: [openvpn] Sat May 7 23:18:43 2011 RESOLVE: NOTE: chpro.vpnswiss.com resolves to 5 addresses
1032 2011-05-07 23:18:43 debug: [openvpn]
1033 2011-05-07 23:18:43 debug: There is a reason to stop connecting, terminating "openvpn" process.
1034 2011-05-07 23:18:43 debug: Disconnect requested
1035 2011-05-07 23:18:43 debug: Disconnect requested, status connecting
1036 2011-05-07 23:18:43 debug: Killing process while connecting.
1038 2011-05-07 23:18:43 success: Successful connect try canceled.
1039 2011-05-07 23:18:43 debug: Disconnected.
1040 2011-05-07 23:20:59 debug: openvpn: /usr/sbin/openvpn
1041 2011-05-07 23:20:59 debug: Support for TUN/TAP found (compiled into kernel or kernel module already loaded).
1042 2011-05-07 23:20:59 debug: Default interface: "eth0".
1043 2011-05-07 23:20:59 debug: IP address of default interface: "192.168.1.4".
1044 2011-05-07 23:20:59 info: Trying to connect to server "chpro.vpnswiss.com" with ...
1046 2011-05-07 23:20:59 debug: Setting DNS_UPDATE "NO".
1047 2011-05-07 23:20:59 debug: Starting Openvpn management handler...
1048 2011-05-07 23:20:59 debug: [openvpn] Sat May 7 23:20:59 2011 OpenVPN 2.1.3 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Mar 11 2011
1049 2011-05-07 23:20:59 debug: [openvpn]
1050 2011-05-07 23:20:59 info: Send username...
1051 2011-05-07 23:20:59 info: Send password...
1052 2011-05-07 23:21:06 debug: [openvpn] Sat May 7 23:21:06 2011 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
1053 2011-05-07 23:21:06 debug: [openvpn] Sat May 7 23:21:06 2011 RESOLVE: NOTE: chpro.vpnswiss.com resolves to 5 addresses
1054 2011-05-07 23:21:06 debug: [openvpn] Sat May 7 23:21:06 2011 Attempting to establish TCP connection with [AF_INET]94.231.84.82:1194 [nonblock]
1055 2011-05-07 23:21:06 debug: [openvpn]
1056 2011-05-07 23:21:16 debug: [openvpn] Sat May 7 23:21:16 2011 TCP: connect to [AF_INET]84.231.84.00:1194 failed, will try again in 5 seconds: Connection timed out
1057 2011-05-07 23:21:21 debug: [openvpn] Sat May 7 23:21:21 2011 RESOLVE: NOTE: chpro.vpnswiss.com resolves to 5 addresses
1058 2011-05-07 23:21:21 debug: [openvpn]
1059 2011-05-07 23:21:23 error: Connection has been timed out. Terminate.
1060 2011-05-07 23:21:23 debug: There is a reason to stop connecting, terminating "openvpn" process.
1061 2011-05-07 23:21:23 debug: Disconnect requested
1062 2011-05-07 23:21:23 debug: Disconnect requested, status connecting
1063 2011-05-07 23:21:23 debug: Killing process while connecting.
1065 2011-05-07 23:21:23 success: Successful connect try canceled.
1066 2011-05-07 23:21:23 debug: Disconnected.
1067 2011-05-07 23:28:43 info: Profile "_etc_openvpn_VPNSwiss-CH" removed.
1068 2011-05-07 23:28:43 info: Profile "_etc_openvpn_VPNSwiss-CH" deleted.
1069 2011-05-07 23:28:47 debug: Restoring network environment
1070 Log session ended at: Sat May 7 23:28:47 2011
1071 Log session started at: Sat May 7 23:28:59 201

Sadiq Huq
May 8th, 2011, 11:03 AM
I had the same problem, Kvpnc was annoying I switched to OpenConnect. It is an open client for the Cisco AnyConnect VPN.