final version
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user