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.
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: https://forums.openvpn.net/viewtopic.php?t=22603
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>
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.