The server log when the connection gets refused:
Thu Sep 1 10:35:14 2011 someuser/my.ip.add.res:41091 PUSH: Received control message: 'PUSH_REQUEST'
Thu Sep 1 10:35:14 2011 someuser/my.ip.add.res:41091 SENT CONTROL [someuser]: 'PUSH_REPLY,route 192.168.0.0 255.255.0.0,dhcp-option DNS 192.168.0.1,route-gateway 192.168.7.1,ping 10,ping-restart 120,ifconfig 192.168.7.10 255.255.0.0' (status=1)
Thu Sep 1 10:35:14 2011 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
On Android I am using tap device. In Openvpn -> advanced Settings I have specified the location of ta.key file.
Logcat output from Adnroid device:
I/mtpd ( 2509): Using protocol openvpn
I/mtpd ( 2509): Starting openvpn (pppox = -1)
I/mtpd ( 2509): openvpn started (pid = 2511)
I/openvpn ( 2288): WARNING: you are using user/group/chroot/setcon without persist-tun -- this may cause restarts to fail
I/openvpn ( 2288): WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
I/openvpn ( 2288): NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
I/openvpn ( 2288): WARNING: file '/mnt/sdcard/key/ta.key' is group or others accessible
I/openvpn ( 2288): Control Channel Authentication: using '/mnt/sdcard/key/ta.key' as a OpenVPN static key file
I/openvpn ( 2288): LZO compression initialized
I/openvpn ( 2288): NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
I/openvpn ( 2288): UDPv4 link local: [undef]
I/openvpn ( 2288): UDPv4 link remote: my.ip.add.res:41111
I/openvpn ( 2288): [server] Peer Connection Initiated with my.ip.add.res:41111
Note:
my.ip.add.res is the server ip address.
verb 5)? – Shane Madden Sep 1 '11 at 5:36