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
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
@@ -71,6 +71,14 @@ else
exit 1
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
# Let's see if the file exists and if it does, let's see if the IP exists.