Setting Up OpenVPN server and client in same machine
Posted: Sun Sep 25, 2022 2:25 pm
Hi ,
I am using a single Ubuntu 20.04 machine.
1) Is this possible to set up the openVPN Server and the Client both in the same machine and work as expected ?
2) My connection is behind NAT(broad band connection with wifi) .
2) while I am trying to connect to server from the client I am getting TLS Error.
ubuntu@ubuntu:/etc/openvpn/client$ sudo openvpn --client --config /etc/openvpn/client.conf
Sun Sep 25 15:35:41 2022 Unrecognized option or missing or extra parameter(s) in /etc/openvpn/client.conf:13: block-outside-dns (2.4.7)
Sun Sep 25 15:35:41 2022 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Mar 22 2022
Sun Sep 25 15:35:41 2022 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Sun Sep 25 15:35:41 2022 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Sun Sep 25 15:35:41 2022 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Sun Sep 25 15:35:41 2022 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Sun Sep 25 15:35:41 2022 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Sun Sep 25 15:35:41 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:35:41 2022 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sun Sep 25 15:35:41 2022 UDP link local: (not bound)
Sun Sep 25 15:35:41 2022 UDP link remote: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:36:41 2022 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sun Sep 25 15:36:41 2022 TLS Error: TLS handshake failed
Sun Sep 25 15:36:41 2022 SIGUSR1[soft,tls-error] received, process restarting
Sun Sep 25 15:36:41 2022 Restart pause, 5 second(s)
Sun Sep 25 15:36:46 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:36:46 2022 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sun Sep 25 15:36:46 2022 UDP link local: (not bound)
Sun Sep 25 15:36:46 2022 UDP link remote: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:37:46 2022 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sun Sep 25 15:37:46 2022 TLS Error: TLS handshake failed
Sun Sep 25 15:37:46 2022 SIGUSR1[soft,tls-error] received, process restarting
Sun Sep 25 15:37:46 2022 Restart pause, 5 second(s)
Sun Sep 25 15:37:51 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:37:51 2022 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sun Sep 25 15:37:51 2022 UDP link local: (not bound)
Sun Sep 25 15:37:51 2022 UDP link remote: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:38:51 2022 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sun Sep 25 15:38:51 2022 TLS Error: TLS handshake failed
Sun Sep 25 15:38:51 2022 SIGUSR1[soft,tls-error] received, process restarting
Sun Sep 25 15:38:51 2022 Restart pause, 5 second(s)
Sun Sep 25 15:38:56 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:38:56 2022 Socket Buffers: R=[212992->212992] S=[212992->212992]
I am using a single Ubuntu 20.04 machine.
1) Is this possible to set up the openVPN Server and the Client both in the same machine and work as expected ?
2) My connection is behind NAT(broad band connection with wifi) .
2) while I am trying to connect to server from the client I am getting TLS Error.
ubuntu@ubuntu:/etc/openvpn/client$ sudo openvpn --client --config /etc/openvpn/client.conf
Sun Sep 25 15:35:41 2022 Unrecognized option or missing or extra parameter(s) in /etc/openvpn/client.conf:13: block-outside-dns (2.4.7)
Sun Sep 25 15:35:41 2022 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Mar 22 2022
Sun Sep 25 15:35:41 2022 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Sun Sep 25 15:35:41 2022 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Sun Sep 25 15:35:41 2022 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Sun Sep 25 15:35:41 2022 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Sun Sep 25 15:35:41 2022 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Sun Sep 25 15:35:41 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:35:41 2022 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sun Sep 25 15:35:41 2022 UDP link local: (not bound)
Sun Sep 25 15:35:41 2022 UDP link remote: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:36:41 2022 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sun Sep 25 15:36:41 2022 TLS Error: TLS handshake failed
Sun Sep 25 15:36:41 2022 SIGUSR1[soft,tls-error] received, process restarting
Sun Sep 25 15:36:41 2022 Restart pause, 5 second(s)
Sun Sep 25 15:36:46 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:36:46 2022 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sun Sep 25 15:36:46 2022 UDP link local: (not bound)
Sun Sep 25 15:36:46 2022 UDP link remote: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:37:46 2022 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sun Sep 25 15:37:46 2022 TLS Error: TLS handshake failed
Sun Sep 25 15:37:46 2022 SIGUSR1[soft,tls-error] received, process restarting
Sun Sep 25 15:37:46 2022 Restart pause, 5 second(s)
Sun Sep 25 15:37:51 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:37:51 2022 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sun Sep 25 15:37:51 2022 UDP link local: (not bound)
Sun Sep 25 15:37:51 2022 UDP link remote: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:38:51 2022 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sun Sep 25 15:38:51 2022 TLS Error: TLS handshake failed
Sun Sep 25 15:38:51 2022 SIGUSR1[soft,tls-error] received, process restarting
Sun Sep 25 15:38:51 2022 Restart pause, 5 second(s)
Sun Sep 25 15:38:56 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]110.87.14.206:1194
Sun Sep 25 15:38:56 2022 Socket Buffers: R=[212992->212992] S=[212992->212992]