add "nolog" option
This commit is contained in:
parent
f0ba9ab2fe
commit
173f4db0f9
@ -111,7 +111,9 @@ for url in $urls; do
|
|||||||
# actually execute the set update
|
# actually execute the set update
|
||||||
ipset -! -q restore < "${new_set_file}"
|
ipset -! -q restore < "${new_set_file}"
|
||||||
|
|
||||||
|
if [ "$1" != "nolog" ]; then
|
||||||
iptables -A ${blocklist_chain_name} -m set --match-set "${set_name}" src,dst -m limit --limit 10/minute -j LOG --log-prefix "BLOCK ${set_name} "
|
iptables -A ${blocklist_chain_name} -m set --match-set "${set_name}" src,dst -m limit --limit 10/minute -j LOG --log-prefix "BLOCK ${set_name} "
|
||||||
|
fi
|
||||||
iptables -A ${blocklist_chain_name} -m set --match-set "${set_name}" src,dst -j DROP
|
iptables -A ${blocklist_chain_name} -m set --match-set "${set_name}" src,dst -j DROP
|
||||||
|
|
||||||
# clean up temp files
|
# clean up temp files
|
||||||
|
Loading…
Reference in New Issue
Block a user