Skip to content

Instantly share code, notes, and snippets.

@tillz
Created September 26, 2020 10:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tillz/41f50e744b3230f53fe420119034af1c to your computer and use it in GitHub Desktop.
Save tillz/41f50e744b3230f53fe420119034af1c to your computer and use it in GitHub Desktop.
OpenWRT/Lede AP: Drop FritzBox Homeplug Broadcasts
#!/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
@tillz
Copy link
Author

tillz commented Sep 26, 2020

(Check whether the rules work: ebtables -L --Lc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment