LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2018, 01:56 PM   #1
Gremlin022
Member
 
Registered: Jun 2014
Posts: 37

Rep: Reputation: Disabled
Best Firewall Distro?


Hello,

I searched the forum for this topic, but the responses were quite old. What's the best current firewall distro for Linux? I want to tinker with turning a PC into a physical firewall. Keep heating about Sophos UTM Home. Is that any good?
 
Old 03-17-2018, 02:04 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
They'll all use the same filter which you would access via iptables, probably via SSH or a serial cable. So it does not matter that much which distro to choose. I'd recommend steering towards a distro that has a Long Term Support release so that you don't have to mess with full system upgrades too often. The server version of Ubuntu would fulfill that criterion, but then so would many others.

If you want to try another OS, then you could try pfSense which is based on FreeBSD.

Or if you want the best and easiest (for certain definitions of easy) then there is PF which is built into OpenBSD. Installing the base set for OpenBSD would provide PF plus OpenSSH server and you'd be set. PF is much easier than iptables. OpenBSD itself is old school and does only what you tell it, no more no less. Getting used to that might be necessary but is wonderful because of that once it is familiar.

However, firewalls in general are vastly overrated: If M$ Edge or M$ Outlook are your infection vectors and either is still allowed to reach out through your firewall, you will get pwned regardless of how fine and clever the firewall is.

If you are approaching this to learn, then go for it. Otherwise, meh.

Last edited by Turbocapitalist; 03-17-2018 at 02:20 PM. Reason: spelling
 
1 members found this post helpful.
Old 03-17-2018, 02:24 PM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Again, if M$ Edge or M$ Outlook are your infection vectors and either is still allowed to reach out through your firewall, you will get pwned regardless of how fine and clever the firewall is.

Just to illustrate that using this week's news:

http://www.cve.mitre.org/cgi-bin/cve...=CVE-2018-0874

http://www.cve.mitre.org/cgi-bin/cve...=CVE-2018-0939

http://www.cve.mitre.org/cgi-bin/cve...=CVE-2018-0940

Next week or at latest the week after that, there will be a new but similar batch.
 
Old 03-17-2018, 07:09 PM   #4
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
You might take a look at IPCop. It is a standalone firewall. Also take a look at Shorewall. And there are others that are dedicated firewalls.

Do remember what a firewall does. It is a packet filter. It can block packets from ip addresses, packets that have impossible flags, packets that arrive too quickly and that sort of thing. But they are looking at the packets themselves, not the contents in relation to various threats that should be handled by the programs themselves. You can, for example, easily block any packet from China,say, but not a specific packet or set of packets that will cause a buffer overflow or something else due to a fault in the program. From what has been said above I suspect that you are looking for both.

For a packet firewall on Linux you will be looking at some frontend for the security modules in the kernel which due the actual filtering. The most common arrangement is a frontend to iptables which, in turn, is a frontend for the kernel modules. I highly recommend that you invest some time in learning and learning about iptables itself. They are not easy to go through and understand in detail, but the man pages for iptables and iptables-extensions. That will help you in evaluating what each 'firewall' you look at actually does. Once you know a little about iptables a command you will find useful is 'sudo iptables -L -v -n' which lists all the rules in the filter table. There are other tables, but that is the main one.

Sorry for the length, but your question made me think you were expecting too much from a firewall. If I'm wrong I'll apologize and crawl back under my rock.
 
Old 03-17-2018, 08:32 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
It's not Linux, it's BSD, but Tom Lawrence of the Sunday Morning Linux Review swears by PFSense. He has a number of tutorials at his YouTube channel.
 
1 members found this post helpful.
Old 03-18-2018, 09:10 AM   #6
YesItsMe
Member
 
Registered: Oct 2014
Posts: 915

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
I would seriously recommend OpenBSD for firewalls if you're into ssh. Otherwise, +1 for PFSense.
 
1 members found this post helpful.
Old 03-18-2018, 12:38 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Free firewall distros offer the illusion of security. It's kind of like wearing safety goggles when you work. It will prevent accidental debris. But goggles won't prevent someone from intentionally shooting you in the eye. If someone specifically desires to penetrate a firewall running a free firewall distro, it might as well not even be there for all the good it will do.
 
Old 03-18-2018, 08:20 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I must differ somewhat with the previous post. As AwesomeMachine points out, if someone really wants to penetrate your network, the odds are he or she will find a way in.

Similarly, if someone really wants to steal your car, he or she will probably steal your car, because he or she really wants your 1972 Lamborghini and there only three left outside of captivity. That's not a reason to leave the doors unlocked and the key in the ignition, especially given the common nature of random port scans on the internet.

Last edited by frankbell; 03-18-2018 at 08:27 PM.
 
Old 03-19-2018, 12:53 AM   #9
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I guess maybe I overstated my case. But nothing beats diligence in the pursuit of security.
 
Old 03-20-2018, 01:14 AM   #10
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
i have used pfsense and openbsd as a firewalls. pf sense if you like gui, openbsd if you want do things without gui, or you could install xfce4.
 
Old 03-20-2018, 01:27 AM   #11
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
*LFS*
 
Old 12-01-2021, 01:55 AM   #12
clutch644
LQ Newbie
 
Registered: Dec 2021
Posts: 2

Rep: Reputation: Disabled
best linux firewalls

You can use any linux distro, you can install Linux firewall on that distor that would be helpful for you instead of looking for distros fully based on the firewall. there are many Linux firewalls available on the web. take a look.
 
Old 12-01-2021, 05:39 PM   #13
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
error

Last edited by computersavvy; 12-01-2021 at 05:41 PM.
 
Old 12-01-2021, 10:34 PM   #14
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Gremlin022 View Post
What's the best current firewall distro for Linux?
Slackware works for me. I use a Python script that creates/updates the rules based on blacklists that I've accumulated based on IPs I've gleaned from log files (senders that attempt mail relay access, web accesses that are trying to find Windows directories, stuff like that). It's not a panacea but it cuts down some of the obvious traffic I'd prefer not get access to, well, anything on the "clean" side of the firewall.

There may be better distributions that can be used as firewalls out of the box but Slackware's done a good job so far as it allows me to roll my own solution and -- unlike any Systemd-based distribution -- and I have better control of when, in the system startup sequence, the firewall setup takes place.

Good luck on your search.
 
Old 12-02-2021, 01:47 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,843

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
necro-thread reopened by a spammer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Firewall Distro kubed_lovee Linux - Security 10 11-24-2010 12:34 PM
Best firewall Distro.........? shaijuseb Linux - Security 8 09-21-2009 10:31 AM
Best firewall distro? surf9090 Linux - Security 3 01-06-2006 04:44 PM
best firewall distro jadid Linux - Security 1 12-14-2005 02:19 AM
distro for firewall? valkyr Linux - Newbie 10 01-28-2002 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration