Closing Ports on single server with multiple IP's?

Jorge Santos jorge.santos at deltasoft.pt
Wed Jul 27 16:36:44 UTC 2005


On Wed, 2005-07-27 at 18:24 +0200, Alexander Dalloz wrote:
> Am Mi, den 27.07.2005 schrieb Jorge Santos um 18:13:
> 
> > 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

> 
> That won't work as iptables can't handle aliased device names.
> Anyway, what David replied would be the better route to go in general.
> 
> Alexander

U can always do 
iptables -A INPUT -d <ip_of_alias> ...

JS





More information about the fedora-list mailing list