mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba81b7275a | ||
|
|
a1791f1e2e | ||
|
|
a74d52a986 | ||
|
|
1022bf5b99 |
@@ -1,3 +1,8 @@
|
|||||||
|
## Hybrid Hunter Beta 1.4.1 - Beta 3
|
||||||
|
|
||||||
|
- Fix install script to handle hostnames properly.
|
||||||
|
|
||||||
|
|
||||||
## Hybrid Hunter Beta 1.4.0 - Beta 3
|
## Hybrid Hunter Beta 1.4.0 - Beta 3
|
||||||
|
|
||||||
- Complete overhaul of the way we handle custom and default settings and data. You will now see a default and local directory under the saltstack directory. All customizations are stored in local.
|
- Complete overhaul of the way we handle custom and default settings and data. You will now see a default and local directory under the saltstack directory. All customizations are stored in local.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"title": "Introducing Hybrid Hunter 1.4.0 Beta 3",
|
"title": "Introducing Hybrid Hunter 1.4.1 Beta 3",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
{ "summary": "Fix install script to handle hostnames properly." },
|
||||||
{ "summary": "Complete overhaul of the way we handle custom and default settings and data. You will now see a default and local directory under the saltstack directory. All customizations are stored in local." },
|
{ "summary": "Complete overhaul of the way we handle custom and default settings and data. You will now see a default and local directory under the saltstack directory. All customizations are stored in local." },
|
||||||
{ "summary": "The way firewall rules are handled has been completely revamped. This will allow the user to customize firewall rules much easier." },
|
{ "summary": "The way firewall rules are handled has been completely revamped. This will allow the user to customize firewall rules much easier." },
|
||||||
{ "summary": "Users can now change their own password in SOC." },
|
{ "summary": "Users can now change their own password in SOC." },
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ source ./so-whiptail
|
|||||||
source ./so-variables
|
source ./so-variables
|
||||||
source ./so-common-functions
|
source ./so-common-functions
|
||||||
|
|
||||||
SOVERSION=1.4.0
|
SOVERSION=1.4.1
|
||||||
|
|
||||||
accept_salt_key_remote() {
|
accept_salt_key_remote() {
|
||||||
systemctl restart salt-minion
|
systemctl restart salt-minion
|
||||||
|
|||||||
@@ -951,16 +951,23 @@ whiptail_set_hostname() {
|
|||||||
|
|
||||||
HOSTNAME=$(cat /etc/hostname)
|
HOSTNAME=$(cat /etc/hostname)
|
||||||
|
|
||||||
|
if [[ "$HOSTNAME" == *'localhost'* ]]; then HOSTNAME=securityonion; fi
|
||||||
|
|
||||||
HOSTNAME=$(whiptail --title "Security Onion Setup" --inputbox \
|
HOSTNAME=$(whiptail --title "Security Onion Setup" --inputbox \
|
||||||
"Enter the Hostname you would like to set." 10 75 "$HOSTNAME" 3>&1 1>&2 2>&3)
|
"Enter the hostname (not FQDN) you would like to set." 10 75 "$HOSTNAME" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
whiptail_check_exitstatus $exitstatus
|
whiptail_check_exitstatus $exitstatus
|
||||||
|
|
||||||
while [[ "$HOSTNAME" == *'localhost'* ]] ; do
|
while [[ $HOSTNAME == *'localhost'* || ! ( $HOSTNAME =~ ^[a-zA-Z0-9\-]*$ ) ]] ; do
|
||||||
whiptail --title "Security Onion Setup" --msgbox "Please choose a hostname that doesn't contain localhost." 8 75
|
local error_message
|
||||||
|
error_message=$(echo "Please choose a valid hostname. It cannot contain localhost; and must contain only \
|
||||||
|
the ASCII letters 'a' through 'z' (case-insensitive), the digits '0' through '9', \
|
||||||
|
and hyphen ('-')" | tr -d '\t')
|
||||||
|
whiptail --title "Security Onion Setup" \
|
||||||
|
--msgbox "$error_message" 10 75
|
||||||
HOSTNAME=$(whiptail --title "Security Onion Setup" --inputbox \
|
HOSTNAME=$(whiptail --title "Security Onion Setup" --inputbox \
|
||||||
"Enter the Hostname you would like to set." 10 75 "$HOSTNAME" 3>&1 1>&2 2>&3)
|
"Enter the hostname (not FQDN) you would like to set." 10 75 "$HOSTNAME" 3>&1 1>&2 2>&3)
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
whiptail_check_exitstatus $exitstatus
|
whiptail_check_exitstatus $exitstatus
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user