Replying to @⁨Kazumara@discuss.tchncs.de⁩

Wireguard and apps based on it (like Tailscale) don’t respond at all unless the data is signed with the key of a configured peer (or with Tailscale, a system on your tailnet that passes the ACL). It’s literally impossible for an outsider/attacker to detect with a port scan since it just ignores unauthenticated packets.

The Wireguard codebase is also extremely small. The core Wireguard implementation (the version in the Linux kernel) is around 5,000 lines long, so an experienced developer can read through all the code if they dedicate a day or two to it, and understand how it works.

For comparison, OpenVPN is around 70,000 lines of code and OpenSSH is around 150,000 lines of code. There’s a huge number of features in SSH!

Replying to @⁨MonkderVierte@lemmy.zip⁩

imo it does not really matter how many lines is the openssh codebase, but how many lines of it deals with authentication/authorization and decryption of the incoming traffic.

then it can have all the features, but any bugs in them can only be abused by clients that were allowed access.

still, the related part of Wireguard’s codebase is likely much shorter, because it does not have multiple authentication methods and key algorithms, and whatever else. but then it still makes sense to use sftp over wireguard, because of its authentication inside the network and relative ease of use.

en