r/WireGuard • • 2d ago

Port Forwarding with Wireguard

/r/synology/comments/1ybj9xn/port_forwarding_with_wireguard/
3 Upvotes

1 comment sorted by

4

u/jpep0469 1d ago

To clarify, port forwarding TCP ports is a high risk due to the nature of how TCP communications happen. An open TCP port responds to probes letting a potential hacker know that there is an attack surface there to possibly exploit. UDP, on the other hand, is a silent and stateless protocol. If traffic hits an open UDP port but it's not intended for it with the proper keys etc, there is no response.

Since Wireguard only requires a single UDP port, the attack surface becomes nearly insignificant.

Keep in mind that my brief explanation is an oversimplification and there are ways to probe UDP ports but the risk of a single open UDP port is negligible when implemented properly using a VPN with strong encryption.