Unable to connect to the OpenVPN server

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
y03owo
OpenVpn Newbie
Posts: 1
Joined: Tue May 09, 2023 1:14 pm

Unable to connect to the OpenVPN server

Post by y03owo » Tue May 09, 2023 1:18 pm

I have a OpenVPN server that hosts on a Fedora server 38,
It worked very well until today.
Today, when I try to connect, it returns an error:

Client logs

Transport Error: TCPv4 connect error on 'miracleds.xyz:1194' (58.153.<removed>.<removed>:1194): No connection could be made because the target machine actively refused it.


So I modified the client config and tried the address `192.168.1.144` and it is still rejected
I have checked that my router have allowed connection for both TCP and UDP
and I have checked the fedora `firewalld` and it is disabled.
I also checked `iptables` and I have allowed ALL ports from EVERYWHERE and I still cannot connect

OpenVPN Server Config

port 1194
proto tcp
dev tun
user nobody
group nobody
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1 bypass-dhcp"
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key
crl-verify crl.pem
ca ca.crt
cert server_0HMKAdYI1FkJQfCQ.crt
key server_0HMKAdYI1FkJQfCQ.key
auth SHA256
cipher AES-128-GCM
ncp-ciphers AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
client-config-dir /etc/openvpn/ccd
status /var/log/openvpn/status.log
verb 3


OpenVPN Client Config

client
proto tcp-client
remote 192.168.1.144 1194
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_0HMKAdYI1FkJQfCQ name
auth SHA256
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
ignore-unknown-option block-outside-dns
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
verb 3
<ca>
-----BEGIN CERTIFICATE-----
<=removed=>
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
<=removed=>
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
<=Removed=>
-----END PRIVATE KEY-----
</key>
<tls-crypt>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
<=Removed=>
-----END OpenVPN Static key V1-----
</tls-crypt>


Please help!

Post Reply