added securityonion

This commit is contained in:
2021-08-06 10:26:03 +02:00
parent 0b2fd1db43
commit f043730066

30
Vagrant/Vagrantfile vendored
View File

@@ -235,4 +235,34 @@ EOF
vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ] vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ]
end end
end end
config.vm.define "securityonion", autostart: false do |cfg|
cfg.vm.box = "ubuntu/trusty64"
cfg.vm.hostname = "securityonion"
cfg.vm.network :private_network, ip: "192.168.38.10", gateway: "192.168.38.1", dns: "8.8.8.8"
cfg.vm.network :private_network, ip: "192.168.39.10", gateway: "192.168.39.1", dns: "8.8.8.8"
cfg.vm.provider "virtualbox" do |vb|
vb.name = "securityonion"
vb.memory = "4096"
vb.gui = false
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
end
cfg.vm.provision "shell", inline: <<-SHELL
export DEBIAN_FRONTEND=noninteractive
iptables -F
rm -rf /var/lib/apt/lists/*
apt-get update
apt-get -y install software-properties-common
add-apt-repository -y ppa:securityonion/stable
apt-get update
apt-get -y install securityonion-all syslog-ng-core
apt-get -y autoremove
apt-get clean
sosetup -y -f /vagrant/sosetup.conf
ufw allow 443/tcp
SHELL
end
end end