Hi all.
I have configured OpenVPN using UDP succesfully.
But as I was found some countries block VPN based on port number and UDP so for some cases I need TCP on port 443.
When I tried to copy configuration from working UDP one with changing UDP to TCP and port number to 443 the configuration does not intitialize - I can see the following in log:
So what is wrong? Does it mean it is not possible to run two instances of OpenVPN?
I have configured OpenVPN using UDP succesfully.
But as I was found some countries block VPN based on port number and UDP so for some cases I need TCP on port 443.
When I tried to copy configuration from working UDP one with changing UDP to TCP and port number to 443 the configuration does not intitialize - I can see the following in log:
an 21 13:24:01 rc_service: service 22971:notify_rc restart_vpnserver2
Jan 21 13:24:02 kernel: br0: topology change detected, propagating
Jan 21 13:24:02 kernel: br0: port 5(tap22) entering forwarding state
Jan 21 13:24:02 kernel: br0: port 5(tap22) entering forwarding state
Jan 21 13:24:02 kernel: br0: port 5(tap22) entering forwarding state
Jan 21 13:24:02 kernel: br0: port 5(tap22) entering disabled state
Jan 21 13:24:03 kernel: Interface tap22 doesn't exist
Jan 21 13:24:03 kernel: Interface tun22 doesn't exist
Jan 21 13:24:03 kernel: device tap22 entered promiscuous mode
Jan 21 13:24:03 kernel: ADDRCONF(NETDEV_UP): tap22: link is not ready
Jan 21 13:24:03 ovpn-server2[23027]: WARNING: POTENTIALLY DANGEROUS OPTION --verify-client-cert none|optional (or --client-cert-not-required) may accept clients which do not present a certificate
Jan 21 13:24:03 ovpn-server2[23027]: OpenVPN 2.4.8 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Dec 31 2019
Jan 21 13:24:03 ovpn-server2[23027]: library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.08
Jan 21 13:24:03 ovpn-server2[23028]: NOTE: when bridging your LAN adapter with the TAP adapter, note that the new bridge adapter will often take on its own IP address that is different from what the LAN adapter was previously set to
Jan 21 13:24:03 ovpn-server2[23028]: WARNING: using --duplicate-cn and --client-config-dir together is probably not what you want
Jan 21 13:24:03 ovpn-server2[23028]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jan 21 13:24:03 ovpn-server2[23028]: PLUGIN_INIT: POST /usr/lib/openvpn-plugin-auth-pam.so '[/usr/lib/openvpn-plugin-auth-pam.so] [openvpn]' intercepted=PLUGIN_AUTH_USER_PASS_VERIFY
Jan 21 13:24:03 ovpn-server2[23028]: Diffie-Hellman initialized with 2048 bit key
Jan 21 13:24:03 ovpn-server2[23028]: Failed to extract curve from certificate (UNDEF), using secp384r1 instead.
Jan 21 13:24:03 ovpn-server2[23028]: ECDH curve secp384r1 added
Jan 21 13:24:03 ovpn-server2[23028]: Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Jan 21 13:24:03 ovpn-server2[23028]: Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Jan 21 13:24:03 ovpn-server2[23028]: Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Jan 21 13:24:03 ovpn-server2[23028]: Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Jan 21 13:24:03 ovpn-server2[23028]: TUN/TAP device tap22 opened
Jan 21 13:24:03 ovpn-server2[23028]: TUN/TAP TX queue length set to 1000
Jan 21 13:24:03 ovpn-server2[23028]: updown.sh tap22 1500 1656 init
Jan 21 13:24:03 kernel: ADDRCONF(NETDEV_CHANGE): tap22: link becomes ready
Jan 21 13:24:03 kernel: br0: topology change detected, propagating
Jan 21 13:24:03 kernel: br0: port 5(tap22) entering forwarding state
Jan 21 13:24:03 kernel: br0: port 5(tap22) entering forwarding state
Jan 21 13:24:03 ovpn-server2[23028]: Could not determine IPv4/IPv6 protocol. Using AF_INET6
Jan 21 13:24:03 ovpn-server2[23028]: Socket Buffers: R=[87380->87380] S=[16384->16384]
Jan 21 13:24:03 ovpn-server2[23028]: setsockopt(IPV6_V6ONLY=0)
Jan 21 13:24:03 ovpn-server2[23028]: TCP/UDP: Socket bind failed on local address [AF_INET6][undef]:443: Address already in use (errno=98)
Jan 21 13:24:03 ovpn-server2[23028]: Exiting due to fatal error
Jan 21 13:24:03 ovpn-server2[23028]: Closing TUN/TAP interface
Jan 21 13:24:03 ovpn-server2[23028]: updown.sh tap22 1500 1656 init
So what is wrong? Does it mean it is not possible to run two instances of OpenVPN?