iptables with alias again

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

 



Hello
If I have a interface with e.g. 3 alias
eth0
eth0:0
eth0:1
eth0:2

will this following rules apply on only eth0 and not eth0:0, eth0:1 and
eth0:2 or will it apply on all of them

iptables -A INPUT -i eth0 --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -j DROP

e.g If I get a packet on eth0:1 will the packet get ACCEPT if it is for port
80 or do I have to make a rule for all the alias where I use the alias ip
instead of the -i eth0 option?


Jeppe Sorensen




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux