News for hackers. Stuff that matters.
Re:Big Update to OpenBSD's pfsync by vgivanovic on Thursday July 06, 2023 @09:32AM (#36615504)
What is pfsync and why do I care?
Re:Big Update to OpenBSD's pfsync by generalizations on Thursday July 06, 2023 @09:36AM (#36615545)
> pfsync is a computer protocol used to synchronise firewall states between machines running Packet Filter (PF) for high availability. It is used along with CARP to make sure a backup firewall has the same information as the main firewall. When the main machine in the firewall cluster dies, the backup machine is able to accept current connections without loss.

https://en.wikipedia.org/wiki/Pfsync

Looks pretty cool. Had no idea this existed, but glad to hear about it.

Re:Big Update to OpenBSD's pfsync by vgivanovic on Thursday July 06, 2023 @09:48AM (#36615706)
Thank you.
Re:Big Update to OpenBSD's pfsync by nesarkvechnep on Thursday July 06, 2023 @09:58AM (#36615854)
You could’ve done the googling yourself though.
Re:Big Update to OpenBSD's pfsync by olavfosse on Thursday July 06, 2023 @10:15AM (#36616133)
I understand telling people to "just google it" or "read the fine manual" on support forums where the same repetitive questions are asked a million times, but on hacker news? Why? What is wrong with asking a question that is of interest to the average reader of this thread? What's wrong with conversation?
Re:Big Update to OpenBSD's pfsync by woleium on Thursday July 06, 2023 @10:15AM (#36616147)
We don't make comments like this at HN.
Re:Big Update to OpenBSD's pfsync by tremon on Thursday July 06, 2023 @10:14AM (#36616116)
http://man.openbsd.org/pfsync has more details. This is interesting, I also didn't know of its existence. That said, I've never had to administer multiple failover firewalls so my interest is purely out of curiosity.
Re:Big Update to OpenBSD's pfsync by darkhelmet on Thursday July 06, 2023 @10:36AM (#36616553)
"carp" should also be included in discoveries alongside pfsync. carp functions like cisco/juniper/etc VRRP to enable real-time failover. With pfsync being a stateful firewall a lot of care needs to happen with failovers. carp + pfsync allow you to run multiple hot pfsync firewalls that have synchronized state and have near-instant failover without state-related hiccups.

We use pf+pfsync+carp extensively over in FreeBSD.org as well. It's good stuff!

Re:Big Update to OpenBSD's pfsync by woleium on Thursday July 06, 2023 @10:18AM (#36616192)
not just die, it allows you to run scheduled updates without interrupting service. I can update our gateways during the day without folks complaining.

It's been a feature of pfsense for many years (the smart kids have moved onto opensense now though)

Re:Big Update to OpenBSD's pfsync by justsomehnguy on Thursday July 06, 2023 @10:40AM (#36616638)
> the smart kids have moved onto opensense now though

Sadly OPNsense is just another highly opinionated mess, just like pfSense now. The are things what are done better in OPNsense but overall the UI is worse than atrocious.

I'm trying to use it for more than 3 years, but as soon as I need something more than a very basic ruleset - things go south.

Re:Big Update to OpenBSD's pfsync by kjs3 on Thursday July 06, 2023 @04:51PM (#36622818)
Agreed. Personally, what {pf,open}sense add aren't worth not just running pf/pfsync/carp on straight OpenBSD. Yes...no flashy GUI, but it's all well documented.
Re:Big Update to OpenBSD's pfsync by justsomehnguy on Thursday July 06, 2023 @05:11PM (#36623110)
Well, the thing is what I like what they have WebGUI, especially if I'm not the only one who would use it. But it's almost amusing on how they both overcomplicate the things, instead of (at least) giving me a checkmark to stop being 'user-friendly'.

The lack of necessities (eg pre-populated RFC1918 networks in the aliases, or extreamly common things, like AD ports list) or a 'session' view which defaults to seven states in OPNsense is just an icing on the top.

ADD: forgot, those stupid CSS animations in OPN. Not only they are stupid and slow, I'm almost never access the WebGUI directly, so I'm forced to watch every frame to be sent on the net.

It's like they are never ever dogfooding their own products, except their local, small labs.

ADD2: I hated ISA Server with a passion, for it being an overcomplicated mess. But 20 years later I would gave my month supply of pumpkin latte to just have an easy way to work with network groups and high level network abstractions.

Re:Big Update to OpenBSD's pfsync by kjs3 on Thursday July 06, 2023 @05:33PM (#36623399)
Well, yeah...you made my point. I'll take a well documented, easy to work with and reason about, easy to debug, text configuration over a crappy GUI any day of the week.
Re:Big Update to OpenBSD's pfsync by gonzo on Thursday July 06, 2023 @10:55PM (#36626509)
You and me both, but we’re not the audience for pfSense.
Re:Big Update to OpenBSD's pfsync by woleium on Thursday July 06, 2023 @11:35PM (#36626774)
incidentally why I like proxmox. it's the best of both worlds.
Re:Big Update to OpenBSD's pfsync by gonzo on Thursday July 06, 2023 @10:54PM (#36626498)
And Netgate contributes a ton to pf (and other subsystems) on FreeBSD.

https://github.com/freebsd/freebsd-src/commits/main/sys/netp...

Does OPNsense?

Re:Big Update to OpenBSD's pfsync by inferiorhuman on Friday July 07, 2023 @05:21AM (#36629231)
Netgate has a history of being a bad actor. Not just with the botched Wireguard release, but generally being dicks to the opnsense crew.

https://old.reddit.com/r/homelab/comments/ssk8zj/til_in_2017...

Re:Big Update to OpenBSD's pfsync by woleium on Saturday July 08, 2023 @03:12PM (#36647714)
Yep, that is what caused the opensense fork
Re:Big Update to OpenBSD's pfsync by chasil on Thursday July 06, 2023 @11:01AM (#36617070)
I am not sure if the latest edition covers pfsync and carp, but there is a book on this subject, "The Book of PF" by Peter N. M. Hansteen.

https://nostarch.com/pf3

OpenBSD's PF firewall has been adopted by Solaris, and I believe it is an option in FreeBSD and Linux.

https://en.wikipedia.org/wiki/PF_(firewall)

Re:Big Update to OpenBSD's pfsync by inferiorhuman on Friday July 07, 2023 @05:29AM (#36629260)
Pf is included in FreeBSD and macOS, and by extension pfsense. But it's worth noting that they've all diverged to varying degrees so you've gotta be careful in terms of syntax and features.

For fun I've been monkeying around with a friendly pf library in everyone's favorite language, and the differences between bit me a few times… although it looks like FreeBSD-current is starting to work towards convergence. It's a really powerful tool, but it's also been a reminder about how much I dislike C APIs.