1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
ebtables -t filter --atomic-file /tmp/ferm.0 --atomic-save
ebtables -t nat --atomic-file /tmp/ferm.0 --atomic-save
ebtables -t broute --atomic-file /tmp/ferm.0 --atomic-save
ebtables -t filter --atomic-file /tmp/ferm.1 --atomic-init
ebtables -t filter --atomic-file /tmp/ferm.1 --init-table
ebtables -t nat --atomic-file /tmp/ferm.1 --atomic-init
ebtables -t nat --atomic-file /tmp/ferm.1 --init-table
ebtables -t broute --atomic-file /tmp/ferm.1 --atomic-init
ebtables -t broute --atomic-file /tmp/ferm.1 --init-table
ebtables -t filter --atomic-file /tmp/ferm.1 -P INPUT ACCEPT
ebtables -t filter --atomic-file /tmp/ferm.1 -F
ebtables -t filter --atomic-file /tmp/ferm.1 -X
ebtables -t filter --atomic-file /tmp/ferm.1 -A INPUT --logical-in br0 -j arpreply --arpreply-mac 00:00:de:ad:be:ef --arpreply-target DROP
ebtables -t filter --atomic-file /tmp/ferm.1 -A INPUT --logical-in br1 -j dnat --to-destination 00:00:de:ad:be:ef --dnat-target DROP
ebtables -t filter --atomic-file /tmp/ferm.1 -A INPUT --logical-in br2 -j mark --set-mark 1 --mark-target DROP
ebtables -t filter --atomic-file /tmp/ferm.1 -A INPUT --logical-in br3 -j redirect --redirect-target DROP
ebtables -t filter --atomic-file /tmp/ferm.1 -A INPUT --logical-in br4 -j snat --to-source 00:00:de:ad:be:ef --snat-target DROP
ebtables -t filter --atomic-file /tmp/ferm.1 -A INPUT --logical-in br4 -j snat --to-source 00:00:de:ad:be:ef --snat-target DROP --snat-arp
ebtables -t filter --atomic-file /tmp/ferm.1 --atomic-commit
ebtables -t nat --atomic-file /tmp/ferm.1 --atomic-commit
ebtables -t broute --atomic-file /tmp/ferm.1 --atomic-commit
|