logoalt Hacker News

aborsy • yesterday at 11:12 PM • 3 replies • view on HN

If you wrap wireguard or build a layer on top of it, it's no longer wireguard that first listens to packets on public interface, it's your wrapper. The security properties of wireguard don't hold (potential for RCE before packets reach wireguard). That's a problem with projects like wstunnel or udp2raw.

You want wireguard to be the software that takes the packets first.


Replies

aboardRat4 • yesterday at 11:53 PM

>The security properties of wireguard don't hold

That's plain wrong. The first thing a normal wireguard faces is... the wild network of the Internet, with many servers and hordes of malicious agents. This is what makes is an "encrypted VPN", it's expected to withstand being transmitted by garbage media.

>potential for RCE before packets reach wireguard

There is no such thing as "rce packets". Moreover, every wireguard implementation has a different surface for RCEs (bugs), it's not a property of wireguard, it's a property of the implementation, of which there are at least three.

➕ show 2 replies
tptacek • yesterday at 11:44 PM

This isn't true. You don't lose the security properties of WireGuard just because you wrap it in some other transport. There is no particular virtue to it "taking the packets first".

justsomehnguy • today at 12:42 AM

> You want wireguard to be the software that takes the packets first.

Congratulations, DPI marked your connection as... WireGuard and blocked it.

I'd say you are now double safe - there is could be no RCE if there is no packets at all.