aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2018-07-16 12:11:35 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2018-07-16 12:11:35 -0800
commit6c4a9f940c69c04e8a6d961a3a2429afdad42eb5 (patch)
treef060c120671451ecdd3f09b6d6ab9ffb77107f79 /src
parente6db462c1a4958755a275b92f1e7c63d0bed2157 (diff)
downloadbbfw-6c4a9f940c69c04e8a6d961a3a2429afdad42eb5.tar.gz
bbfw-6c4a9f940c69c04e8a6d961a3a2429afdad42eb5.tar.bz2
bbfw-6c4a9f940c69c04e8a6d961a3a2429afdad42eb5.tar.xz
bbfw-6c4a9f940c69c04e8a6d961a3a2429afdad42eb5.zip
Changing order so global rules are applied last
Diffstat (limited to 'src')
-rwxr-xr-xsrc/slack/rc.firewall.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/slack/rc.firewall.in b/src/slack/rc.firewall.in
index 4179255..76ae153 100755
--- a/src/slack/rc.firewall.in
+++ b/src/slack/rc.firewall.in
@@ -49,10 +49,6 @@
49# /etc/firewall.d/ipsets - host specific IP sets 49# /etc/firewall.d/ipsets - host specific IP sets
50# /etc/firewall.d/apps.d/*.ipsets - app specific IP sets 50# /etc/firewall.d/apps.d/*.ipsets - app specific IP sets
51# 51#
52# /etc/firewall.d/global4 - centrally maintained IPv4 rules
53# /etc/firewall.d/global6 - centrally maintained IPv6 rules
54# /etc/firewall.d/global - centrally maintained IPv4/IPv6 rules
55#
56# /etc/firewall.d/cluster/rules4 - cluster specific IPv4 firewall rules 52# /etc/firewall.d/cluster/rules4 - cluster specific IPv4 firewall rules
57# /etc/firewall.d/cluster/rules6 - cluster specific IPv6 firewall rules 53# /etc/firewall.d/cluster/rules6 - cluster specific IPv6 firewall rules
58# /etc/firewall.d/cluster/rules - cluster specific IPv4/IPv6 firewall rules 54# /etc/firewall.d/cluster/rules - cluster specific IPv4/IPv6 firewall rules
@@ -65,6 +61,10 @@
65# /etc/firewall.d/apps.d/*.rules6 - app specific IPv6 firewall rules 61# /etc/firewall.d/apps.d/*.rules6 - app specific IPv6 firewall rules
66# /etc/firewall.d/apps.d/*.rules - app specific IPv4/IPv6 firewall rules 62# /etc/firewall.d/apps.d/*.rules - app specific IPv4/IPv6 firewall rules
67# 63#
64# /etc/firewall.d/global4 - centrally maintained IPv4 rules
65# /etc/firewall.d/global6 - centrally maintained IPv6 rules
66# /etc/firewall.d/global - centrally maintained IPv4/IPv6 rules
67#
68# /etc/firewall.d/global-post - centrally maintained post-hook script 68# /etc/firewall.d/global-post - centrally maintained post-hook script
69# /etc/firewall.d/cluster/rules-post - host specific post-hook script 69# /etc/firewall.d/cluster/rules-post - host specific post-hook script
70# /etc/firewall.d/rules-post - host specific post-hook script 70# /etc/firewall.d/rules-post - host specific post-hook script
@@ -197,12 +197,6 @@ start() {
197 load ipset ${FILE} "adding IP sets (App: $(basename ${FILE})) ..." 197 load ipset ${FILE} "adding IP sets (App: $(basename ${FILE})) ..."
198 done 198 done
199 199
200 # apply company policy for firewall rules
201 load iptables ${FW_PREFIX}global4 "adding IPv4 global rules"
202 load ip6tables ${FW_PREFIX}global6 "adding IPv6 global rules"
203 load iptables ${FW_PREFIX}global "adding IPv4/IPv6 global rules"
204 load ip6tables ${FW_PREFIX}global
205
206 # apply cluster specific firewall rules 200 # apply cluster specific firewall rules
207 load iptables ${FW_PREFIX}cluster/rules4 "adding IPv4 cluster rules" 201 load iptables ${FW_PREFIX}cluster/rules4 "adding IPv4 cluster rules"
208 load ip6tables ${FW_PREFIX}cluster/rules6 "adding IPv6 cluster rules" 202 load ip6tables ${FW_PREFIX}cluster/rules6 "adding IPv6 cluster rules"
@@ -247,6 +241,12 @@ start() {
247 done 241 done
248 fi 242 fi
249 243
244 # apply company policy for firewall rules
245 load iptables ${FW_PREFIX}global4 "adding IPv4 global rules"
246 load ip6tables ${FW_PREFIX}global6 "adding IPv6 global rules"
247 load iptables ${FW_PREFIX}global "adding IPv4/IPv6 global rules"
248 load ip6tables ${FW_PREFIX}global
249
250 # run post-hooks 250 # run post-hooks
251 run_hook start ${FW_PREFIX}global-post "running global post-hook start ..." 251 run_hook start ${FW_PREFIX}global-post "running global post-hook start ..."
252 run_hook start ${FW_PREFIX}cluster/rules-post "running cluster post-hook start ..." 252 run_hook start ${FW_PREFIX}cluster/rules-post "running cluster post-hook start ..."