ASUSWRT-Merlin RT-AC88U 380.70-0 Sun Apr 8 18:06:08 UTC 2018
router@asus:/tmp/home/root# nano /jffs/scripts/firewall-start
#Source: https://www.snbforums.com/threads/option-to-disable-wirless-login.47786/page-3#post-418798
ebtables -D INPUT -i eth1 -p ip4 --ip-protocol tcp --ip-destination $(nvram get lan_ipaddr) --ip-destination-port 80 -j DROP
ebtables -I INPUT -i eth1 -p ip4 --ip-protocol tcp --ip-destination $(nvram get lan_ipaddr) --ip-destination-port 80 -j DROP
ebtables -D INPUT -i eth2 -p ip4 --ip-protocol tcp --ip-destination $(nvram get lan_ipaddr) --ip-destination-port 80 -j DROP
ebtables -I INPUT -i eth2 -p ip4 --ip-protocol tcp --ip-destination $(nvram get lan_ipaddr) --ip-destination-port 80 -j DROP
router@asus:/tmp/home/root# nvram get gmac3_enable
1
router@asus:/tmp/home/root# nvram get fwd_wlandevs
eth2
router@asus:/tmp/home/root#
#setting stop_gmac3=1
router@asus:/tmp/home/root# nvram set stop_gmac3=1
router@asus:/tmp/home/root# nvram commit
router@asus:/tmp/home/root# reboot
#after reboot
router@asus:/tmp/home/root# nvram get gmac3_enable
0
router@asus:/tmp/home/root# ebtables -t filter -L --Lmac2 --Lc --Ln
Bridge table: filter
Bridge chain: INPUT, entries: 2, policy: ACCEPT
1. -p IPv4 -i eth2 --ip-dst 192.168.0.1 --ip-proto tcp --ip-dport 80 -j DROP , pcnt = 14 -- bcnt = 840
2. -p IPv4 -i eth1 --ip-dst 192.168.0.1 --ip-proto tcp --ip-dport 80 -j DROP , pcnt = 16 -- bcnt = 960
Bridge chain: FORWARD, entries: 0, policy: ACCEPT
Bridge chain: OUTPUT, entries: 0, policy: ACCEPT
router@asus:/tmp/home/root#