final version

This commit is contained in:
2024-11-08 21:19:14 +03:00
parent ff77ed1204
commit c0e8c94a56
6 changed files with 23 additions and 2 deletions

View File

@@ -4,18 +4,20 @@
INTERFACE=$(ip -br a | grep -E "172.28" | awk '{print $1}') || \
exit 0
source .env
echo -E "
[options]
Interface = ${INTERFACE%@*}
[openNGINX]
sequence = 8100, 7200, 13000
sequence = ${OPEN_PORT_SEQ}
seq_timeout = 5
command = /sbin/iptables -D INPUT -p tcp --dport 80 -j REJECT
tcpflags = syn
[closeNGINX]
sequence = 6300, 5200, 12001
sequence = ${CLOSE_PORT_SEQ}
seq_timeout = 5
command = /sbin/iptables -A INPUT -p tcp --dport 80 -j REJECT
tcpflags = syn