1031
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
set -eu
|
||||
|
||||
/bin/sh /root/stopblock.sh >/dev/null 2>&1 || true
|
||||
sleep 1
|
||||
#grep -q "block" /etc/rc.local || cat /root/rc.local-with > /etc/rc.local
|
||||
grep -qi "block" /etc/rc.local || sed -i '/^exit 0$/i\/root/startblock.sh' /etc/rc.local
|
||||
|
||||
LAN_IF="br-lan"
|
||||
LAN_NET="192.168.2.0/24"
|
||||
@@ -62,3 +65,4 @@ done
|
||||
iptables -I FORWARD 1 -i "$LAN_IF" -s "$LAN_NET" -j CAPTIVE_BLOCK
|
||||
|
||||
echo "OK: filter rules applied"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user