Router and firewall companies appear be targeted.
What are people doing to stay ahead of these companys, products that are pfsense based or something else?
Changing vendors doesn't magically let you avoid the vulnerability problem:
I don’t really trust opn/ pfsense much more either plus it’s kind of clunky to work with in the age of agents. I recently moved to a nixos based router + firewall so now all config and package dependencies are based in git and I can use Renovate to keep everything up to date, with cooldowns for some additional supply chain safety. Router changes and updates can then be tested and validated in CI like anything else
I'm not being snarky, but if you have to ask, you probably aren't qualified to run it securely. You can run it, but it'll be vulnerable because you'll not implement some best practices that'll bite you.
Anyway, it's quite rare that control or management plane attacks can be carried out just via the data plane. Meaning, it's rare you can get onto a security appliance by passing traffic through it. Routing a packet a through a router shouldn't let you exploit a vulnerability on the router itself. Therefore, the best defense is to make sure the management planes of the routers and firewalls are not Internet accessible, and that the control planes are as locked down as possible (difficult with devices that terminate VPN tunnels from dynamic sources, and to some degree with WAN BGP peering).
A Check Point security server probably shouldn't have its login page available on the Internet, though I haven't worked with that platform much. I guess if you want dynamic endpoints, like branch offices, to connect to it for management that could make sense, but I find that icky and would strongly prefer some sort of overlay network solution managed in-house or managed by some service provider to lock that down a lot rather than just make the box public.