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

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

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


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

  Powered by Linux