News for hackers. Stuff that matters.
Re:PfSense Is Closed Source by colejohnson66 on Monday January 25, 2021 @08:38PM (#25911371)
If it's closed source, then what's this: https://github.com/pfsense/pfsense ?

Genuine question.

And wow. https://github.com/github/dmca/blob/master/2018/2018-04-30-p...

Re:PfSense Is Closed Source by wmf on Monday January 25, 2021 @08:44PM (#25911420)
The link says: "You cannot build pfSense®™ 2.4.x from source code. No, not even with the official tools - those will just sabotage you. The repository claimed to be "FreeBSD src with pfSense changes" does not contain the source code of the kernel shipped with pfSense®™ 2.4.x, and other changes done to FreeBSD code are also being selectively ommited from that repository." It's from a few years ago so the situation may have changed.

It looks like there's a RHEL/CentOS sort of thing going on here where the code is (mostly?) open but the branding isn't.

Re:PfSense Is Closed Source by kevans91 on Monday January 25, 2021 @09:48PM (#25911833)
I haven't tried it, but this doesn't seem to be the case anymore. Notably, [0] is clearly a pretty up-to-date copy of the stable/12 that they're almost certainly running given some of the recent direct commit references (e.g., patch pulled from [1]) and that it has a wireguard kmod that hasn't actually been ported to this branch upstream.

I would guess that pfsense/pfsense should be able to build it, but you probably won't have any luck on !FreeBSD/pfSense.

[0] https://github.com/pfsense/FreeBSD-src

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252894

Re:PfSense Is Closed Source by wolrah on Tuesday January 26, 2021 @12:10AM (#25912807)
I'm not sure about the kernel alone, but the last time I tried to build the entire pfSense system (a few years ago, but still in the 2.4.x era) using the build.sh in the pfsense/pfsense repo it fell apart due to references to Netgate internal package repositories with no information on how to replicate these.

Asking about it in the official subreddit resulted in responses ranging from unhelpful to hostile.

Re:PfSense Is Closed Source by kevans91 on Tuesday January 26, 2021 @09:28AM (#25916083)
Ugh, that's unfortunate. =\

After looking at this repo more closely, this really is pretty suboptimal. build.sh is incredibly flexible, but yeah- no documentation on what you'd need to build a non-pfsense branded product.

That's pretty weird, given how much of this system seems to be geared towards being generically applicable and has some replacements aimed directly at rebranding some literal occurrences of "pfSense".

Re:PfSense Is Closed Source by wolrah on Wednesday January 27, 2021 @08:14AM (#25927817)
I did see someone linked documentation for how they did a build recently in the pfSense subreddit when this same article was posted there, so I guess it is in fact possible, but the process was certainly nowhere close to straightforward.

I really do enjoy the platform, I have dozens of Netgate SG-series devices deployed to clients and they work great, but I do find it hugely disappointing that it seems very clear that Netgate does not want anyone else producing builds of pfSense-derived software even if it's properly rebranded.

Their official claims that it's purely about the branding falls apart when you compare what's involved in building "nonSense" compared to Chromium, Iceweasel, etc.