Skip to content

Instantly share code, notes, and snippets.

@vfreex
Last active July 31, 2021 02:56
Show Gist options
  • Save vfreex/dc516ed71ea4527bb72dcc5aee3932af to your computer and use it in GitHub Desktop.
Save vfreex/dc516ed71ea4527bb72dcc5aee3932af to your computer and use it in GitHub Desktop.
Disable multicast snooping on ASUS router
  1. Add a script /jffs/my-startup.sh:
#!/bin/sh
# Copyright (C) 2021 Yuxiang Zhu <me@yux.im>

# Disable multicast snooping on br0
cru a br0-no-mcast-snooping "* * * * * /bin/sh -c '/bin/echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping'"
  1. Auto run the script on usb mount:
nvram set script_usbmount="sh /jffs/my-startup.sh"
nvram commit
service reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment