mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
copy local firewall yaml files during setup - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/641
This commit is contained in:
@@ -745,22 +745,11 @@ fireeye_pillar() {
|
|||||||
# Generate Firewall Templates
|
# Generate Firewall Templates
|
||||||
firewall_generate_templates() {
|
firewall_generate_templates() {
|
||||||
|
|
||||||
local firewall_pillar_path=$local_salt_dir/pillar/firewall
|
local firewall_pillar_path=$local_salt_dir/salt/firewall
|
||||||
mkdir -p "$firewall_pillar_path"
|
mkdir -p "$firewall_pillar_path"
|
||||||
|
|
||||||
for i in analyst beats_endpoint forward_nodes master minions osquery_endpoint search_nodes wazuh_endpoint
|
cp ../files/firewall/* /opt/so/saltstack/local/salt/firewall/ >> "$setup_log" 2>&1
|
||||||
do
|
|
||||||
printf '%s\n'\
|
|
||||||
"firewall:"\
|
|
||||||
" alias:"\
|
|
||||||
" $i:"\
|
|
||||||
" ips:" \
|
|
||||||
" delete:"\
|
|
||||||
" allow:"\
|
|
||||||
" - 127.0.0.1"\
|
|
||||||
"" > "$firewall_pillar_path"/$i.sls
|
|
||||||
echo "Added $i Template"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fleet_pillar() {
|
fleet_pillar() {
|
||||||
|
|||||||
Reference in New Issue
Block a user