Nagios | Axigen | AlienVault | Amazon EC2 | OpenVPN | SSH LINUX JOURNAL ™ Put Your Servers in the Cloud with Amazon EC2 and Ubuntu
SYSTEM ADMINISTRATION Build an Installation Toolkit
Since 1994: The Original Magazine of the Linux Community SystemMARCH 2010 | ISSUE 191 | www.linuxjournal.com Nagios | Axigen AlienVault | Amazon EC2 OpenVPN JavaScript | SSH Administration
Security Information Management with AlienVault Large-Scale Sysadmin Tips Implement a Nagios-to-SMS Alerting Service PLUS: POINT/COUNTERPOINT: /opt vs. /usr/local AC 00ISSUE 191 MARCH 2010
$5.99US $5.99CAN 03 REVIEWED: Axigen Mail Server
0 09281 03102 4
Easy to confi gure. Always adjustable. NEW! FLEXIBLE SERVER
Special Offer: 3 Months ® 1&1 DYNAMIC CLOUD SERVER FREE!* A virtual server environment with full root access – adjust the processor core,
RAM, and/or hard disk space at any time. Prices will be refl ected accordingly. Basic Configuration: Basic Confi guration: All Confi gurations Include: $ 99 N 1 AMD OpteronTM 2352 Core Processor N 2000 GB Traffi c per 49. month (up to 4 cores available) N Full Root Access N 1 GB RAM N Windows Server 2008 R2 Standard (up to 15 GB RAM available) Available as an add-on, additional fees apply. N 100 GB Hard Disk Space N Parallels Plesk Panel 9 (up to 800 GB available) N 24/7 Toll-Free Support
More special offers are available online. For details, visit www.1and1.com
* Offer valid for a limited time only. 3 months free offer applies to basic confi guration only. 12 month minimum contract term and set up fee apply. Visit website for ® full promotional offer details. Program and pricing specifi cations and availability subject to change without notice. 1&1 and the 1&1 logo are trademarks of 1&1 Internet AG, all other trademarks are the property of their respective owners. © 2010 1&1 Internet, Inc. All rights reserved.
Call 1-877-GO-1AND1 Visit us now www.1and1.com
1AND1_p01 .indd 1 1/14/10 5:39:21 PM lj191_mar2010bu:lj_template_current060704.qxt 1/14/10 11:39 AM Page 2
MARCH 2010 CONTENTS Issue 191
FEATURES
SYSTEM ADMINISTRATION ON THE COVER • PUT YOUR SERVERS IN THE CLOUD WITH AMAZON EC2 AND UBUNTU, P. 72 50 54 60 66 • BUILD AN INSTALLATION TOOLKIT, P. 34 TAMING ALIENVAULT: USE SSH USING AN • SECURITY INFORMATION MANAGEMENT WITH THE BEAST THE FUTURE TO CROSS A SMS SERVER ALIENVAULT, P. 54 An introduction to OF SECURITY SUSPECT HOST TO PROVIDE • LARGE-SCALE SYSADMIN TIPS, P. 50 • IMPLEMENT A NAGIOS-TO-SMS ALERTING SERVICE, large-scale system INFORMATION SECURELY A ROBUST P. 6 6 administration. MANAGEMENT Don’t fear the ALERTING • POINT/COUNTERPOINT: /OPT VS. /USR/LOCAL, P. 76 Jason Allen OSSIM: giving Valley of the SERVICE FOR • REVIEWED: AXIGEN MAIL SERVER, P. 46 security manage- Shadow of Death. NAGIOS ment a brain. SSH through it. Cover Photo by Jason Allen with permission Texting: not just for from Fermilab. This photo was taken at Fermi Jeramiah Bowling der.hans teenagers. National Accelerator Laboratory, which is managed by Fermi Research Alliance, LLC under Management Eric Pearce and Operating Contract (DE-AC02-07CH11359) with the Department of Energy.
2 | march 2010 www.linuxjournal.com Your Applications Will Run Faster With Next Generation Microway Solutions!
TriCom™X Terafl op GPU Computing s 1$2$$2 )Nl NI"AND (#! &OR