Resources · Port reference · port 51820
Port 51820 (WireGuard): what it is and how to secure it
WireGuard should listen publicly. That is the point of the VPN. The peers inside it should not be public.
Check command
ss -tulpn | grep 51820
Copied.
Allow UDP 51820. Do not also publish the services that the tunnel was meant to hide. SSH can stay allowed on 22 while you prove the tunnel works.
ss -tulpn | grep 51820
A 0.0.0.0 or :: address is a public listener. 127.0.0.1 is local.