티스토리 뷰

https://code.google.com/p/security-onion/wiki/Upgrade

 

 

Upgrade  
Security Onion Upgrade Procedure
Updated Jan 21, 2014 by doug.bu...@gmail.com

Security Onion 12.04 Update Procedure

Initiating an update over SSH

If you're updating your Security Onion box over an SSH connection and your connection drops, then your update process may be left in an inconsistent state. It is therefore recommended to run byobu so that your session will continue to run on the Security Onion box even if your connection drops. Byobu is very handy and we recommend running it all the time to avoid forgetting about it before an update.

# install byobu
sudo apt
-get install byobu

# enable byobu
byobu
-enable

# you're now ready to update

For more information about byobu, please see: https://help.ubuntu.com/community/Byobu

Distributed deployments

Always update the master server first before updating sensors.

soup - Security Onion UPdate

We recommend using the "soup" script to automatically install updates while avoiding the MySQL/PF_RING issues described below.

sudo soup

If you get the following error:

sudo: soup: command not found

then do the following:

sudo apt-get update && sudo apt-get install securityonion-sostat

For more information, please see: http://blog.securityonion.net/2013/08/new-securityonion-packages.html

Standard Ubuntu package management tools

Since all of our packages are in a standard Ubuntu Launchpad PPA,

you can use standard Ubuntu package management tools to update ALL packages

(Ubuntu and Security Onion). However, there are some caveats to be aware of:

  • PF_RING and new kernel packages

You may be prompted to update your kernel packages and PF_RING at the same time. If you do so, the PF_RING kernel module will get built for your current kernel and not for the newly installed kernel and upon reboot services will fail. To avoid this, you should install just the PF_RING kernel module by itself and then install the kernel and any other remaining package updates. Here's a one-liner that will do that:

$ sudo apt-get update

 

$ sudo apt-get install securityonion-pfring-module

 

$ sudo apt
-get dist-upgrade

 

If you accidentally install both the kernel and PF_RING packages at the same time and then reboot and find out that PF_RING services (Snort and Suricata) are failing, you can reinstall the securityonion-pfring-module package:

sudo apt-get install --reinstall securityonion-pfring-module
댓글