Closing Ports on single server with multiple IP's?

Alexander Dalloz ad+lists at uni-x.org
Wed Jul 27 16:24:41 UTC 2005


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
> 
> and so on
> 
> JS

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


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 18:23:13 up 11 days, 22:55, load average: 0.20, 0.10, 0.09 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050727/59289e6d/attachment-0001.sig>


More information about the fedora-list mailing list