Created
September 26, 2020 10:04
-
-
Save tillz/41f50e744b3230f53fe420119034af1c to your computer and use it in GitHub Desktop.
OpenWRT/Lede AP: Drop FritzBox Homeplug Broadcasts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Notes: AVM's FritzBox-Routers normally generate broadcast Homeplug-AV | |
# pakets nearly every second (used to allow for PnP-setup of these devices). | |
# As these pakets are responsible for a significant amount of Airtime, | |
# these should be blocked. | |
# Additionally, broadcast pakets on wifi prevent many devices from sleeping, | |
# and need to be transferred in legacy-rates, further bloating up the amount of wasted airtime. | |
# This script assumes the OpenWRT APs are 'dumb APs', whith a L2-Bridge between | |
# the wired and the wireless interfaces, were ebtables can block pakets based | |
# on their ethertype. (To check: ifconfig should only show wlan*, eth*, br-lan and lo interfaces) | |
opkg update | |
opkg install ebtables | |
cat <<EOF >> /etc/firewall.user | |
ebtables -A FORWARD -p 88e1 -j DROP | |
ebtables -A FORWARD -p 8912 -j DROP | |
EOF | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Check whether the rules work:
ebtables -L --Lc
)