1
0
mirror of https://github.com/kenzok8/small-package synced 2025-11-18 01:01:34 +08:00

update 04-07 23:41

This commit is contained in:
github-actions[bot]
2022-04-07 23:41:34 +08:00
parent 60b0cfa48f
commit 02d539a3dd
14 changed files with 152 additions and 50 deletions

View File

@@ -67,7 +67,7 @@ add_rule(){
iptables -t filter -I WEBURL $settime -m string --string "$keyword" --algo $(get_algo_mode $algos) -j DROP
else
iptables -t filter -I WEBURL $settime -m mac --mac-source $macaddr -m string --string "$keyword" --algo $(get_algo_mode $algos) -j DROP
unset "$macaddr"
unset macaddr
fi
fi
done
@@ -79,6 +79,7 @@ start(){
iptables -t filter -N WEBURL
iptables -t filter -I FORWARD -m comment --comment "Rule For Control" -j WEBURL
add_rule
iptables -t filter -I WEBURL -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
}
stop(){
iptables -t filter -D FORWARD -m comment --comment "Rule For Control" -j WEBURL