diff --git a/pillar/firewall/addfirewall.sh b/pillar/firewall/addfirewall.sh index eadb31fa2..084006f5a 100644 --- a/pillar/firewall/addfirewall.sh +++ b/pillar/firewall/addfirewall.sh @@ -8,6 +8,6 @@ IPADDRESS=$2 if grep -q $2 "/opt/so/saltstack/pillar/firewall/$1.sls"; then echo "Firewall Rule Already There" else - echo " - $2" >> /opt/so/saltstack/pillar/firewall/$1.sls + echo " - $2" >> /opt/so/saltstack/pillar/firewall/$1.sls salt-call state.apply firewall queue=True fi diff --git a/setup/so-functions b/setup/so-functions index 0e8c650ca..6ec9815de 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -718,7 +718,9 @@ firewall_generate_templates() { " alias:"\ " $i:"\ " ips:" \ - " - 127.0.0.1"\ + " delete:"\ + " allow:"\ + " - 127.0.0.1"\ "" > "$firewall_pillar_path"/$i.sls echo "Added $i Template" done