Re: Closing Ports on single server with multiple IP's?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi 

U can use iptables or define on each service which ip address it will
listen on

But perhaps the best way is iptables

ex:

iptables -A INPUT -i eth0 --dport 25 -j ACCEPT
iptables -A INPUT -i eth0:0 --dport 25 -j DROP
iptables -A INPUT -i eth0:1 --dport 25 -j ACCEPT

and so on

JS

On Wed, 2005-07-27 at 10:59 -0500, Lonnie Cumberland wrote:
> Hi All,
> 
> We have a server set up with multiple IP's aliased to it through eth0:1, 
> eth0:2, etc.....
> 
> Each (aliased) IP currently has the same ports open on it as the others 
> and I want to turn off some of the ports on all of the IP except for 
> what IP is being used.
> 
> For example we have SMTP on port 25 which should be listening only on 2 
> of our IP's and not on the rest of them as well.
> 
> How can I turn of various ports from listening on these IP's?
> 
> -- 
> Thanks,
> 
> Lonnie Cumberland
> 
> 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux