I'm trying to understand what the default iptables rules do.
The following is the result of "brctl show".
The following are some of the default active rules built into the firmware referencing the br0 interface.
When the "br0" interface is used, is that the same as creating multiple rules with each referencing the bridged interfaces (vlan1 and eth1) ?
Are these correct ?
The following is the result of "brctl show".
Code:
bridge name bridge id STP enabled interfaces
br0 8000.3497f6201ba8 yes vlan1
eth1
The following are some of the default active rules built into the firmware referencing the br0 interface.
Code:
-A INPUT -i br0 -m state --state NEW -j ACCEPT
-A FORWARD ! -i br0 -o eth0 -j DROP
-A FORWARD -i br0 -o br0 -j ACCEPT
-A FORWARD -i br0 -j ACCEPT
When the "br0" interface is used, is that the same as creating multiple rules with each referencing the bridged interfaces (vlan1 and eth1) ?
Are these correct ?
First rule - Allow any traffic destined for the router via the vlan1 and eth1 interfaces with a NEW state.
Second rule - Drop any outgoing traffic going through the router that is not from the vlan1 and eth1 interfaces.
Third rule - Allow any traffic between the vlan1 and eth1 interfaces.
Fourth rule - Allow any incoming traffic through the router to the vlan1 and eth1 interfaces.
Second rule - Drop any outgoing traffic going through the router that is not from the vlan1 and eth1 interfaces.
Third rule - Allow any traffic between the vlan1 and eth1 interfaces.
Fourth rule - Allow any incoming traffic through the router to the vlan1 and eth1 interfaces.