I setup PiVPN on my Pi3B. I have a Windows computer. I can connect through OpenVPN GUI on Windows to my Pi, because I changed the WAN address of my router in original .ovpn config file that my PiVPN generated to my Pi's local IP address. However, when I change it back to my external IP address for my router (Bell 3000), I cannot connect from Windows to Pi's VPN. OpenVPN GUI is allowed through my Windows Defender Firewall. I've port forwarded port 443 externally and internally from my router to my Pi. I've tried adding my Pi to my DMZ on my router to no avail. What can I do to fix this issue?
Edit - Here is my OVPN Config that works:
client dev tun proto udp remote 192.168.2.37 443 resolv-retry infinite nobind persist-key persist-tun remote-cert-tls server tls-version-min 1.2 verify-x509-name server_08XRL6zHTfDaymUK name cipher AES-256-CBC auth SHA256 auth-nocache verb 3 <ca> -----BEGIN CERTIFICATE----- MIIBnzCCAUWgAwIBAgIJAJbJod1X+ ... +W1kN37CaTI/qocSTEyGc= -----END CERTIFICATE----- </ca> <cert> -----BEGIN CERTIFICATE----- MIIBuDCCAV2gAwIB ... +H5wVZ4 -----END CERTIFICATE----- </cert> <key> -----BEGIN ENCRYPTED PRIVATE KEY----- MIHjME4GC ... Pa52i051Fudhrk= -----END ENCRYPTED PRIVATE KEY----- </key> <tls-crypt> # # 2048 bit OpenVPN static key # -----BEGIN OpenVPN Static key V1----- bb0a39e1d55a264e237db76c5d9dc3ce ... 1425af36d2449f2c935b794e06407514 -----END OpenVPN Static key V1----- </tls-crypt>
I've removed all the key contents. The original that didn't work had my router's WAN IP instead of
Update: I have just tested it from another network; I can ssh to the pi, through port forwarding, but OpenVPN still doesn not work.