410 points · by axiomdata316 · 6y ago · 97 comments
Hope to release wireguard on FreeBSD soon as well.
In order pfSense to include it: https://redmine.pfsense.org/issues/8786
Available as a Port / package:
* https://www.freshports.org/net/wireguard/
* https://www.freshports.org/net/wireguard-go/
Running it in a jail for further compartmentalization:
* https://genneko.github.io/playing-with-bsd/networking/freebs...
Was satisfied with the state of affairs before but genuinely excited about this development.
Here's an excellent talk (in website form) on the subject: https://isopenbsdsecu.re/about/
Some snippets:
> OpenBSD believes in strong security. Our aspiration is to be NUMBER ONE in the industry for security (if we are not already there). Our open software development model permits us to take a more uncompromising view towards increased security than most vendors are able to. We can make changes the vendors would not make. Also, since OpenBSD is exported with cryptography, we are able to take cryptographic approaches towards fixing security problems.
> ASLR: OpenBSD 3.4 [Nov 2003] was the first widely used operating system to provide it by default.
> W^X: First used for sparc, sparc64, alpha, and hppa in OpenBSD 3.3. Strictly enforced by default since OpenBSD 6.0: a program can only violate it if the executable is marked with PT_OPENBSD_WXNEEDED and it is located on a filesystem mounted with the wxallowed mount(8) option.
> Kernel relinking at boot: the .o files of the kernel are relinked in random order from a link-kit, before every reboot. This provides substantial interior randomization in the kernel's text and data segments for layout and relative branches/calls. Basically a unique address space for each kernel boot, similar to the userland fork+exec model described above but for the kernel. Theo de Raadt, June 2017.
BIG citation needed.
> Not sure it makes a difference over Linux
It doesn't.
Edit: listen, I understand that people are religious about their operating system kernel, but please make a reply to these points if you have one to refute.
> BIG citation needed.
While it may be debatable how much of an effect the OpenBSD security culture has on real world security outcomes, it is pretty obvious to most people I think that OpenBSD has a culture of security (or a focus on it) that Linux simply does not have. Security is practically the entire branding of the project. Just go to its home page, literally the first sentence is an advertisement for its security record. The culture is very much there, regardless of results.
Now, if you did want to argue that the security culture does not necessarily result in better outcomes, 1) that intention should probably be made more clear, and 2) why not at least provide an argument or some amount of evidence for it?
* https://www.cvedetails.com/vulnerability-list.php?vendor_id=...
And then look at the same number of security advisories for the Linux kernal during the same time:
* https://www.cvedetails.com/vulnerability-list.php?vendor_id=...
And then remember that NOBODY uses OpenBSD.
Literally no big-time company uses OpenBSD. Who uses OpenBSD??? Literally nobody.
https://vez.mrsk.me/freebsd-defaults.html
On Linux, I won't even start on the policy on most distros.
Personally I see this as the most exciting thing to happen to linux in the past 2 - 3 years.
I'm really pleased to see ongoing Wireguard integration in all the big platforms.
The setup is so simple, I route all my personal traffic through a simple cloud based WG + Pihole setup.
If wireguard doesn't meet your requirements, don't use it, but its kind of rediculous to complain it doesn't do X when doing X would defeat the point of the software.
The OpenBSD kernel module is also written in C: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/net/if_wg.c...
But the code looks quite different from https://git.zx2c4.com/wireguard-linux/tree/drivers/net/wireg...