r/ComputerSecurity • u/linux_is_the_best001 • Sep 14 '21
Linux's IPTABLES Vs OpenBSD's PF ...... Which is more secure ?
I am no expert. I am just an average home user who is paranoid about security. I started using Linux a long time back. In the early days I used to distro hop a lot but now I have settled down. Other than Linux I have used two other OSs namely FreeBSD & OpenBSD. As I said I am just a home user so I never needed a server. I tried hard to continue with OpenBSD but honestly using it as a desktop operating system is a frustrating job so I moved back to Linux.
As you know OpenBSD uses PF & if you visit OpenBSD's home page they claim that their main focus is on security. Please keep in mind since we are discussing about desktop usage & not servers so keep in mind that both PF & IPTABLES are configured in deny all in & allow all out**.**
In this scenario which will be more difficult for an attacker to penetrate ? PF or IPTABLES ? Or are both equal in this particular area ?
I am asking this question because I am planning to setup a home made router & I am not sure if I should install OpenBSD or OPnsense (which also uses PF) or IPcop (which use IPTABLES). I will be using Linux on my desktop which the perimeter firewall is suppose to protect.
9
u/HolaGuacamola Sep 14 '21
They are more or less equally secure, the biggest thing being how the user(you) sets them up.
3
u/SigmaSixShooter Sep 14 '21
What you’re basically saying is “I have to drive to the store. What car is better, Chevy or Ford?”
As much as I appreciate people trying to be security minded, you need to dial it back like 5 notches. There’s simply no reason to restrict yourself to OpenBSD since they are security minded. Don’t get me wrong, I love OBSD, and it could make a decent server, but I’d never use it for a desktop.
I would recommend venturing out of your comfort zone and trying a few great Linux desktops. I’d also recommend just sticking with IPTables as it’s the standard in this world.
Lastly, and this is just to show you how difficult security can be, having an “allow all out” is a bad idea in the real world. It works fine for home users, but if you were really paranoid, you would want to restrict things like DNS, SSH, SMTP, FTP etc.
Lastly-er, having a “block all in and allow all out” is exactly what any consumer router already does, so you’re just making this harder on yourself for no reason. Your router already protects you from any inbound connections by the simple use of NAT. And it is setup to allow all outbound connections.
1
u/R-EDDIT Sep 14 '21
One point is that when you say "Linux", it really depends on the kernel version. The kernels starting at 3.15 use Berkeley Packet Filter, and iptables really only exists as a legacy control interface to the bpf. So probably the point is moot, they both use packet filters.
2
u/blueskin Sep 14 '21
It's about how you configure it. The same config will be equally secure on each.
0
u/[deleted] Sep 14 '21
[deleted] — view deleted comment