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.
Configuring firewall
Re: Configuring firewall
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.
/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
[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.
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
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
Could you please email a copy or download link to isadmin@deaconesshomecare.com?
Thank you,
Conn
Thank you,
Conn
Re: Configuring firewall
[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?
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
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.