Fix iptables command
This commit is contained in:
parent
60e68289e6
commit
433f098d3d
|
@ -116,8 +116,8 @@ function run_iptables() {
|
||||||
iptables -F
|
iptables -F
|
||||||
ipset destroy blockauth 2> /dev/null
|
ipset destroy blockauth 2> /dev/null
|
||||||
ipset create blockauth hash:ip
|
ipset create blockauth hash:ip
|
||||||
iptables -A INPUT -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 -A OUTPUT -p tcp -m multiport --sports ${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
|
# Reset initial configuration
|
||||||
|
|
Loading…
Reference in New Issue
Block a user