Unable to connect to openvpn



  • HI all,
    Have an issue with a fresh install (2.2.6)

    Jan 4 22:03:29 openvpn[24435]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:03:29 openvpn[24435]: MANAGEMENT: CMD 'quit'
    Jan 4 22:03:29 openvpn[24435]: MANAGEMENT: Client disconnected
    Jan 4 22:04:30 openvpn[24435]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:04:30 openvpn[24435]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:04:30 openvpn[24435]: MANAGEMENT: CMD 'quit'
    Jan 4 22:04:30 openvpn[24435]: MANAGEMENT: Client disconnected
    Jan 4 22:05:31 openvpn[24435]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:05:32 openvpn[24435]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:05:32 openvpn[24435]: MANAGEMENT: CMD 'quit'
    Jan 4 22:05:32 openvpn[24435]: MANAGEMENT: Client disconnected
    Jan 4 22:06:33 openvpn[24435]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:06:33 openvpn[24435]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:06:33 openvpn[24435]: MANAGEMENT: CMD 'quit'
    Jan 4 22:06:33 openvpn[24435]: MANAGEMENT: Client disconnected
    Jan 4 22:07:35 openvpn[24435]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:07:35 openvpn[24435]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:07:35 openvpn[24435]: MANAGEMENT: CMD 'quit'
    Jan 4 22:07:35 openvpn[24435]: MANAGEMENT: Client disconnected
    Jan 4 22:08:19 openvpn[24435]: event_wait : Interrupted system call (code=4)
    Jan 4 22:08:19 openvpn[24435]: TCP/UDP: Closing socket
    Jan 4 22:08:19 openvpn[24435]: /sbin/route delete -net 10.9.8.0 10.9.8.2 255.255.255.0
    Jan 4 22:08:19 openvpn[24435]: Closing TUN/TAP interface
    Jan 4 22:08:19 openvpn[24435]: /usr/local/sbin/ovpn-linkdown ovpns1 1500 1570 10.9.8.1 10.9.8.2 init
    Jan 4 22:08:19 openvpn[24435]: SIGTERM[hard,] received, process exiting
    Jan 4 22:08:19 openvpn[65615]: OpenVPN 2.3.8 amd64-portbld-freebsd10.1 [SSL (OpenSSL)] [LZO] [MH] [IPv6] built on Aug 21 2015
    Jan 4 22:08:19 openvpn[65615]: library versions: OpenSSL 1.0.1l-freebsd 15 Jan 2015, LZO 2.09
    Jan 4 22:08:19 openvpn[65893]: MANAGEMENT: unix domain socket listening on /var/etc/openvpn/server1.sock
    Jan 4 22:08:19 openvpn[65893]: NOTE: the current –script-security setting may allow this configuration to call user-defined scripts
    Jan 4 22:08:19 openvpn[65893]: Diffie-Hellman initialized with 2048 bit key
    Jan 4 22:08:19 openvpn[65893]: Control Channel Authentication: using '/var/etc/openvpn/server1.tls-auth' as a OpenVPN static key file
    Jan 4 22:08:19 openvpn[65893]: Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
    Jan 4 22:08:19 openvpn[65893]: Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
    Jan 4 22:08:19 openvpn[65893]: Socket Buffers: R=[42080->65536] S=[57344->65536]
    Jan 4 22:08:19 openvpn[65893]: ROUTE_GATEWAY 172.20.2.1
    Jan 4 22:08:19 openvpn[65893]: TUN/TAP device ovpns1 exists previously, keep at program end
    Jan 4 22:08:19 openvpn[65893]: TUN/TAP device /dev/tun1 opened
    Jan 4 22:08:19 openvpn[65893]: do_ifconfig, tt->ipv6=1, tt->did_ifconfig_ipv6_setup=0
    Jan 4 22:08:19 openvpn[65893]: /sbin/ifconfig ovpns1 10.9.8.1 10.9.8.2 mtu 1500 netmask 255.255.255.255 up
    Jan 4 22:08:19 openvpn[65893]: /usr/local/sbin/ovpn-linkup ovpns1 1500 1570 10.9.8.1 10.9.8.2 init
    Jan 4 22:08:19 openvpn[65893]: /sbin/route add -net 10.9.8.0 10.9.8.2 255.255.255.0
    Jan 4 22:08:19 openvpn[65893]: UDPv4 link local (bound): [AF_INET]85.204.199.3:1194
    Jan 4 22:08:19 openvpn[65893]: UDPv4 link remote: [undef]
    Jan 4 22:08:19 openvpn[65893]: MULTI: multi_init called, r=256 v=256
    Jan 4 22:08:19 openvpn[65893]: IFCONFIG POOL: base=10.9.8.4 size=62, ipv6=0
    Jan 4 22:08:19 openvpn[65893]: Initialization Sequence Completed
    Jan 4 22:08:36 openvpn[65893]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:08:36 openvpn[65893]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:08:37 openvpn[65893]: MANAGEMENT: CMD 'quit'
    Jan 4 22:08:37 openvpn[65893]: MANAGEMENT: Client disconnected

    certificate was exported via OpenVpn Client Export.
    any clue?
    here seems to die:
    Jan 4 22:08:19  openvpn[24435]: event_wait : Interrupted system call (code=4)



  • Something is obviously not correct between the client side and the server side configs, check password and encryption, even openvpn versions or timestamps between the two. Without seeing the config it's hard to tell.



  • config attached

    last log:
    Jan 4 22:51:14 openvpn[33489]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:51:14 openvpn[33489]: MANAGEMENT: CMD 'quit'
    Jan 4 22:51:14 openvpn[33489]: MANAGEMENT: Client disconnected
    Jan 4 22:51:41 openvpn[33489]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:51:41 openvpn[33489]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:51:41 openvpn[33489]: MANAGEMENT: Client disconnected
    Jan 4 22:52:15 openvpn[33489]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:52:16 openvpn[33489]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:52:16 openvpn[33489]: MANAGEMENT: CMD 'quit'
    Jan 4 22:52:16 openvpn[33489]: MANAGEMENT: Client disconnected
    Jan 4 22:53:17 openvpn[33489]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:53:17 openvpn[33489]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:53:17 openvpn[33489]: MANAGEMENT: CMD 'quit'
    Jan 4 22:53:17 openvpn[33489]: MANAGEMENT: Client disconnected
    Jan 4 22:54:19 openvpn[33489]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:54:19 openvpn[33489]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:54:19 openvpn[33489]: MANAGEMENT: CMD 'quit'
    Jan 4 22:54:19 openvpn[33489]: MANAGEMENT: Client disconnected
    Jan 4 22:54:52 openvpn[33489]: MANAGEMENT: Client connected from /var/etc/openvpn/server1.sock
    Jan 4 22:54:52 openvpn[33489]: MANAGEMENT: CMD 'status 2'
    Jan 4 22:54:52 openvpn[33489]: MANAGEMENT: Client disconnected






  • ok after another restart it seems ok.still i have no explanation for this.


Log in to reply