Linux - Security This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
10-28-2009, 03:39 AM
|
#1
|
Member
Registered: Dec 2006
Posts: 37
Rep:
|
CentOS 5.3 Firewall/Protection
Hello,
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?
Thank you in advance,
David
|
|
|
10-28-2009, 03:44 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
10-28-2009, 03:46 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Quote:
Originally Posted by dstu
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?
|
|
|
10-28-2009, 03:48 AM
|
#4
|
Member
Registered: Dec 2006
Posts: 37
Original Poster
Rep:
|
Hi Chris,
Thank you for your prompt response.
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?
Thanks,
David
|
|
|
10-28-2009, 03:53 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
10-29-2009, 10:56 PM
|
#6
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|