Run blocking rules after adding a new rule
This commit is contained in:
parent
267ff1f8a2
commit
24f4f043f2
|
@ -15,7 +15,7 @@
|
|||
# License
|
||||
# =======
|
||||
#
|
||||
# Copyright (C) 2014-2016 Bob Mottram <bob@freedombone.net>
|
||||
# Copyright (C) 2014-2017 Bob Mottram <bob@freedombone.net>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
|
@ -448,6 +448,14 @@ function firewall_block_domain {
|
|||
iptables -I FORWARD -p tcp --dport 53 -m string --hex-string "$hexstr" --algo bm -j DROP
|
||||
echo "${blocked_domain}" >> $FIREWALL_DOMAINS
|
||||
save_firewall_settings
|
||||
|
||||
# run the blocking rules now
|
||||
if [ -f /usr/bin/gnusocial-firewall ]; then
|
||||
/usr/bin/gnusocial-firewall
|
||||
fi
|
||||
if [ -f /usr/bin/postactiv-firewall ]; then
|
||||
/usr/bin/postactiv-firewall
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue