Page 1 of 1

Configuring firewall

Posted: 2005/11/21 10:49:49
by maxime
hello,

I want to configure my firewall with centos. So i used graphical interface in order to open which port i need. But i'd like to open these ports for only some IP.
How i can do that ?

Thanks.

Re: Configuring firewall

Posted: 2005/11/21 23:18:55
by w5set
add them in
/etc/hosts.allow
if you have "unfriendlies" (with fixed IP's) add them to /etc/hosts.deny
or if you just want to mess with someone add them to hosts.deny too!--hi--hi
you can include/exclude whole IP ranges here too.

Configuring firewall

Posted: 2005/12/01 16:09:16
by ftanner
[quote]
maxime wrote:
hello,

I want to configure my firewall with centos. So i used graphical interface in order to open which port i need. But i'd like to open these ports for only some IP.
How i can do that ?

Thanks.[/quote]

I have a post in the security section that you might be interested in.

Re: Configuring firewall

Posted: 2006/01/05 05:01:12
by Scott_
Hello I have the similar issue, Could someone tell me what needs to be added to the hosts.allow file to open a port? Do I just need to add the port number or is there some other code that needs added?

Re: Configuring firewall

Posted: 2006/01/06 15:23:35
by cohcon
Could you please email a copy or download link to isadmin@deaconesshomecare.com?

Thank you,
Conn

Re: Configuring firewall

Posted: 2006/01/09 15:54:09
by ftanner
[quote]
cohcon wrote:
Could you please email a copy or download link to isadmin@deaconesshomecare.com?

Thank you,
Conn[/quote]

Do you mean this to me?

Re: Configuring firewall

Posted: 2006/03/11 21:16:57
by nfowar
The "firewall" GUI is indeed pretty limited. You can only "open" ports globally there. The /etc/hosts file is not such a good idea IMHO, because not all services read this file. You should take a look at the IPTables documentation and tutorials at http://www.netfilter.org and add use a custom iptables command to unblock the port. A good place for this is in /etc/rc.local.