|
@@ -19,10 +19,6 @@ create_tables() {
|
|
|
ipset create -! $banset hash:ip hashsize 4096 timeout $bantime
|
|
ipset create -! $banset hash:ip hashsize 4096 timeout $bantime
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-activate() {
|
|
|
|
|
- iptables-save > /etc/iptables/iptables.rules
|
|
|
|
|
- systemctl restart iptables.service
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
create_wandroplog() {
|
|
create_wandroplog() {
|
|
|
#iptables -A WANDROPLOG -p tcp -m limit --limit 5/min -j LOG --log-prefix "WANDROPLOG TCP: " --log-level 7
|
|
#iptables -A WANDROPLOG -p tcp -m limit --limit 5/min -j LOG --log-prefix "WANDROPLOG TCP: " --log-level 7
|
|
@@ -100,4 +96,3 @@ create_wandroplog
|
|
|
setup_nat
|
|
setup_nat
|
|
|
setup_input
|
|
setup_input
|
|
|
setup_forward
|
|
setup_forward
|
|
|
-#activate
|
|
|