1832257 Members
2841 Online
110041 Solutions
New Discussion

Re: RHEL Firewall

 
Tonatiuh
Super Advisor

RHEL Firewall

I have servers with Red Hat enterprise Linux 3 and 4.

I did not configure the firewall at the installation time.

Can I configureit now? I want to restrict that the server only receive comunications from certain IP and certain Port.

Can I restrict the communications to this server in this way?
7 REPLIES 7
Stuart Browne
Honored Contributor

Re: RHEL Firewall

Sure you can do it now.

You can either do it manually by learning how to use the 'iptables' tools, or if you just want a quick fix (and have access to an X server), then you can use 'redhat-configure-securitylevel'.
One long-haired git at your service...
Gopi Sekar
Honored Contributor

Re: RHEL Firewall


if you are a commandline fan, then check the man page of iptables and there are very good documentation available on the net for this. The very basic guide can be found by 'man iptables'


if you are a GUI fan then as stuart mentioned, redhat-config-securitylevel would help. There are free opensource GUI tools also available which can do the same.

Regards,
Gopi
Never Never Never Giveup
Bejoy C Alias
Respected Contributor

Re: RHEL Firewall

Install webmin and use a web browser to access all of the confiuration of ur machine by http://ipaddr:10000 . U can easily manage ur firewall using webmin interface.
Be Always Joy ......
Tvs
Regular Advisor

Re: RHEL Firewall

hai

it is possible

you can install linux with firewall. later if you want you can activate the firewall with iptabel command. and u can meet u r requirment by iptables
Ivan Ferreira
Honored Contributor

Re: RHEL Firewall

You can do it using the methods described before, and you can also use the rc.firewall script available at sourceforge.net.

But, before doing firewall configuration, make sure you fully understand how the tcp traffic works. A bad configured firewall may cause extrange behaviors, serices not responding, or a false security sensation.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: RHEL Firewall

chkconfig --level 12345 iptables on
# that says that iptables is configured and running at boot time.
service iptables start

# This will start iptables.

The fun part is actually deciding to have and create a firewall policy. There are lots of good threads on that in the itrc database.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: RHEL Firewall

You can also, take a look to Shorewall:

http://www.shorewall.net/
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?