Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@so-hh-eval-centos:code/securityonion-saltstack# bash -x so-setup-network.sh
- ++ cat /etc/hostname
- + HOSTNAME=so-hh-eval-centos.dev.example.org
- ++ sed -r 's/.{3}$//'
- ++ grep MemTotal /proc/meminfo
- ++ awk '{print $2}'
- + TOTAL_MEM=3878
- ++ ip link
- ++ awk -F: '$0 !~ "lo|vir|veth|br|docker|wl|^[^0-9]"{print $2 " \"" "Interface" "\"" " OFF"}'
- + NICS=' eth0 "Interface" OFF
- eth1 "Interface" OFF
- bond0 "Interface" OFF'
- ++ cat /proc/cpuinfo
- ++ grep processor
- ++ wc -l
- + CPUCORES=2
- ++ cat /proc/cpuinfo
- ++ grep processor
- ++ awk '{print $3 " \"" "core" "\""}'
- + LISTCORES='0 "core"
- 1 "core"'
- ++ cat /dev/urandom
- ++ tr -dc a-zA-Z0-9
- ++ fold -w 16
- ++ head -n 1
- + RANDOMUID=XYiDvQmcZHEMUi5z
- + NODE_ES_PORT=9200
- + got_root
- ++ id -u
- + '[' 0 -ne 0 ']'
- + detect_os
- + echo 'Detecting Base OS'
- Detecting Base OS
- + '[' -f /etc/redhat-release ']'
- + OS=centos
- + yum -y install bind-utils
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: mirrors.advancedhosters.com
- * epel: d2lzkl7pfhq30w.cloudfront.net
- * extras: mirrors.advancedhosters.com
- * updates: repos-va.psychz.net
- Package 32:bind-utils-9.9.4-73.el7_6.x86_64 already installed and latest version
- Nothing to do
- + '[' centos == ubuntu ']'
- + whiptail_you_sure
- + whiptail --title 'Security Onion Setup' --yesno 'Are you sure you want to install Security Onion over the internet?' 8 78
- + install_prep
- + mkdir /root/installtmp
- + TMP=/root/installtmp
- + whiptail_network_notice
- + whiptail --title 'Security Onion Setup' --yesno 'Since this is a network install we assume the management interface, DNS, Hostname, etc are already set up. Hit YES to continue.' 8 78
- + local exitstatus=0
- + whiptail_check_exitstatus 0
- + '[' 0 == 1 ']'
- + whiptail_install_type
- ++ whiptail --title 'Security Onion Setup' --radiolist 'Choose Install Type:' 20 78 14 SENSORONLY 'Create a forward only sensor' ON STORAGENODE 'Add a Storage Hot Node with parsing' OFF MASTERONLY 'Start a new grid' OFF PARSINGNODE 'TODO Add a dedicated Parsing Node' OFF HOTNODE 'TODO Add a Hot Node (Storage Node without Parsing)' OFF WARMNODE 'TODO Add a Warm Node to an existing Hot or Storage node' OFF EVALMODE 'Evaluate all the things' OFF WAZUH 'TODO Stand Alone Wazuh Node' OFF STRELKA 'TODO Stand Alone Strelka Node' OFF FLEET 'TODO Stand Alone Fleet OSQuery Node' OFF
- + INSTALLTYPE=EVALMODE
- + local exitstatus=0
- + whiptail_check_exitstatus 0
- + '[' 0 == 1 ']'
- + '[' EVALMODE == MASTERONLY ']'
- + '[' EVALMODE == SENSORONLY ']'
- + '[' EVALMODE == EVALMODE ']'
- + whiptail_management_nic
- ++ whiptail --title 'NIC Setup' --radiolist 'Please select your management NIC' 20 78 12 eth0 '"Interface"' OFF eth1 '"Interface"' OFF bond0 '"Interface"' OFF
- + MNIC=eth0
- + local exitstatus=0
- + whiptail_check_exitstatus 0
- + '[' 0 == 1 ']'
- + filter_nics
- ++ ip link
- ++ grep -vw eth0
- ++ awk -F: '$0 !~ "lo|vir|veth|br|docker|wl|^[^0-9]"{print $2 " \"" "Interface" "\"" " OFF"}'
- + FNICS=' eth1 "Interface" OFF
- bond0 "Interface" OFF'
- + whiptail_bond_nics
- ++ whiptail --title 'NIC Setup' --checklist 'Please add NICs to the Monitor Interface' 20 78 12 eth1 '"Interface"' OFF bond0 '"Interface"' OFF
- + BNICS='"eth1"'
- + local exitstatus=0
- + whiptail_check_exitstatus 0
- + '[' 0 == 1 ']'
- + whiptail_homenet_master
- ++ whiptail --title 'Security Onion Setup' --inputbox 'Enter your HOME_NET separated by ,' 10 60 10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
- + HNMASTER=10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
- + local exitstatus=0
- + whiptail_check_exitstatus 0
- + '[' 0 == 1 ']'
- + es_heapsize
- + '[' 3878 -lt 8000 ']'
- + ES_HEAP_SIZE=600m
- + ls_heapsize
- + '[' 3878 -ge 16000 ']'
- + LS_HEAP_SIZE=2g
- + NODE_ES_HEAP_SIZE=600m
- + NODE_LS_HEAP_SIZE=2g
- + LSPIPELINEWORKERS=1
- + LSPIPELINEBATCH=125
- + LSINPUTTHREADS=1
- + LSINPUTBATCHCOUNT=125
- + RULESETUP=ETOPEN
- + NSMSETUP=BASIC
- + NIDS=Suricata
- + BROVERSION=ZEEK
- + CURCLOSEDAYS=30
- + whiptail_make_changes
- + whiptail --title 'Security Onion Setup' --yesno 'We are going to set this machine up as a EVALMODE. Please hit YES to make changes or NO to cancel.' 8 78
- + local exitstatus=0
- + whiptail_check_exitstatus 0
- + '[' 0 == 1 ']'
- + generate_passwords
- ++ fold -w 20
- ++ cat /dev/urandom
- ++ tr -dc a-zA-Z0-9
- ++ head -n 1
- + MYSQLPASS=kQ5nkiDyv6zYannqV9kk
- ++ tr -dc a-zA-Z0-9
- ++ cat /dev/urandom
- ++ fold -w 20
- ++ head -n 1
- + FLEETPASS=B4lWpzpz8emzDoal1pKI
- + auth_pillar
- + '[' '!' -f /opt/so/saltstack/pillar/auth.sls ']'
- + clear_master
- + '[' -f /etc/salt/pki/minion/minion_master.pub ']'
- + rm /etc/salt/pki/minion/minion_master.pub
- + service salt-minion restart
- Redirecting to /bin/systemctl restart salt-minion.service
- + mkdir -p /nsm
- + get_filesystem_root
- ++ df /
- ++ awk '$3 ~ /[0-9]+/ { print $2 * 1000 }'
- + FSROOT=8377344000
- + get_filesystem_nsm
- ++ awk '$3 ~ /[0-9]+/ { print $2 * 1000 }'
- ++ df /nsm
- + FSNSM=8377344000
- + get_log_size_limit
- + DISK_DIR=/
- + '[' -d /nsm ']'
- + DISK_DIR=/nsm
- ++ df /nsm
- ++ grep -v '^Filesystem'
- ++ awk '{print $2}'
- + DISK_SIZE_K=8377344
- + PERCENTAGE=85
- + DISK_SIZE='DISK_SIZE_K*1000'
- ++ echo 7120742400
- + PERCENTAGE_DISK_SPACE=7120742400
- + LOG_SIZE_LIMIT=7
- + get_main_ip
- ++ ip route get 1
- ++ awk '{print $NF;exit}'
- + MAINIP=10.0.194.112
- ++ ip route get 1
- ++ awk '{print $5;exit}'
- + MAININT=eth0
- + echo ''
- + echo '**** Please set a password for socore. You will use this password when setting up other Nodes/Sensors'
- **** Please set a password for socore. You will use this password when setting up other Nodes/Sensors
- + echo ''
- + add_socore_user_master
- + '[' centos == centos ']'
- + local ADDUSER=adduser
- + groupadd --gid 939 socore
- groupadd: group 'socore' already exists
- + adduser --uid 939 --gid 939 --home-dir /opt/so socore
- adduser: user 'socore' already exists
- + passwd socore
- Changing password for user socore.
- New password:
- BAD PASSWORD: The password contains more than 2 characters of the same class consecutively
- Retype new password:
- passwd: all authentication tokens updated successfully.
- + create_bond
- + echo 'Setting up Bond'
- Setting up Bond
- + '[' BASIC '!=' ADVANCED ']'
- + MTU=1500
- + '[' centos == centos ']'
- + modprobe --first-time bonding
- modprobe: ERROR: could not insert 'bonding': Module already in kernel
- + touch /etc/sysconfig/network-scripts/ifcfg-bond0
- + echo DEVICE=bond0
- + echo NAME=bond0
- + echo Type=Bond
- + echo BONDING_MASTER=yes
- + echo BOOTPROTO=none
- + echo 'BONDING_OPTS="mode=0"'
- + echo ONBOOT=yes
- + echo MTU=1500
- + for BNIC in '${BNICS[@]}'
- + BONDNIC='"eth1'
- + BONDNIC=eth1
- + sed -i s/ONBOOT=no/ONBOOT=yes/g /etc/sysconfig/network-scripts/ifcfg-eth1
- + echo MASTER=bond0
- + echo SLAVE=yes
- + echo MTU=1500
- + nmcli con reload
- + systemctl restart network
- Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
- + saltify
- + '[' centos == centos ']'
- + ADDUSER=adduser
- + '[' EVALMODE == MASTERONLY ']'
- + '[' EVALMODE == EVALMODE ']'
- + yum -y install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
- Loaded plugins: fastestmirror
- salt-repo-latest-2.el7.noarch.rpm | 5.6 kB 00:00:00
- Examining /var/tmp/yum-root-FJJ7HL/salt-repo-latest-2.el7.noarch.rpm: salt-repo-latest-2.el7.noarch
- Marking /var/tmp/yum-root-FJJ7HL/salt-repo-latest-2.el7.noarch.rpm to be installed
- Resolving Dependencies
- --> Running transaction check
- ---> Package salt-repo.noarch 0:latest-2.el7 will be installed
- --> Finished Dependency Resolution
- --> Finding unneeded leftover dependencies
- Found and removing 0 unneeded dependencies
- Dependencies Resolved
- =====================================================================================================================================================================================
- Package Arch Version Repository Size
- =====================================================================================================================================================================================
- Installing:
- salt-repo noarch latest-2.el7 /salt-repo-latest-2.el7.noarch 3.6 k
- Transaction Summary
- =====================================================================================================================================================================================
- Install 1 Package
- Total size: 3.6 k
- Installed size: 3.6 k
- Downloading packages:
- Package salt-repo-latest-2.el7.noarch.rpm is not signed
- + cat
- + yum clean expire-cache
- Loaded plugins: fastestmirror
- Cleaning repos: base docker-ce-stable epel extras updates wazuh_repo
- 9 metadata files removed
- + yum -y install salt-minion yum-utils device-mapper-persistent-data lvm2 openssl
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- epel/x86_64/metalink | 17 kB 00:00:00
- * base: mirrors.advancedhosters.com
- * epel: d2lzkl7pfhq30w.cloudfront.net
- * extras: mirror.cs.pitt.edu
- * updates: repos-va.psychz.net
- base/7/x86_64/signature | 811 B 00:00:00
- base/7/x86_64/signature | 3.6 kB 00:00:00 !!!
- docker-ce-stable/x86_64/signature | 819 B 00:00:00
- docker-ce-stable/x86_64/signature | 3.5 kB 00:00:00 !!!
- epel | 4.7 kB 00:00:00
- extras/7/x86_64/signature | 811 B 00:00:00
- extras/7/x86_64/signature | 3.4 kB 00:00:00 !!!
- updates/7/x86_64/signature | 811 B 00:00:00
- updates/7/x86_64/signature | 3.4 kB 00:00:00 !!!
- wazuh_repo/signature | 836 B 00:00:00
- wazuh_repo/signature | 3.4 kB 00:00:00 !!!
- extras/7/x86_64/primary_db | 179 kB 00:00:00
- Package salt-minion-2015.5.10-2.el7.noarch already installed and latest version
- Package yum-utils-1.1.31-50.el7.noarch already installed and latest version
- Package device-mapper-persistent-data-0.7.3-3.el7.x86_64 already installed and latest version
- Package 7:lvm2-2.02.180-10.el7_6.3.x86_64 already installed and latest version
- Package 1:openssl-1.0.2k-16.el7.x86_64 already installed and latest version
- Nothing to do
- + yum -y update
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: mirrors.advancedhosters.com
- * epel: d2lzkl7pfhq30w.cloudfront.net
- * extras: mirror.cc.columbia.edu
- * updates: repos-va.psychz.net
- Resolving Dependencies
- --> Running transaction check
- ---> Package python-docker-py.noarch 1:1.10.6-7.el7 will be updated
- ---> Package python-docker-py.noarch 1:1.10.6-8.el7_6 will be an update
- ---> Package python-docker-pycreds.noarch 1:0.3.0-7.el7 will be updated
- ---> Package python-docker-pycreds.noarch 1:0.3.0-8.el7_6 will be an update
- --> Finished Dependency Resolution
- --> Finding unneeded leftover dependencies
- Found and removing 0 unneeded dependencies
- Dependencies Resolved
- =====================================================================================================================================================================================
- Package Arch Version Repository Size
- =====================================================================================================================================================================================
- Updating:
- python-docker-py noarch 1:1.10.6-8.el7_6 extras 102 k
- python-docker-pycreds noarch 1:0.3.0-8.el7_6 extras 20 k
- Transaction Summary
- =====================================================================================================================================================================================
- Upgrade 2 Packages
- Total download size: 122 k
- Downloading packages:
- (1/2): python-docker-py-1.10.6-8.el7_6.noarch.rpm | 102 kB 00:00:00
- (2/2): python-docker-pycreds-0.3.0-8.el7_6.noarch.rpm | 20 kB 00:00:00
- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Total 614 kB/s | 122 kB 00:00:00
- Running transaction check
- Running transaction test
- Transaction test succeeded
- Running transaction
- Updating : 1:python-docker-pycreds-0.3.0-8.el7_6.noarch 1/4
- Updating : 1:python-docker-py-1.10.6-8.el7_6.noarch 2/4
- Cleanup : 1:python-docker-py-1.10.6-7.el7.noarch 3/4
- Cleanup : 1:python-docker-pycreds-0.3.0-7.el7.noarch 4/4
- Verifying : 1:python-docker-pycreds-0.3.0-8.el7_6.noarch 1/4
- Verifying : 1:python-docker-py-1.10.6-8.el7_6.noarch 2/4
- Verifying : 1:python-docker-pycreds-0.3.0-7.el7.noarch 3/4
- Verifying : 1:python-docker-py-1.10.6-7.el7.noarch 4/4
- Updated:
- python-docker-py.noarch 1:1.10.6-8.el7_6 python-docker-pycreds.noarch 1:0.3.0-8.el7_6
- Complete!
- + systemctl enable salt-minion
- + '[' EVALMODE == MASTERONLY ']'
- + '[' EVALMODE == EVALMODE ']'
- + yum -y install salt-master python-m2crypto salt-minion m2crypto
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: mirrors.advancedhosters.com
- * epel: d2lzkl7pfhq30w.cloudfront.net
- * extras: mirror.cc.columbia.edu
- * updates: repos-va.psychz.net
- Package salt-master-2015.5.10-2.el7.noarch already installed and latest version
- No package python-m2crypto available.
- Package salt-minion-2015.5.10-2.el7.noarch already installed and latest version
- Package m2crypto-0.21.1-17.el7.x86_64 already installed and latest version
- Nothing to do
- + systemctl enable salt-master
- + docker_install
- + '[' centos == centos ']'
- + yum clean expire-cache
- Loaded plugins: fastestmirror
- Cleaning repos: base docker-ce-stable epel extras updates wazuh_repo
- 9 metadata files removed
- + yum -y install yum-utils device-mapper-persistent-data lvm2 openssl
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=genclo error was
- 14: curl#7 - "Failed to connect to 2607:f8f8:700:12::10: Network is unreachable"
- One of the configured repositories failed (Unknown),
- and yum doesn't have enough cached data to continue. At this point the only
- safe thing yum can do is fail. There are a few ways to work "fix" this:
- 1. Contact the upstream for the repository and get them to fix the problem.
- 2. Reconfigure the baseurl/etc. for the repository, to point to a working
- upstream. This is most often useful if you are using a newer
- distribution release than is supported by the repository (and the
- packages for the previous distribution release still work).
- 3. Run the command with the repository temporarily disabled
- yum --disablerepo=<repoid> ...
- 4. Disable the repository permanently, so yum won't use it by default. Yum
- will then just ignore the repository until you permanently enable it
- again or use --enablerepo for temporary usage:
- yum-config-manager --disable <repoid>
- or
- subscription-manager repos --disable=<repoid>
- 5. Configure the failing repository to be skipped, if it is unavailable.
- Note that yum will try to contact the repo. when it runs most commands,
- so will have to try and fail each time (and thus. yum will be be much
- slower). If it is a very temporary problem though, this is often a nice
- compromise:
- yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
- Cannot find a valid baseurl for repo: base/7/x86_64
- + yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- Loaded plugins: fastestmirror
- adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
- grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
- repo saved to /etc/yum.repos.d/docker-ce.repo
- + yum -y update
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- epel/x86_64/metalink | 17 kB 00:00:00
- * base: mirrors.advancedhosters.com
- * epel: d2lzkl7pfhq30w.cloudfront.net
- * extras: mirror.cc.columbia.edu
- * updates: repos-va.psychz.net
- base/7/x86_64/signature | 811 B 00:00:00
- base/7/x86_64/signature | 3.6 kB 00:00:00 !!!
- docker-ce-stable/x86_64/signature | 819 B 00:00:00
- docker-ce-stable/x86_64/signature | 3.5 kB 00:00:00 !!!
- epel | 4.7 kB 00:00:00
- extras/7/x86_64/signature | 811 B 00:00:00
- extras/7/x86_64/signature | 3.4 kB 00:00:00 !!!
- updates/7/x86_64/signature | 811 B 00:00:00
- updates/7/x86_64/signature | 3.4 kB 00:00:00 !!!
- wazuh_repo/signature | 836 B 00:00:00
- wazuh_repo/signature | 3.4 kB 00:00:00 !!!
- No packages marked for update
- + yum -y install docker-ce docker-python python-docker
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: mirrors.advancedhosters.com
- * epel: d2lzkl7pfhq30w.cloudfront.net
- * extras: mirror.cs.pitt.edu
- * updates: repos-va.psychz.net
- Package 3:docker-ce-18.09.2-3.el7.x86_64 already installed and latest version
- Package 1:python-docker-py-1.10.6-8.el7_6.noarch already installed and latest version
- Package 1:python-docker-py-1.10.6-8.el7_6.noarch already installed and latest version
- Nothing to do
- + docker_registry
- + echo 'Setting up Docker Registry'
- Setting up Docker Registry
- + mkdir -p /etc/docker
- + echo '{'
- + echo ' "registry-mirrors": ["https://:5000"]'
- + echo '}'
- + echo 'Docker Registry Setup - Complete'
- Docker Registry Setup - Complete
- + echo 'Restarting Docker'
- Restarting Docker
- + systemctl restart docker
- + systemctl enable docker
- + install_master
- + '[' centos == centos ']'
- + yum -y install salt-master wget
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: mirrors.advancedhosters.com
- * epel: d2lzkl7pfhq30w.cloudfront.net
- * extras: mirror.cc.columbia.edu
- * updates: repos-va.psychz.net
- Package salt-master-2015.5.10-2.el7.noarch already installed and latest version
- Package wget-1.14-18.el7.x86_64 already installed and latest version
- Nothing to do
- + mkdir -p /opt/so/gpg
- + wget --inet4-only -O /opt/so/gpg/SALTSTACK-GPG-KEY.pub https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub
- --2019-02-13 17:05:53-- https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub
- Resolving repo.saltstack.com (repo.saltstack.com)... 138.197.226.47
- Connecting to repo.saltstack.com (repo.saltstack.com)|138.197.226.47|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 1727 (1.7K)
- Saving to: '/opt/so/gpg/SALTSTACK-GPG-KEY.pub'
- 100%[===========================================================================================================================================>] 1,727 --.-K/s in 0s
- 2019-02-13 17:05:53 (26.3 MB/s) - '/opt/so/gpg/SALTSTACK-GPG-KEY.pub' saved [1727/1727]
- + wget --inet4-only -O /opt/so/gpg/docker.pub https://download.docker.com/linux/ubuntu/gpg
- --2019-02-13 17:05:53-- https://download.docker.com/linux/ubuntu/gpg
- Resolving download.docker.com (download.docker.com)... 13.249.44.98, 13.249.44.126, 13.249.44.128, ...
- Connecting to download.docker.com (download.docker.com)|13.249.44.98|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 3817 (3.7K) [binary/octet-stream]
- Saving to: '/opt/so/gpg/docker.pub'
- 100%[===========================================================================================================================================>] 3,817 --.-K/s in 0s
- 2019-02-13 17:05:53 (235 MB/s) - '/opt/so/gpg/docker.pub' saved [3817/3817]
- + wget --inet4-only -O /opt/so/gpg/GPG-KEY-WAZUH https://packages.wazuh.com/key/GPG-KEY-WAZUH
- --2019-02-13 17:05:53-- https://packages.wazuh.com/key/GPG-KEY-WAZUH
- Resolving packages.wazuh.com (packages.wazuh.com)... 13.249.44.52, 13.249.44.11, 13.249.44.45, ...
- Connecting to packages.wazuh.com (packages.wazuh.com)|13.249.44.52|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 3124 (3.1K) [application/octet-stream]
- Saving to: '/opt/so/gpg/GPG-KEY-WAZUH'
- 100%[===========================================================================================================================================>] 3,124 --.-K/s in 0s
- 2019-02-13 17:05:53 (559 MB/s) - '/opt/so/gpg/GPG-KEY-WAZUH' saved [3124/3124]
- + copy_master_config
- + cp files/master /etc/salt/master
- + service salt-master restart
- Redirecting to /bin/systemctl restart salt-master.service
- + salt_master_directories
- + mkdir -p /opt/so/saltstack/salt
- + mkdir -p /opt/so/saltstack/pillar
- + cp -R pillar/brologs.sls pillar/data pillar/firewall pillar/masters pillar/nodes pillar/sensors pillar/top.sls /opt/so/saltstack/pillar/
- + chmod +x /opt/so/saltstack/pillar/firewall/addfirewall.sh
- + chmod +x /opt/so/saltstack/pillar/data/addtotab.sh
- + cp -R salt/bro salt/ca salt/common salt/curator salt/elastalert salt/elasticsearch salt/filebeat salt/firewall salt/fleet salt/idstools salt/kibana salt/logstash salt/master salt/minio salt/mysql salt/pcap salt/redis salt/schedule.sls salt/ssl salt/suricata salt/syslog-ng salt/top.sls salt/utility salt/wazuh /opt/so/saltstack/salt/
- + update_sudoers
- + grep -qE '^socore\ ALL=\(ALL\)\ NOPASSWD:(\/usr\/bin\/salt\-key|\/opt\/so\/saltstack)' /etc/sudoers
- + echo 'User socore already granted sudo privileges'
- User socore already granted sudo privileges
- + chown_salt_master
- + chown -R socore:socore /opt/so
- + master_static
- + touch /opt/so/saltstack/pillar/static.sls
- + echo static:
- + echo ' hnmaster: 10.0.0.0/8,192.168.0.0/16,172.16.0.0/12'
- + echo ' ntpserver: '
- + echo ' proxy: '
- + echo ' broversion: ZEEK'
- + echo ' ids: Suricata'
- + echo ' masterip: 10.0.194.112'
- + [[ '' == \M\A\S\T\E\R ]]
- + echo ' masterupdate: 0'
- + echo '** Generating the master pillar **'
- ** Generating the master pillar **
- + master_pillar
- + touch /opt/so/saltstack/pillar/masters/so-hh-eval-centos.dev.example.org.sls
- + echo master:
- + echo ' mainip: 10.0.194.112'
- + echo ' mainint: eth0'
- + echo ' esheap: 600m'
- + echo ' esclustername: {{ grains.host }}'
- + '[' EVALMODE == EVALMODE ']'
- + echo ' freq: 1'
- + echo ' domainstats: 1'
- + echo ' ls_pipeline_batch_size: 125'
- + echo ' ls_input_threads: 1'
- + echo ' ls_batch_count: 125'
- + echo ' mtu: 1500'
- + echo ' lsheap: 2g'
- + echo ' lsaccessip: 127.0.0.1'
- + echo ' elastalert: 1'
- + echo ' ls_pipeline_workers: 2'
- + echo ' nids_rules: ETOPEN'
- + echo ' oinkcode: '
- + echo ' es_port: 9200'
- + echo ' log_size_limit: 7'
- + echo ' cur_close_days: 30'
- + configure_minion eval
- + local TYPE=eval
- + echo 'Configuring minion type as eval'
- Configuring minion type as eval
- + touch /etc/salt/grains
- + echo 'role: so-eval'
- + '[' eval == master ']'
- + '[' eval == eval ']'
- + echo 'master: so-hh-eval-centos.dev.example.org'
- + echo 'id: so-hh-eval-centos.dev.example.org'
- + echo 'mysql.host: '\''10.0.194.112'\'''
- + echo 'mysql.port: 3306'
- + echo 'mysql.user: '\''root'\'''
- + '[' '!' -f /opt/so/saltstack/pillar/auth.sls ']'
- ++ grep mysql
- ++ awk '{print $2}'
- ++ cat /opt/so/saltstack/pillar/auth.sls
- + OLDPASS=dUCu9k3Rs7pdKlUpdczp
- + echo 'mysql.pass: '\''dUCu9k3Rs7pdKlUpdczp'\'''
- + service salt-minion restart
- Redirecting to /bin/systemctl restart salt-minion.service
- + set_node_type
- + '[' EVALMODE == STORAGENODE ']'
- + '[' EVALMODE == EVALMODE ']'
- + NODETYPE=storage
- + '[' EVALMODE == PARSINGNODE ']'
- + '[' EVALMODE == HOTNODE ']'
- + '[' EVALMODE == WARMNODE ']'
- + node_pillar
- + touch /root/installtmp/so-hh-eval-centos.dev.example.org.sls
- + echo node:
- + echo ' mainip: 10.0.194.112'
- + echo ' mainint: eth0'
- + echo ' esheap: 600m'
- + echo ' esclustername: {{ grains.host }}'
- + echo ' lsheap: 2g'
- + echo ' ls_pipeline_workers: 1'
- + echo ' ls_pipeline_batch_size: 125'
- + echo ' ls_input_threads: 1'
- + echo ' ls_batch_count: 125'
- + echo ' es_shard_count: '
- + echo ' node_type: storage'
- + echo ' es_port: 9200'
- + echo ' log_size_limit: 7'
- + echo ' cur_close_days: 30'
- + set_initial_firewall_policy
- + get_main_ip
- ++ ip route get 1
- ++ awk '{print $NF;exit}'
- + MAINIP=10.0.194.112
- ++ ip route get 1
- ++ awk '{print $5;exit}'
- + MAININT=eth0
- + '[' EVALMODE == MASTERONLY ']'
- + '[' EVALMODE == EVALMODE ']'
- + printf ' - 10.0.194.112\n'
- + printf ' - 10.0.194.112\n'
- + printf ' - 10.0.194.112\n'
- + printf ' - 10.0.194.112\n'
- + /opt/so/saltstack/pillar/data/addtotab.sh evaltab so-hh-eval-centos.dev.example.org 10.0.194.112 2 XYiDvQmcZHEMUi5z eth0 8377344000 8377344000 bond0
- Seeing if this host is already in here. If so delete it
- local:
- - Pillar failed to render with the following messages:
- - Specified SLS 'masters.so-hh-eval-centos' in environment 'base' is not available on the salt master
- - Specified SLS 'firewall.*' in environment 'base' is not available on the salt master
- - Specified SLS 'data.*' in environment 'base' is not available on the salt master
- local:
- - Pillar failed to render with the following messages:
- - Specified SLS 'masters.so-hh-eval-centos' in environment 'base' is not available on the salt master
- - Specified SLS 'firewall.*' in environment 'base' is not available on the salt master
- - Specified SLS 'data.*' in environment 'base' is not available on the salt master
- + '[' EVALMODE == SENSORONLY ']'
- + '[' EVALMODE == STORAGENODE ']'
- + '[' EVALMODE == PARSINGNODE ']'
- + '[' EVALMODE == HOTNODE ']'
- + '[' EVALMODE == WARMNODE ']'
- + salt_firstcheckin
- + salt-call state.highstate
- + accept_salt_key_local
- + salt-key -ya so-hh-eval-centos.dev.example.org
- The key glob 'so-hh-eval-centos.dev.example.org' does not match any unaccepted keys.
- + salt_checkin_message
- + echo '####################################################'
- ####################################################
- + echo '## ##'
- ## ##
- + echo '## Applying and Installing everything ##'
- ## Applying and Installing everything ##
- + echo '## (This will take a while) ##'
- ## (This will take a while) ##
- + echo '## ##'
- ## ##
- + echo '####################################################'
- ####################################################
- + salt_checkin
- + '[' EVALMODE == MASTERONLY ']'
- + '[' EVALMODE == EVALMODE ']'
- + echo 'Building Certificate Authority'
- Building Certificate Authority
- + salt-call state.apply ca
- local:
- - Pillar failed to render with the following messages:
- - Specified SLS 'masters.so-hh-eval-centos' in environment 'base' is not available on the salt master
- - Specified SLS 'firewall.*' in environment 'base' is not available on the salt master
- - Specified SLS 'data.*' in environment 'base' is not available on the salt master
- + echo ' *** Restarting Salt to fix any SSL errors. ***'
- *** Restarting Salt to fix any SSL errors. ***
- + service salt-master restart
- Redirecting to /bin/systemctl restart salt-master.service
- + sleep 5
- + service salt-minion restart
- Redirecting to /bin/systemctl restart salt-minion.service
- + sleep 15
- + echo ' Applyng a mine hack '
- Applyng a mine hack
- + sudo salt '*' mine.send x509.get_pem_entries glob_path=/etc/pki/ca.crt
- so-hh-eval-centos.dev.example.org:
- False
- + echo ' Applying SSL state '
- Applying SSL state
- + salt-call state.apply ssl
- local:
- - Pillar failed to render with the following messages:
- - Specified SLS 'masters.so-hh-eval-centos' in environment 'base' is not available on the salt master
- - Specified SLS 'firewall.*' in environment 'base' is not available on the salt master
- - Specified SLS 'data.*' in environment 'base' is not available on the salt master
- + echo 'Still Working... Hang in there'
- Still Working... Hang in there
- + salt-call state.highstate
- [INFO ] Loading fresh modules for state activity
- [INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://top.sls'
- [INFO ] Creating module dir '/var/cache/salt/minion/extmods/beacons'
- [INFO ] Syncing beacons for environment 'base'
- [INFO ] Loading cache from salt://_beacons, for base)
- [INFO ] Caching directory '_beacons/' for environment 'base'
- [INFO ] Creating module dir '/var/cache/salt/minion/extmods/modules'
- [INFO ] Syncing modules for environment 'base'
- [INFO ] Loading cache from salt://_modules, for base)
- [INFO ] Caching directory '_modules/' for environment 'base'
- [INFO ] Creating module dir '/var/cache/salt/minion/extmods/states'
- [INFO ] Syncing states for environment 'base'
- [INFO ] Loading cache from salt://_states, for base)
- [INFO ] Caching directory '_states/' for environment 'base'
- [INFO ] Creating module dir '/var/cache/salt/minion/extmods/sdb'
- [INFO ] Syncing sdb for environment 'base'
- [INFO ] Loading cache from salt://_sdb, for base)
- [INFO ] Caching directory '_sdb/' for environment 'base'
- [INFO ] Creating module dir '/var/cache/salt/minion/extmods/grains'
- [INFO ] Syncing grains for environment 'base'
- [INFO ] Loading cache from salt://_grains, for base)
- [INFO ] Caching directory '_grains/' for environment 'base'
- [INFO ] Creating module dir '/var/cache/salt/minion/extmods/renderers'
- [INFO ] Syncing renderers for environment 'base'
- [INFO ] Loading cache from salt://_renderers, for base)
- [INFO ] Caching directory '_renderers/' for environment 'base'
- [INFO ] Creating module dir '/var/cache/salt/minion/extmods/returners'
- [INFO ] Syncing returners for environment 'base'
- [INFO ] Loading cache from salt://_returners, for base)
- [INFO ] Caching directory '_returners/' for environment 'base'
- [INFO ] Creating module dir '/var/cache/salt/minion/extmods/output'
- [INFO ] Syncing output for environment 'base'
- [INFO ] Loading cache from salt://_output, for base)
- [INFO ] Caching directory '_output/' for environment 'base'
- [INFO ] Creating module dir '/var/cache/salt/minion/extmods/utils'
- [INFO ] Syncing utils for environment 'base'
- [INFO ] Loading cache from salt://_utils, for base)
- [INFO ] Caching directory '_utils/' for environment 'base'
- [INFO ] Loading fresh modules for state activity
- local:
- Data failed to compile:
- ----------
- Pillar failed to render with the following messages:
- ----------
- Specified SLS 'masters.so-hh-eval-centos' in environment 'base' is not available on the salt master
- ----------
- Specified SLS 'firewall.*' in environment 'base' is not available on the salt master
- ----------
- Specified SLS 'data.*' in environment 'base' is not available on the salt master
- + checkin_at_boot
- + echo 'startup_states: highstate'
- + whiptail_setup_complete
- + whiptail --title 'Security Onion Setup' --msgbox 'Finished installing this as an EVALMODE. A reboot is recommended.' 8 78
- + install_cleanup
- + rm -rf /root/installtmp
- + exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement