If I have two or more network interfaces, ranging from virtual and real, as it could to set iptables rules to affect all of these interfaces?
Example:
I have four interfaces, eth0
, eth0:0
, eth1
and loopback
, I want to set the following rule:
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
how would this rule to apply it interfaces eth0
, eth0:0
, eth1
and not apply it in loopback
?
If the rule applies to eth0
applies in eth0:0
as well?