Replace so-firewall

This commit is contained in:
Mike Reeves
2022-09-20 11:22:20 -04:00
parent 9fffe1b5fa
commit 678d5c5c9c
4 changed files with 14 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/bash
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one # Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at # or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/bash
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one # Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at # or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
@@ -71,6 +71,14 @@ else
exit 1 exit 1
fi fi
# Are we dealing with an IP?
if valid_ip4 "$IP"; then
echo "$IP is valid"
else
echo "$IP is not a valid IP Address"
exit 1
fi
local_salt_dir=/opt/so/saltstack/local/salt/firewall local_salt_dir=/opt/so/saltstack/local/salt/firewall
# Let's see if the file exists and if it does, let's see if the IP exists. # Let's see if the file exists and if it does, let's see if the IP exists.

View File

@@ -1 +1 @@
# Replace this text with the text from the .crt # Replace this text with the text from the .key

View File

@@ -80,6 +80,9 @@ whiptail_title="Security Onion Setup - $SOVERSION"
export whiptail_title export whiptail_title
mkdir -p $local_salt_dir/pillar/minions mkdir -p $local_salt_dir/pillar/minions
mkdir -p $local_salt_dir/salt/firewall/hostgroups
mkdir -p $local_salt_dir/salt/firewall/portgroups
mkdir -p $local_salt_dir/salt/firewall/ports
for THEDIR in bpf pcap elasticsearch ntp firewall redis backup strelka sensoroni curator soc soctopus docker zeek suricata nginx filebeat logstash soc manager kratos idstools idh elastalert for THEDIR in bpf pcap elasticsearch ntp firewall redis backup strelka sensoroni curator soc soctopus docker zeek suricata nginx filebeat logstash soc manager kratos idstools idh elastalert
do do