Can I ask you one more thing? Even though it works, my log throws me errors. Sooner or later this will have side effects I guess, so I better ask now
First the log:
Code: Select all
Mon Nov 13 22:53:07 2017 event_wait : Interrupted system call (code=4)
Mon Nov 13 22:53:07 2017 /sbin/ip route del 10.8.0.0/24
Mon Nov 13 22:53:07 2017 ERROR: Linux route delete command failed: external program did not exit normally
Mon Nov 13 22:53:07 2017 Closing TUN/TAP interface
Mon Nov 13 22:53:07 2017 /sbin/ip addr del dev tun0 local 10.8.0.1 peer 10.8.0.2
RTNETLINK answers: Operation not permitted
Mon Nov 13 22:53:07 2017 Linux ip addr del failed: external program exited with error status: 2
Mon Nov 13 22:53:07 2017 SIGTERM[hard,] received, process exiting
Mon Nov 13 22:53:07 2017 OpenVPN 2.3.4 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 27 2017
Mon Nov 13 22:53:07 2017 library versions: OpenSSL 1.0.1t 3 May 2016, LZO 2.08
Mon Nov 13 22:53:07 2017 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:1195
Mon Nov 13 22:53:07 2017 WARNING: you are using user/group/chroot/setcon without persist-key -- this may cause restarts to fail
Mon Nov 13 22:53:07 2017 WARNING: using --duplicate-cn and --client-config-dir together is probably not what you want
Mon Nov 13 22:53:07 2017 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Mon Nov 13 22:53:07 2017 Diffie-Hellman initialized with 2048 bit key
Mon Nov 13 22:53:07 2017 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Mon Nov 13 22:53:07 2017 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Nov 13 22:53:07 2017 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Nov 13 22:53:07 2017 Socket Buffers: R=[163840->131072] S=[163840->131072]
Mon Nov 13 22:53:07 2017 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 IFACE=eth0 HWADDR=b8:27:eb:df:df:e5
Mon Nov 13 22:53:07 2017 TUN/TAP device tun0 opened
Mon Nov 13 22:53:07 2017 TUN/TAP TX queue length set to 100
Mon Nov 13 22:53:07 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Mon Nov 13 22:53:07 2017 /sbin/ip link set dev tun0 up mtu 1500
Mon Nov 13 22:53:07 2017 /sbin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2
Mon Nov 13 22:53:07 2017 /sbin/ip route add 192.168.0.0/24 via 10.8.0.2
RTNETLINK answers: File exists
Mon Nov 13 22:53:07 2017 ERROR: Linux route add command failed: external program exited with error status: 2
Mon Nov 13 22:53:07 2017 /sbin/ip route add 10.8.0.0/24 via 10.8.0.2
Mon Nov 13 22:53:07 2017 GID set to nogroup
Mon Nov 13 22:53:07 2017 UID set to nobody
Mon Nov 13 22:53:07 2017 UDPv4 link local (bound): [undef]
Mon Nov 13 22:53:07 2017 UDPv4 link remote: [undef]
Mon Nov 13 22:53:07 2017 MULTI: multi_init called, r=256 v=256
Mon Nov 13 22:53:07 2017 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Mon Nov 13 22:53:07 2017 Initialization Sequence Completed
Mon Nov 13 22:53:08 2017 OpenVPN 2.3.4 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 27 2017
Mon Nov 13 22:53:08 2017 library versions: OpenSSL 1.0.1t 3 May 2016, LZO 2.08
Mon Nov 13 22:53:08 2017 MANAGEMENT: Socket bind failed on local address [AF_INET]127.0.0.1:1195: Address already in use
Mon Nov 13 22:53:08 2017 Exiting due to fatal error
Mon Nov 13 22:53:32 2017 event_wait : Interrupted system call (code=4)
Mon Nov 13 22:53:32 2017 /sbin/ip route del 10.8.0.0/24
RTNETLINK answers: Operation not permitted
Mon Nov 13 22:53:32 2017 ERROR: Linux route delete command failed: external program exited with error status: 2
Mon Nov 13 22:53:32 2017 Closing TUN/TAP interface
Mon Nov 13 22:53:32 2017 /sbin/ip addr del dev tun0 local 10.8.0.1 peer 10.8.0.2
RTNETLINK answers: Operation not permitted
Mon Nov 13 22:53:32 2017 Linux ip addr del failed: external program exited with error status: 2
Mon Nov 13 22:53:32 2017 SIGTERM[hard,] received, process exiting
Mon Nov 13 22:53:32 2017 OpenVPN 2.3.4 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 27 2017
Mon Nov 13 22:53:32 2017 library versions: OpenSSL 1.0.1t 3 May 2016, LZO 2.08
Mon Nov 13 22:53:32 2017 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:1195
Mon Nov 13 22:53:32 2017 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Mon Nov 13 22:53:32 2017 Diffie-Hellman initialized with 2048 bit key
Mon Nov 13 22:53:32 2017 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Mon Nov 13 22:53:32 2017 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Nov 13 22:53:32 2017 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Nov 13 22:53:32 2017 Socket Buffers: R=[163840->131072] S=[163840->131072]
Mon Nov 13 22:53:32 2017 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 IFACE=eth0 HWADDR=b8:27:eb:df:df:e5
Mon Nov 13 22:53:32 2017 TUN/TAP device tun0 opened
Mon Nov 13 22:53:32 2017 TUN/TAP TX queue length set to 100
Mon Nov 13 22:53:32 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Mon Nov 13 22:53:32 2017 /sbin/ip link set dev tun0 up mtu 1500
Mon Nov 13 22:53:32 2017 /sbin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2
Mon Nov 13 22:53:33 2017 /sbin/ip route add 10.8.0.0/24 via 10.8.0.2
Mon Nov 13 22:53:33 2017 GID set to nogroup
Mon Nov 13 22:53:33 2017 UID set to nobody
Mon Nov 13 22:53:33 2017 UDPv4 link local (bound): [undef]
Mon Nov 13 22:53:33 2017 UDPv4 link remote: [undef]
Mon Nov 13 22:53:33 2017 MULTI: multi_init called, r=256 v=256
Mon Nov 13 22:53:33 2017 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Mon Nov 13 22:53:33 2017 Initialization Sequence Completed
Mon Nov 13 22:53:33 2017 OpenVPN 2.3.4 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 27 2017
Mon Nov 13 22:53:33 2017 library versions: OpenSSL 1.0.1t 3 May 2016, LZO 2.08
Mon Nov 13 22:53:33 2017 MANAGEMENT: Socket bind failed on local address [AF_INET]127.0.0.1:1195: Address already in use
Mon Nov 13 22:53:33 2017 Exiting due to fatal error
Mon Nov 13 22:55:08 2017 xxx.xxx.xxx.xxx:52548 TLS: Initial packet from [AF_INET]xxx.xxx.xxx.xxx:52548, sid=4bc92b8f 775edc7e
Mon Nov 13 22:55:09 2017 xxx.xxx.xxx.xxx:52548 VERIFY OK: depth=1, CN=server
Mon Nov 13 22:55:09 2017 xxx.xxx.xxx.xxx:52548 VERIFY OK: depth=0, CN=mobile
Mon Nov 13 22:55:10 2017 xxx.xxx.xxx.xxx:52548 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Mon Nov 13 22:55:10 2017 xxx.xxx.xxx.xxx:52548 Data Channel Encrypt: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Nov 13 22:55:10 2017 xxx.xxx.xxx.xxx:52548 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Mon Nov 13 22:55:10 2017 xxx.xxx.xxx.xxx:52548 Data Channel Decrypt: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Nov 13 22:55:10 2017 xxx.xxx.xxx.xxx:52548 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA256, 2048 bit RSA
Mon Nov 13 22:55:10 2017 xxx.xxx.xxx.xxx:52548 [mobile] Peer Connection Initiated with [AF_INET]xxx.xxx.xxx.xxx:52548
Mon Nov 13 22:55:10 2017 mobile/xxx.xxx.xxx.xxx:52548 MULTI_sva: pool returned IPv4=10.8.0.6, IPv6=(Not enabled)
Mon Nov 13 22:55:10 2017 mobile/xxx.xxx.xxx.xxx:52548 MULTI: Learn: 10.8.0.6 -> mobile/xxx.xxx.xxx.xxx:52548
Mon Nov 13 22:55:10 2017 mobile/xxx.xxx.xxx.xxx:52548 MULTI: primary virtual IP for mobile/xxx.xxx.xxx.xxx:52548: 10.8.0.6
Mon Nov 13 22:55:11 2017 mobile/xxx.xxx.xxx.xxx:52548 PUSH: Received control message: 'PUSH_REQUEST'
Mon Nov 13 22:55:11 2017 mobile/xxx.xxx.xxx.xxx:52548 send_push_reply(): safe_cap=940
Mon Nov 13 22:55:11 2017 mobile/xxx.xxx.xxx.xxx:52548 SENT CONTROL [mobile]: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route 10.8.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5' (status=1)
Code: Select all
MANAGEMENT: Socket bind failed on local address [AF_INET]127.0.0.1:1195: Address already in use
Mon Nov 13 22:53:33 2017 Exiting due to fatal error
First of all I wonder why openvpn wants to bind MANAGEMENT to port 1195. Because it already is bound, as you can see here:
Code: Select all
sudo lsof -i TCP:1195
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
openvpn 5773 nobody 3u IPv4 25238 0t0 TCP localhost:1195 (LISTEN)
Code: Select all
RTNETLINK answers: Operation not permitted
The second problem is that openvpn is not allowed add or delete ip addresses. What should or can I do about it?
Could you please give me another hint here?