Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You don't need to install anything, it's all there already. The system-config-security level contains a basic firewall configuration tool, or you can just directly edit /etc/sysconfig/iptables. I really wouldn't recommend a web interface for modifying firewall configurations.
We need to install a firewall program to defend our Linux server from unauthorized access.
Specifically, we need to configure which ports and protocols are allowed from specific IP addresses or subnets and limit any other access.
What reliable open-source software is there with an easy to use web interface?
Well, CentOS already comes with the standard GNU/Linux firewall, which is Netfilter. It also brings the standard configuration tool, iptables. So basically you'd want a Web-based front end to iptables. Something like Firewall Builder, perhaps?
I have a Gnome interface and through it, I accessed the firewall, but I disabled it, because what I could configure there is only the port and protocol, and not specific origins.
Do I need to re-enable the built-in firewall? How do I define security policies?
Really think you can define source IP's in the default tool... Hmm. Personally I'd just edit the config file directly, taking a few examples to get the syntax right. That's only my preference TBH though. As Winsux said, there are web interfaces if you really want one, and some are really quite advanced. It all comes back to iptables config files of varying compelxity though.
Note that Linux only ever has ONE firewall, NetFilter w/ IPTables. Everything else, i.e. clicky pointy tools, are just wrappers for making config files for NetFilter, in the form of IPTables commands to directly modify it.
I agree with everyone else. You're better off learning the command line tools and editing the files. Adding web access just increases the surface area and also extra rules in your rule set.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.