Fix iptables command

This commit is contained in:
q3aql 2024-04-16 23:06:00 +02:00
parent 60e68289e6
commit 433f098d3d

View File

@ -116,8 +116,8 @@ function run_iptables() {
iptables -F
ipset destroy blockauth 2> /dev/null
ipset create blockauth hash:ip
iptables -A INPUT -p tcp -m multiport --sports ${1} -m set --match-set blockauth src -j DROP
iptables -A OUTPUT -p tcp -m multiport --sports ${1} -m set --match-set blockauth src -j DROP
iptables -I INPUT -p tcp -m multiport --dports ${1} -m set --match-set blockauth src -j DROP
iptables -I OUTPUT -p tcp -m multiport --dports ${1} -m set --match-set blockauth src -j DROP
}
# Reset initial configuration