Page 1 of 1
Connects on LAN not on WAN
Posted: Sat Nov 12, 2022 2:06 am
by faza6769
Hello Guys
Hope you all doing well. i have a problem and i am not IT-Expert. i installed Openvpn Server. If i am connected to the same Network, my Client connect to the Server, if i am in another network by client, than the client doesnt connect to my OpenVPN-Server. Where should i search for problem to lose it?
thank you everyone.
Re: Connects on LAN not on WAN
Posted: Sat Nov 12, 2022 7:25 am
by Pippin
Hi,
Did you change the --remote directive in the client configuration?
Did you disable the firewall on the server for testing?
Have you done the port forward in the router?
See here:
viewtopic.php?t=22603
Re: Connects on LAN not on WAN
Posted: Sat Nov 12, 2022 6:24 pm
by faza6769
Portforwarding works.
Firewall is enable but i allow port 1194 for Incoming Requests.
But i do not understand how to configure the Client config file correctly. I Changed the IP Adress to Public IP. From LAN it connect. but from WAN doesent.
Client Conf File:
client
dev tun
proto udp
remote <my Public IP> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
ignore-unknown-option block-outside-dns
auth SHA512-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
cipher AES-256-CBC
verb 3
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
-----END PRIVATE KEY-----
</key>
<tls-crypt>
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-crypt>
Re: Connects on LAN not on WAN
Posted: Sat Nov 12, 2022 8:21 pm
by ordex
Check the server log: if you don't see any connection attempt it means the problem is between the two, like Pippin already said.
If you see a connection attempt, please post the log so we can double check.