TinCanTech wrote
I use this feature all the time and it works flawlessly .. you must be doing something else wrong.
App has strange behavior. For example.I have following configuration into ccd
[root@vpn-01 ccd]# cat test123
ifconfig-push 10.8.0.10 255.255.255.0
[root@vpn-01 ccd]# cat test2
ifconfig-push 10.8.0.11 255.255.255.0
1. Start openvpn server
2. Connect test123 client
[root@vpn-02 ~]# openvpn --config test123.ovpn
Thu Feb 27 22:35:45 2020 OpenVPN 2.4.8 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Nov 1 2019
Thu Feb 27 22:35:45 2020 library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
Thu Feb 27 22:35:45 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:35:45 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:35:45 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:35:45 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Feb 27 22:35:45 2020 UDP link local (bound): [AF_INET][undef]:1194
Thu Feb 27 22:35:45 2020 UDP link remote: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:35:45 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Thu Feb 27 22:35:45 2020 TLS: Initial packet from [AF_INET]88.88.88.88:1194, sid=f15433c8 860f3c09
Thu Feb 27 22:35:45 2020 VERIFY OK: depth=1, CN=vpn-01
Thu Feb 27 22:35:45 2020 VERIFY KU OK
Thu Feb 27 22:35:45 2020 Validating certificate extended key usage
Thu Feb 27 22:35:45 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Feb 27 22:35:45 2020 VERIFY EKU OK
Thu Feb 27 22:35:45 2020 VERIFY OK: depth=0, CN=server
Thu Feb 27 22:35:45 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1557'
Thu Feb 27 22:35:45 2020 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Thu Feb 27 22:35:45 2020 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Feb 27 22:35:45 2020 [server] Peer Connection Initiated with [AF_INET]88.88.88.88:1194
Thu Feb 27 22:35:46 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:35:46 2020 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.10 255.255.255.0,peer-id 0,cipher AES-256-GCM'
Thu Feb 27 22:35:46 2020 OPTIONS IMPORT: timers and/or timeouts modified
Thu Feb 27 22:35:46 2020 OPTIONS IMPORT: --ifconfig/up options modified
Thu Feb 27 22:35:46 2020 OPTIONS IMPORT: route-related options modified
Thu Feb 27 22:35:46 2020 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Feb 27 22:35:46 2020 OPTIONS IMPORT: peer-id set
Thu Feb 27 22:35:46 2020 OPTIONS IMPORT: adjusting link_mtu to 1625
Thu Feb 27 22:35:46 2020 OPTIONS IMPORT: data channel crypto options modified
Thu Feb 27 22:35:46 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
Thu Feb 27 22:35:46 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:35:46 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:35:46 2020 TUN/TAP device tun0 opened
Thu Feb 27 22:35:46 2020 TUN/TAP TX queue length set to 100
Thu Feb 27 22:35:46 2020 /sbin/ip link set dev tun0 up mtu 1500
Thu Feb 27 22:35:46 2020 /sbin/ip addr add dev tun0 10.8.0.10/24 broadcast 10.8.0.255
Thu Feb 27 22:35:46 2020 UID set to nobody
Thu Feb 27 22:35:46 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Feb 27 22:35:46 2020 Initialization Sequence Completed
3. Shutdown test123 and start test2 client:
[root@vpn-02 ~]# openvpn --config test2.ovpn
Thu Feb 27 22:36:44 2020 OpenVPN 2.4.8 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Nov 1 2019
Thu Feb 27 22:36:44 2020 library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
Thu Feb 27 22:36:44 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:36:44 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:36:44 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:36:44 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Feb 27 22:36:44 2020 UDP link local (bound): [AF_INET][undef]:1194
Thu Feb 27 22:36:44 2020 UDP link remote: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:36:44 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Thu Feb 27 22:36:44 2020 TLS: Initial packet from [AF_INET]88.88.88.88:1194, sid=98c293d5 aa8aa2ba
Thu Feb 27 22:36:44 2020 VERIFY OK: depth=1, CN=vpn-01
Thu Feb 27 22:36:44 2020 VERIFY KU OK
Thu Feb 27 22:36:44 2020 Validating certificate extended key usage
Thu Feb 27 22:36:44 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Feb 27 22:36:44 2020 VERIFY EKU OK
Thu Feb 27 22:36:44 2020 VERIFY OK: depth=0, CN=server
Thu Feb 27 22:36:44 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1557'
Thu Feb 27 22:36:44 2020 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Thu Feb 27 22:36:44 2020 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Feb 27 22:36:44 2020 [server] Peer Connection Initiated with [AF_INET]88.88.88.88:1194
Thu Feb 27 22:36:46 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:36:46 2020 AUTH: Received control message: AUTH_FAILED
Thu Feb 27 22:36:46 2020 SIGTERM[soft,auth-failure] received, process exiting
4. Client didn't start. Second try
[root@vpn-02 ~]# openvpn --config test2.ovpn
Thu Feb 27 22:37:58 2020 OpenVPN 2.4.8 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Nov 1 2019
Thu Feb 27 22:37:58 2020 library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
Thu Feb 27 22:37:58 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:37:58 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:37:58 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:37:58 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Feb 27 22:37:58 2020 UDP link local (bound): [AF_INET][undef]:1194
Thu Feb 27 22:37:58 2020 UDP link remote: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:37:58 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Thu Feb 27 22:37:58 2020 TLS: Initial packet from [AF_INET]88.88.88.88:1194, sid=153d8e58 5c0e20df
Thu Feb 27 22:37:58 2020 VERIFY OK: depth=1, CN=vpn-01
Thu Feb 27 22:37:58 2020 VERIFY KU OK
Thu Feb 27 22:37:58 2020 Validating certificate extended key usage
Thu Feb 27 22:37:58 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Feb 27 22:37:58 2020 VERIFY EKU OK
Thu Feb 27 22:37:58 2020 VERIFY OK: depth=0, CN=server
Thu Feb 27 22:37:58 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1557'
Thu Feb 27 22:37:58 2020 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Thu Feb 27 22:37:58 2020 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Feb 27 22:37:58 2020 [server] Peer Connection Initiated with [AF_INET]88.88.88.88:1194
Thu Feb 27 22:38:00 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:38:00 2020 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.11 255.255.255.0,peer-id 0,cipher AES-256-GCM'
Thu Feb 27 22:38:00 2020 OPTIONS IMPORT: timers and/or timeouts modified
Thu Feb 27 22:38:00 2020 OPTIONS IMPORT: --ifconfig/up options modified
Thu Feb 27 22:38:00 2020 OPTIONS IMPORT: route-related options modified
Thu Feb 27 22:38:00 2020 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Feb 27 22:38:00 2020 OPTIONS IMPORT: peer-id set
Thu Feb 27 22:38:00 2020 OPTIONS IMPORT: adjusting link_mtu to 1625
Thu Feb 27 22:38:00 2020 OPTIONS IMPORT: data channel crypto options modified
Thu Feb 27 22:38:00 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
Thu Feb 27 22:38:00 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:38:00 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:38:00 2020 TUN/TAP device tun0 opened
Thu Feb 27 22:38:00 2020 TUN/TAP TX queue length set to 100
Thu Feb 27 22:38:00 2020 /sbin/ip link set dev tun0 up mtu 1500
Thu Feb 27 22:38:00 2020 /sbin/ip addr add dev tun0 10.8.0.11/24 broadcast 10.8.0.255
Thu Feb 27 22:38:00 2020 UID set to nobody
Thu Feb 27 22:38:00 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Feb 27 22:38:00 2020 Initialization Sequence Completed
5. I changed ip for test2 to 10.8.0.22
[root@vpn-02 ~]# openvpn --config test2.ovpn
Thu Feb 27 22:39:01 2020 OpenVPN 2.4.8 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Nov 1 2019
Thu Feb 27 22:39:01 2020 library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
Thu Feb 27 22:39:01 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:39:01 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:39:01 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:39:01 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Feb 27 22:39:01 2020 UDP link local (bound): [AF_INET][undef]:1194
Thu Feb 27 22:39:01 2020 UDP link remote: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:39:01 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Thu Feb 27 22:39:01 2020 TLS: Initial packet from [AF_INET]88.88.88.88:1194, sid=bdd35602 9ab03981
Thu Feb 27 22:39:01 2020 VERIFY OK: depth=1, CN=vpn-01
Thu Feb 27 22:39:01 2020 VERIFY KU OK
Thu Feb 27 22:39:01 2020 Validating certificate extended key usage
Thu Feb 27 22:39:01 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Feb 27 22:39:01 2020 VERIFY EKU OK
Thu Feb 27 22:39:01 2020 VERIFY OK: depth=0, CN=server
Thu Feb 27 22:39:01 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1557'
Thu Feb 27 22:39:01 2020 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Thu Feb 27 22:39:01 2020 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Feb 27 22:39:01 2020 [server] Peer Connection Initiated with [AF_INET]88.88.88.88:1194
Thu Feb 27 22:39:02 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:39:02 2020 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.11 255.255.255.0,peer-id 0,cipher AES-256-GCM'
Thu Feb 27 22:39:02 2020 OPTIONS IMPORT: timers and/or timeouts modified
Thu Feb 27 22:39:02 2020 OPTIONS IMPORT: --ifconfig/up options modified
Thu Feb 27 22:39:02 2020 OPTIONS IMPORT: route-related options modified
Thu Feb 27 22:39:02 2020 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Feb 27 22:39:02 2020 OPTIONS IMPORT: peer-id set
Thu Feb 27 22:39:02 2020 OPTIONS IMPORT: adjusting link_mtu to 1625
Thu Feb 27 22:39:02 2020 OPTIONS IMPORT: data channel crypto options modified
Thu Feb 27 22:39:02 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
Thu Feb 27 22:39:02 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:39:02 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:39:02 2020 TUN/TAP device tun0 opened
Thu Feb 27 22:39:02 2020 TUN/TAP TX queue length set to 100
Thu Feb 27 22:39:02 2020 /sbin/ip link set dev tun0 up mtu 1500
Thu Feb 27 22:39:02 2020 /sbin/ip addr add dev tun0 10.8.0.11/24 broadcast 10.8.0.255
Thu Feb 27 22:39:02 2020 UID set to nobody
Thu Feb 27 22:39:02 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Feb 27 22:39:02 2020 Initialization Sequence Completed
It didn't work
6. I start test123
root@vpn-02 ~]# openvpn --config test123.ovpn
Thu Feb 27 22:39:57 2020 OpenVPN 2.4.8 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] b
uilt on Nov 1 2019
Thu Feb 27 22:39:57 2020 library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
Thu Feb 27 22:39:57 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:39:57 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:39:57 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:39:57 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Feb 27 22:39:57 2020 UDP link local (bound): [AF_INET][undef]:1194
Thu Feb 27 22:39:57 2020 UDP link remote: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:39:57 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Thu Feb 27 22:39:57 2020 TLS: Initial packet from [AF_INET]88.88.88.88:1194, sid=74838ff0 9197cdfe
Thu Feb 27 22:39:57 2020 VERIFY OK: depth=1, CN=vpn-01
Thu Feb 27 22:39:57 2020 VERIFY KU OK
Thu Feb 27 22:39:57 2020 Validating certificate extended key usage
Thu Feb 27 22:39:57 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Feb 27 22:39:57 2020 VERIFY EKU OK
Thu Feb 27 22:39:57 2020 VERIFY OK: depth=0, CN=server
Thu Feb 27 22:39:57 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1557'
Thu Feb 27 22:39:57 2020 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Thu Feb 27 22:39:57 2020 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Feb 27 22:39:57 2020 [server] Peer Connection Initiated with [AF_INET]88.88.88.88:1194
Thu Feb 27 22:39:58 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:04 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:09 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:14 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:19 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:24 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:29 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:34 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:39 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:44 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:49 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:54 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:40:59 2020 No reply from server after sending 12 push requests
Thu Feb 27 22:40:59 2020 SIGUSR1[soft,no-push-reply] received, process restarting
Thu Feb 27 22:40:59 2020 Restart pause, 5 second(s)
Thu Feb 27 22:41:04 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:41:04 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Feb 27 22:41:04 2020 UDP link local (bound): [AF_INET][undef]:1194
Thu Feb 27 22:41:04 2020 UDP link remote: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:41:04 2020 TLS: Initial packet from [AF_INET]88.88.88.88:1194, sid=703e67bc a3d35567
Thu Feb 27 22:41:04 2020 VERIFY OK: depth=1, CN=vpn-01
Thu Feb 27 22:41:04 2020 VERIFY KU OK
Thu Feb 27 22:41:04 2020 Validating certificate extended key usage
Thu Feb 27 22:41:04 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Feb 27 22:41:04 2020 VERIFY EKU OK
Thu Feb 27 22:41:04 2020 VERIFY OK: depth=0, CN=server
Thu Feb 27 22:41:04 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1557'
Thu Feb 27 22:41:04 2020 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Thu Feb 27 22:41:04 2020 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Feb 27 22:41:04 2020 [server] Peer Connection Initiated with [AF_INET]88.88.88.88:1194
Thu Feb 27 22:41:05 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:41:05 2020 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route-gateway 10.8.0.1,topology su
bnet,ping 10,ping-restart 120,ifconfig 10.8.0.10 255.255.255.0,peer-id 0,cipher AES-256-GCM'
Thu Feb 27 22:41:05 2020 OPTIONS IMPORT: timers and/or timeouts modified
Thu Feb 27 22:41:05 2020 OPTIONS IMPORT: --ifconfig/up options modified
Thu Feb 27 22:41:05 2020 OPTIONS IMPORT: route-related options modified
Thu Feb 27 22:41:05 2020 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Feb 27 22:41:05 2020 OPTIONS IMPORT: peer-id set
Thu Feb 27 22:41:05 2020 OPTIONS IMPORT: adjusting link_mtu to 1625
Thu Feb 27 22:41:05 2020 OPTIONS IMPORT: data channel crypto options modified
Thu Feb 27 22:41:05 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
Thu Feb 27 22:41:05 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:41:05 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:41:05 2020 TUN/TAP device tun0 opened
Thu Feb 27 22:41:05 2020 TUN/TAP TX queue length set to 100
Thu Feb 27 22:41:05 2020 /sbin/ip link set dev tun0 up mtu 1500
Thu Feb 27 22:41:05 2020 /sbin/ip addr add dev tun0 10.8.0.10/24 broadcast 10.8.0.255
Thu Feb 27 22:41:05 2020 UID set to nobody
Thu Feb 27 22:41:05 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Feb 27 22:41:05 2020 Initialization Sequence Completed
Thu Feb 27 22:41:15 2020 Bad LZO decompression header byte: 42
^CThu Feb 27 22:41:17 2020 event_wait : Interrupted system call (code=4)
Thu Feb 27 22:41:17 2020 Closing TUN/TAP interface
Thu Feb 27 22:41:17 2020 /sbin/ip addr del dev tun0 10.8.0.10/24
RTNETLINK answers: Operation not permitted
Thu Feb 27 22:41:17 2020 Linux ip addr del failed: external program exited with error status: 2
Thu Feb 27 22:41:17 2020 SIGINT[hard,] received, process exiting
7. Ok, I stopped test123 and started test2 client
[root@vpn-02 ~]# openvpn --config test2.ovpn
Thu Feb 27 22:42:55 2020 OpenVPN 2.4.8 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Nov 1 2019
Thu Feb 27 22:42:55 2020 library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
Thu Feb 27 22:42:55 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:42:55 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:42:55 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:42:55 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Feb 27 22:42:55 2020 UDP link local (bound): [AF_INET][undef]:1194
Thu Feb 27 22:42:55 2020 UDP link remote: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:42:55 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Thu Feb 27 22:42:55 2020 TLS: Initial packet from [AF_INET]88.88.88.88:1194, sid=96f195b3 431ab551
Thu Feb 27 22:42:55 2020 VERIFY OK: depth=1, CN=vpn-01
Thu Feb 27 22:42:55 2020 VERIFY KU OK
Thu Feb 27 22:42:55 2020 Validating certificate extended key usage
Thu Feb 27 22:42:55 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Feb 27 22:42:55 2020 VERIFY EKU OK
Thu Feb 27 22:42:55 2020 VERIFY OK: depth=0, CN=server
Thu Feb 27 22:42:55 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1557'
Thu Feb 27 22:42:55 2020 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Thu Feb 27 22:42:55 2020 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Feb 27 22:42:55 2020 [server] Peer Connection Initiated with [AF_INET]88.88.88.88:1194
Thu Feb 27 22:42:56 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:42:56 2020 AUTH: Received control message: AUTH_FAILED
Thu Feb 27 22:42:56 2020 SIGTERM[soft,auth-failure] received, process exiting
Second start test2
[root@vpn-02 ~]# openvpn --config test2.ovpn
Thu Feb 27 22:43:38 2020 OpenVPN 2.4.8 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Nov 1 2019
Thu Feb 27 22:43:38 2020 library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
Thu Feb 27 22:43:38 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:43:38 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb 27 22:43:38 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:43:38 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Feb 27 22:43:38 2020 UDP link local (bound): [AF_INET][undef]:1194
Thu Feb 27 22:43:38 2020 UDP link remote: [AF_INET]88.88.88.88:1194
Thu Feb 27 22:43:38 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Thu Feb 27 22:43:38 2020 TLS: Initial packet from [AF_INET]88.88.88.88:1194, sid=f6f6dd5c 8ef2f81b
Thu Feb 27 22:43:38 2020 VERIFY OK: depth=1, CN=vpn-01
Thu Feb 27 22:43:38 2020 VERIFY KU OK
Thu Feb 27 22:43:38 2020 Validating certificate extended key usage
Thu Feb 27 22:43:38 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Feb 27 22:43:38 2020 VERIFY EKU OK
Thu Feb 27 22:43:38 2020 VERIFY OK: depth=0, CN=server
Thu Feb 27 22:43:38 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1557'
Thu Feb 27 22:43:38 2020 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Thu Feb 27 22:43:38 2020 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Feb 27 22:43:38 2020 [server] Peer Connection Initiated with [AF_INET]88.88.88.88:1194
Thu Feb 27 22:43:39 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb 27 22:43:39 2020 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.22 255.255.255.0,peer-id 0,cipher AES-256-GCM'
Thu Feb 27 22:43:39 2020 OPTIONS IMPORT: timers and/or timeouts modified
Thu Feb 27 22:43:39 2020 OPTIONS IMPORT: --ifconfig/up options modified
Thu Feb 27 22:43:39 2020 OPTIONS IMPORT: route-related options modified
Thu Feb 27 22:43:39 2020 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Feb 27 22:43:39 2020 OPTIONS IMPORT: peer-id set
Thu Feb 27 22:43:39 2020 OPTIONS IMPORT: adjusting link_mtu to 1625
Thu Feb 27 22:43:39 2020 OPTIONS IMPORT: data channel crypto options modified
Thu Feb 27 22:43:39 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
Thu Feb 27 22:43:39 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:43:39 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Feb 27 22:43:39 2020 TUN/TAP device tun0 opened
Thu Feb 27 22:43:39 2020 TUN/TAP TX queue length set to 100
Thu Feb 27 22:43:39 2020 /sbin/ip link set dev tun0 up mtu 1500
Thu Feb 27 22:43:39 2020 /sbin/ip addr add dev tun0 10.8.0.22/24 broadcast 10.8.0.255
Thu Feb 27 22:43:39 2020 UID set to nobody
Thu Feb 27 22:43:39 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Feb 27 22:43:39 2020 Initialization Sequence Completed
Finally I got the ip from ccd without restarting the openvpn server.
What am I doing wrong?