added securityonion
This commit is contained in:
30
Vagrant/Vagrantfile
vendored
30
Vagrant/Vagrantfile
vendored
@@ -235,4 +235,34 @@ EOF
|
||||
vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ]
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user