5 ms·
Since you mentioned security note the security implications towards the end of the page as this is actually pretty insecure without additional components. Also
by zamadatix 8y ago
Since you mentioned security note the security implications towards the end of the page as this is actually pretty insecure without additional components. Also note this results in:
application data in
IP+<L4 protocol> in
IP+UDP Tunnel (Wireguard) in
IP+TCP
So securing the component mess and header bloat is becoming as bad as OpenVPN/IPSec which you abhorred. Still probably faster than OpenVPN though as that implementation is amazingly bad.
- galadran 8y agoI think you've misunderstood. This setup is not insecure. Wireguard authenticates (or drops) any packets forwarded by udptunnel. Once a packet leaves the Wireguard interface the attacker (or anyone else) can transform it however they like without impacting security properties. This config does allow the attacker to make a TCP handshake to the server, but the data they send over the TCP wrapped connection could have equally been sent to the UDP port Wireguard is listening on. Disclaimer: This of course assumes both Wireguard and udptunnel have no remote code exploits or other implementation errors. However, as we discussed, this is a much safer assumption than OpenVPN...
- zamadatix 8y agoI was more referring to the DoS attacks on the TCP stack than the spoofing attacks. https://nvd.nist.gov/vuln/detail/CVE-2018-5390 https://nvd.nist.gov/vuln/detail/CVE-2018-5390 as an example. The attack surface is vastly expanded compared to Wireguard's default attack surface.
- BraveNewCurency 8y agoIt does have one security implication: Wireguard never responds to an attacker. Your tunnel is responding to attackers, so now they know your box exists and can probe it for problems. Each TCP connection takes up memory. If you limit the TCP connections, they can run a slowloris attack and tie them all up. So it's not a security hole, but it is slightly less secure.