Ebtables is an application program used to set up and maintain the tables of rules (inside the Linux kernel) that inspect Ethernet frames. It is analogous to the iptables application, but less complicated, due to the fact that the Ethernet protocol is much simpler than the IP protocol. ebtables used with bridges on Linux. The following script will stop and clean all ebtables rules:
A Linux Firewall shell script for webserver / dns server for Debian / Fedora / Ubuntu / RHEL / Red hat / CentOS Linux.
FreeBSD IPFW example firewall script to shape traffic for your LAN and WAN network.