Skip to content
Snippets Groups Projects
Commit 24f4f043 authored by Bob Mottram's avatar Bob Mottram
Browse files

Run blocking rules after adding a new rule

parent 267ff1f8
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment