238 points · by nixcraft · 4y ago · 78 comments
https://mail-index.netbsd.org/current-users/2020/08/20/msg03... https://mail-index.netbsd.org/current-users/2020/08/22/msg03...
Jason Donenfeld has, to this day, never answered direct and simple questions about WHY he felt so strongly that NetBSD's wg implementation should be removed from NetBSD.
> Jason Donenfeld has, to this day, never answered direct and simple questions about WHY he felt so strongly that NetBSD's wg implementation should be removed from NetBSD.
gets answered by Jason:
> In its current form, there are implementation flaws and violations that I do not consider acceptable, and deploying this kind of thing is highly irresponsible and harmful to your users. Rather than playing never ending whack-a-mole misery with this -- which is not a path I'm willing to go down here -- I'd like to re-examine how this is built from the ground-up and do some serious code study.
(This response of his is corroborated by the article https://arstechnica.com/gadgets/2021/03/buffer-overruns-lice... which someone else posted further down.)
He also mentions that he's not against having a WireGuard implementation included in NetBSD in general.
I appreciate when folks take a reasonable stand against craptastic software engineering practices (cough OpenSSL cough) and insist on quality code.
"Can you be specific about what is wrong?"
"I don't like it" isn't good technical reasoning.
It's a bit the same as with pulse-audio in the beginning, where it backfired to poettering even if the code was not finished and the distributions, especially ubuntu integrated it pretty bad, told no one that it was alpha...and everyone was like:
What bad thing my sound worked with alsa before...i hate pulse-audio, poettering destroyed the "year of linux-desktop", now i hate him too ;)
Can you fill me in? I experimented with Wireguard a while back but it's been a few.
(It sounds like concern about design choices not... gossip? Infosec has been insane the past fourish years.)
https://arstechnica.com/gadgets/2021/03/buffer-overruns-lice...
https://www.reddit.com/r/opnsense/comments/wa6xil/opnsense_2...
https://www.reddit.com/r/opnsense/comments/wa6xil/opnsense_2...
Maybe there was a time it was using the old kmod port?
Is there any security benefit to moving a WireGuard bastion from fully patched Ubuntu to FreeBSD?
I plan on using FreeBSD bastions.
Its fine to like BSD, I just wish people were willing to be honest any say it's based on their personal and philosophical preferences, rather than based on any objective metric.
> Only two remote holes in the default install, in a heck of a long time!
I remember a time when it was zero, not two.
I've used FreeBSD a fair bit in the past and Ubuntu and Debian more continuously. Unless something radically changed recently. My experience is about 6-8 years old now but FreeBSD requires a lot more configuration when setting up common services, whereas Ubuntu and even Debian have good defaults that you can usually bring up without having to first consume the entire manual for that service.
There's probably a reasonable sounding argument buried behind this like "you cannot run a service securely if you do not fully understand the configuration first." but in practice this just results in poor initial configurations because it takes time to fully understand all of the knobs of configuration on a service.
FreeBSD can be a solid system, but it's less practical in many ways for reasons like this.
I was using FreeBSD as my desktop for almost 15 years, since the 4.1 times, and the amount of work it took to make some sane vpn client out of an ubuntu is nowhere near what I had as my griefs with FreeBSD back then. Not even mentioning pf vs iptables and how 20(?) years passed before linux had something comparable like nftables.
Nowadays it's mostly fine, but..
Case in point : I had to write and contribute wireguard support to the netplan to make it marginally sane.
edit to note: we can't really provide wg-quick in base at the moment (uses bash-isms), so that still ends up needing installed manually if wg(8) isn't sufficient for your needs.
I'm currently running a VM with a wireguard server within my firewall. That VM is running linux. I'm fine with this until the kmod lands in OPNsense, then I'll likely transition. One less VM to manage sounds good to me.
And another plug for OPNsense. Setting it up was easy. Far easier than pfSense, which I'd used for about a decade.
> Obtained from: git@git.zx2c4.com:wireguard-freebsd @ 3cc22b2