<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nirlog.com &#187; Linux/Unix</title>
	<atom:link href="http://nirlog.com/category/linuxunix/feed/" rel="self" type="application/rss+xml" />
	<link>http://nirlog.com</link>
	<description>Technology, Life and other stuff that come along...</description>
	<lastBuildDate>Sat, 29 May 2010 15:06:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Chrome OS in Vmware</title>
		<link>http://nirlog.com/2009/11/21/google-chrome-os-in-vmware/</link>
		<comments>http://nirlog.com/2009/11/21/google-chrome-os-in-vmware/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 01:38:08 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[chrome in vmware]]></category>
		<category><![CDATA[chrome shell access]]></category>
		<category><![CDATA[chrome ssh]]></category>
		<category><![CDATA[google chrome os]]></category>

		<guid isPermaLink="false">http://nirlog.com/?p=320</guid>
		<description><![CDATA[I couldn&#8217;t resist myself from trying Google&#8217;s Chrome OS that got everyone buzzing.
Engadget has a very helpful video &#8211; How-to: run Chrome OS as a virtual machine. The image they&#8217;ve used is from  gdgt.
Another useful how to is at TechCrunch &#8211; Want To Try Out Google Chrome OS For Yourself? Here’s How. They&#8217;re running [...]]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t resist myself from trying Google&#8217;s Chrome OS that got everyone buzzing.</p>
<p>Engadget has a very helpful video &#8211; <a href="http://www.engadget.com/2009/11/20/how-to-run-chrome-os-as-a-virtual-machine/">How-to: run Chrome OS as a virtual machine</a>. The image they&#8217;ve used is from  <a href="http://gdgt.com/google/chrome-os/download/">gdgt</a>.</p>
<p>Another useful how to is at TechCrunch &#8211; <a href="http://www.techcrunch.com/2009/11/19/guide-install-google-chrome-os/">Want To Try Out Google Chrome OS For Yourself? Here’s How.</a> They&#8217;re running <a href="http://torrents.thepiratebay.org/5170843/chromeos-image-999.999.32309.211410-a1.vmdk.bz2.5170843.TPB.torrent">this Chrome image</a> (downloaded from torrent)  on <a href="http://www.virtualbox.org/wiki/Downloads">Sun VirtualBox</a>.</p>
<p>First I tried the image from gdgt on my Vmware Fusion, it booted ok but couldn&#8217;t detect the network and was impossible to login.</p>
<p>I then downloaded the image from torrent (used by TechCrunch), which detected the network but strangely didn&#8217;t let me login with my google account. I did create a new google account just to try this and to be on a safer side. After reading the comments on torrent site, I figured that you can login with user &#8220;mark&#8221; and password &#8220;chromeos&#8221;. Boom&#8230; that let me in!</p>
<p>The first impression after few minutes of mocking around was that this wasn&#8217;t anywhere like the one <a href="http://www.youtube.com/watch?v=ANMrzw7JFzA">demoed by Google guys</a>. No app menu and panels. It was just like a chrome browser in virtual machine. But after playing for a while and googling around. I figured that &#8220;Ctrl Alt t&#8221; takes you to the terminal &#8211; you can sudo with the same password &#8220;chromeos&#8221;.</p>
<p><img src="http://nirlog.com/wp-content/uploads/2009/11/chrome-shell-reboot-1.png" height="585" width="438" border="1" hspace="4" vspace="4" alt="Chrome-Shell-Reboot-1" /><br />
After rebooting the Chrome OS from command line and re-logging in, the App Menu became available.</p>
<p><img src="http://nirlog.com/wp-content/uploads/2009/11/chrome-app-tabs-1.png" height="370" width="420" border="1" hspace="4" vspace="4" alt="Chrome-App-Tabs-1" /></p>
<p>I could start the sshd</p>
<p><img src="http://nirlog.com/wp-content/uploads/2009/11/chrome-start-ssh.png" height="381" width="438" border="1" hspace="4" vspace="4" alt="Chrome-Start-Ssh" /></p>
<p>And remote login from my Mac<br />
<img src="http://nirlog.com/wp-content/uploads/2009/11/chrome-remote-login.png" height="443" width="433" border="1" hspace="4" vspace="4" alt="Chrome-Remote-Login" /></p>
<p>Personally, I think Chrome is trying to bring thin clients back in from of netbooks. Thin clients failed earlier because the networks were slow and &#8220;cloud&#8221; wasn&#8217;t there. But Chrome stands a chance as cloud is the future and it&#8217;s built with three very important goals in mind &#8211; Security, Speed and Reliability. Having said that, native softwares are absolutely must for it to succeed. Even iPhones need native apps!</p>
<p>As far as user experience is concerned, at the moment Chrome OS is nothing but a browser. If you want to experience the early Chrome OS &#8211; just install Chrome browser and browse your favorite sites <img src='http://nirlog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I&#8217;m sure this is going to change when Chrome OS is finally released for public next year.</p>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2009/11/21/google-chrome-os-in-vmware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Load balancing web servers with Pound</title>
		<link>http://nirlog.com/2007/11/28/load-balancing-web-servers-with-pound/</link>
		<comments>http://nirlog.com/2007/11/28/load-balancing-web-servers-with-pound/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 22:26:12 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nirlog.com/2007/11/28/load-balancing-web-servers-with-pound/</guid>
		<description><![CDATA[If you&#8217;re running a web site and have come to a point where a single web server cannot handle the traffic, then it&#8217;s time to get multiple web servers and share the loading. To do that you&#8217;ll need a load balancer which distributes the web traffic among multiple web servers.
Basically you&#8217;ve two choice &#8212; go [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running a web site and have come to a point where a single web server cannot handle the traffic, then it&#8217;s time to get multiple web servers and share the loading. To do that you&#8217;ll need a load balancer which distributes the web traffic among multiple web servers.</p>
<p>Basically you&#8217;ve two choice &#8212; go for the hardware solutions (expensive with many nice features) or software solutions (possibly free but with limited features). If you want a free and open source solution then Pound is the choice.</p>
<p><a href="http://www.apsis.ch/pound/">Pound is a Free Open Source reverse-proxy, load balancer, SSL wrapper, http/https sanitizer, fail over server and a request redirector</a>:</p>
<blockquote><p>1. a reverse-proxy: it passes requests from client browsers to one or more back-end servers.<br />
2. a load balancer: it will distribute the requests from the client browsers among several back-end servers, while keeping session information.<br />
3. an SSL wrapper: Pound will decrypt HTTPS requests from client browsers and pass them as plain HTTP to the back-end servers.<br />
4. an HTTP/HTTPS sanitizer: Pound will verify requests for correctness and accept only well-formed ones.<br />
5. a fail over-server: should a back-end server fail, Pound will take note of the fact and stop passing requests to it until it recovers.<br />
6. a request redirector: requests may be distributed among servers according to the requested URL.</p></blockquote>
<p>Pound is built with security in mind, it can run as setuid/setgid and/or in a chroot jail. It&#8217;s a very small, robust and efficient program.</p>
<p>It&#8217;s very easy to install and configure.</p>
<p><img src="http://nirlog.com/wp-content/uploads/2007/11/simple-pound.jpg" height="529" width="320" border="1" hspace="4" vspace="4" alt="Simple-Pound" /></p>
<p><span id="more-271"></span><br />
<strong>Installation</strong></p>
<p>pound can be installed from the source or the binary depending on your os distribution.</p>
<p><strong>Configuration</strong></p>
<p>Here&#8217;s an example of simple configuration to share the loading between two web servers behind the Pound load balancer</p>
<blockquote><p>ListenHTTP<br />
Address &lt;real ip address&gt;<br />
Port 80<br />
End<br />
ListenHTTPS<br />
Address &lt;real ip address&gt;<br />
Port 443<br />
Cert &#8220;/etc/pound/ssl-cert.pem&#8221;<br />
End</p>
<p>Service<br />
BackEnd<br />
Address 192.168.1.2<br />
Port    80<br />
End<br />
BackEnd<br />
Address 192.168.1.3<br />
Port    80<br />
End<br />
End </p></blockquote>
<p>Pound can keep track of sessions between a client and a back-end server by client address, Basic authentication, URL parameter, cookie or header value. Here&#8217;s how we keep the session by cookies</p>
<blockquote><p>Session<br />
Type    Cookie<br />
ID      &#8220;sess&#8221;<br />
TTL     300<br />
End</p></blockquote>
<p>Pound is straight forward to configure and understand. It&#8217;s a perfect choice for free and open source load balancer.</p>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2007/11/28/load-balancing-web-servers-with-pound/feed/</wfw:commentRss>
		<slash:comments>-2</slash:comments>
		</item>
		<item>
		<title>Monitor network traffic with ntop</title>
		<link>http://nirlog.com/2007/07/30/monitor-network-traffic-with-ntop/</link>
		<comments>http://nirlog.com/2007/07/30/monitor-network-traffic-with-ntop/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 12:48:28 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nirlog.com/2007/07/30/monitor-network-traffic-with-ntop/</guid>
		<description><![CDATA[How do you monitor your network traffic? Of course using MRTG, you might say. Yes, that&#8217;s true, MRTG does an excellent job of monitoring traffic across networks and devices (router/switches). But when you see an abnormal traffic in MRTG, how do you find out what is generating that extra abnormal traffic? This is where ntop [...]]]></description>
			<content:encoded><![CDATA[<p>How do you monitor your network traffic? Of course using <a href="http://oss.oetiker.ch/mrtg/">MRTG</a>, you might say. Yes, that&#8217;s true, MRTG does an excellent job of monitoring traffic across networks and devices (router/switches). But when you see an abnormal traffic in MRTG, how do you find out what is generating that extra abnormal traffic? This is where <strong><a href="http://www.ntop.org/overview.html">ntop</a></strong> comes into play. Basically, MRTG shows you a bigger picture, whereas ntop lets you zoom into individual networks and hosts, and gives you enough information to pinpoint the hosts or devices generating extra/abnormal traffic.</p>
<p>ntop is a tool that shows network traffic usage. It is based on libpcap and when installed in a place where it can capture network traffic (hub or a mirrored port of a switch), it logs and reports information concerning IP and Fibre Channel traffic generated by each host in the network. ntop has a very rich and user-friendly web interface for reporting.</p>
<p>This is what ntop can do for you:</p>
<blockquote><p>*  Sort network traffic according to many protocols<br />
* Show network traffic sorted according to various criteria<br />
* Display traffic statistics<br />
* Store on disk persistent traffic statistics in RRD format<br />
* Identify the indentity (e.g. email address) of computer users<br />
* Passively (i.e. withou sending probe packets) identify the host OS<br />
* Show IP traffic distribution among the various protocols<br />
* Analyse IP traffic and sort it according to the source/destination<br />
* Display IP Traffic Subnet matrix (who&#8217;s talking to who?)<br />
* Report IP protocol usage sorted by protocol type<br />
* Act as a NetFlow/sFlow collector for flows generated by routers (e.g. Cisco and Juniper) or switches (e.g. Foundry Networks)<br />
* Produce RMON-like network traffic statistics</p></blockquote>
<p><img src="http://nirlog.com/wp-content/uploads/2007/07/ntop.png" height="181" width="420" border="1" hspace="4" vspace="4" alt="Ntop" /></p>
<p><span id="more-264"></span><br />
<strong>Installation</strong><br />
ntop is available for Linux/Unix, Windows and Mac OSX. Windows demo version with limited packet capability is freely available for download. If you want to use the Windows version on production environment, you either need to compile it by yourself or buy a binary version with updates and support. But Linux/Unix and Mac versions are freely available, both source and binary.</p>
<p>Installation of ntop is pretty straight forward, here I&#8217;m going to demonstrate a binary rpm installation in CentOS 5.x. We&#8217;ll use RPMForge repository for ntop installation, so first we need to upgrade our rpm to rpmforge.</p>
<p><a href="http://dag.wieers.com/rpm/packages/rpmforge-release/">Download the rpm</a> and upgrade it.</p>
<blockquote><p># rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm</p></blockquote>
<p>Install the dependencies</p>
<blockquote><p>#yum install glib libpcap</p></blockquote>
<p>Install ntop</p>
<blockquote><p># yum install ntop</p></blockquote>
<p>Edit the config file /etc/ntop.conf, and comment out the setting to run in daemon mode</p>
<blockquote><p>Change &#8211;daemon to # &#8211;daemon</p></blockquote>
<p>Set to the network interface that you use for sniffing data</p>
<blockquote><p>&#8211;interface eth1</p></blockquote>
<p>Comment out the option for port 3001 for SSL</p>
<blockquote><p>Change #&#8211;https-server 3001 to &#8211;https-server 3001</p></blockquote>
<p>Run the ntop to set your password</p>
<blockquote><p># /usr/bin/ntop @/etc/ntop.conf -A</p></blockquote>
<p>Edit the config file /etc/ntop.conf and set back to daemon mode</p>
<blockquote><p>Change #&#8211;daemon to &#8211;daemon</p></blockquote>
<p>Use chkconfig to make the service start on every reboot</p>
<blockquote><p># chkconfig ntop on</p></blockquote>
<p>Start the service.</p>
<blockquote><p># service ntop start</p></blockquote>
<p>That&#8217;s it, now you can use your web browser to access the ntop web interface. It has a lot of user-friendly reporting and admin options. Here&#8217;re few screenshots from the web interface of ntop.</p>
<p>Browse https://ip_address:3001 and you&#8217;ll see the Global Traffic Statics<br />
<a href="http://nirlog.com/wp-content/uploads/2007/07/ntop-sumarry.png" rel="lightbox[ntop]"><img src="http://nirlog.com/wp-content/uploads/2007/07/ntop-sumarry-small.png" height="462" width="420" border="1" hspace="4" vspace="4" alt="Ntop-Sumarry-Small" /></a></p>
<p>Network Load Statics displays the network traffic history: last 10 minutes, last hour, current day and last month.<br />
<a href="http://nirlog.com/wp-content/uploads/2007/07/network-load.png" rel="lightbox[ntop]"><img src="http://nirlog.com/wp-content/uploads/2007/07/network-load-small.png" height="529" width="420" border="1" hspace="4" vspace="4" alt="Network-Load-Small" /></a></p>
<p>Active TCP/UDP session shows which client in the network is connected to which server, the information includes source/destination ip address/port numbers and duration of the connection.<br />
<a href="http://nirlog.com/wp-content/uploads/2007/07/active-sessions.png" rel="lightbox[ntop]"><img src="http://nirlog.com/wp-content/uploads/2007/07/active-sessions-small-1.png" height="224" width="420" border="1" hspace="4" vspace="4" alt="Active-Sessions" /></a></p>
<p>Local Matrix, shows the amount of data exchanged between hosts in the local subnet.<br />
<a href="http://nirlog.com/wp-content/uploads/2007/07/local-matrix.png" rel="lightbox[ntop]"><img src="http://nirlog.com/wp-content/uploads/2007/07/local-matrix-small1.png" height="285" width="420" border="1" hspace="4" vspace="4" alt="Local-Matrix-Small" /></a></p>
<p>Network Traffic All Protocols/All Hosts displays the amount of data sent/received by each local and remote hosts. After reviewing the data usage we can zoom in to the individual hosts for more detail.<br />
<a href="http://nirlog.com/wp-content/uploads/2007/07/ntop-traffic.png" rel="lightbox[ntop]"><img src="http://nirlog.com/wp-content/uploads/2007/07/ntop-traffic-small-1.png" height="334" width="420" border="1" hspace="4" vspace="4" alt="Ntop-Traffic-Small-1" /></a></p>
<p>The details of a single host, includes almost every detail you would like to know about this host.<br />
<a href="http://nirlog.com/wp-content/uploads/2007/07/individual-host.png" rel="lightbox[ntop]"><img src="http://nirlog.com/wp-content/uploads/2007/07/individual-host-small.png" height="242" width="420" border="1" hspace="4" vspace="4" alt="Individual-Host-Small" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2007/07/30/monitor-network-traffic-with-ntop/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Simulating Cisco and Linux Networks</title>
		<link>http://nirlog.com/2007/07/09/simulating-cisco-and-linux-networks/</link>
		<comments>http://nirlog.com/2007/07/09/simulating-cisco-and-linux-networks/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 00:40:48 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nirlog.com/2007/07/07/simulating-cisco-and-linux-networks/</guid>
		<description><![CDATA[The benefits of designing and testing complex networks in simulated environments are obvious to network professionals and companies. It lets them test the network configurations before implementing it in the real world, and the good thing is that, they can do this without investing any money in expensive hardwares. Virtual networks are also excellent tools [...]]]></description>
			<content:encoded><![CDATA[<p>The benefits of designing and testing complex networks in simulated environments are obvious to network professionals and companies. It lets them test the network configurations before implementing it in the real world, and the good thing is that, they can do this without investing any money in expensive hardwares. Virtual networks are also excellent tools for academic and certification purposes like CCNA, CCNP or CCIE, where students can get hands-on experience configuring cisco routers.</p>
<p>Currently Cisco is the leader in Networking market, and Linux, the leader in Server market. So, if you want to test your complex (or not so complex) network configurations before buying any actual linux servers or the very expensive cisco routers, then you can use <a href="http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator">Dynamips</a> to simulate Cisco Router/Switch and <a href="http://www.dit.upm.es/vnumlwiki/index.php/Main_Page">VNUML</a> (Virtual Network User Mode Linux) to simulate your linux servers/routers. Both Dynamips and VNUML are open source and free.</p>
<p><img src="http://nirlog.com/wp-content/uploads/2007/07/dynamips-vnuml.jpeg" height="173" width="420" border="1" hspace="4" vspace="4" alt="Dynamips-Vnuml" /></p>
<p><span id="more-260"></span><br />
<strong><a href="http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator">Dynamips</a></strong></p>
<p>Dynamips is a Cisco router emulator. It&#8217;s different from other router simulators in a sense that it doesn&#8217;t try to simulate the cisco IOS but loads and runs the real Cisco IOS. The software simulates the cisco router&#8217;s hardware, which then becomes capable of booting real cisco IOS. The goals of Dynamips are:</p>
<blockquote><p>*To be used as a training platform, with software used in real world. It would allow people to become more familiar with Cisco devices, Cisco being the world leader in networking technologies ;<br />
*Test and experiment the numerous and powerful features of Cisco IOS ;<br />
* Check quickly configurations to be deployed later on real routers.</p></blockquote>
<p>If you want to use Dynamips, then it&#8217;s recommended to be used together with <a href="http://dynagen.org/">Dynagen</a>, which is an user-friendly front-end for the Dynamips cisco router emulator. It uses a simple INI like configuration file to define the routers, switches and networks. You can <a href="http://sourceforge.net/project/showfiles.php?group_id=160317">download Dynagen</a> for Linux, Windows or OS X (the package already includes Dynamips). The Dynagen installation includes very useful <a href="http://dynagen.org/tutorial.htm">Tutorial</a> and sample labs.</p>
<p><a href="http://nirlog.com/wp-content/uploads/2007/07/dynamips_big.JPG" rel="lightbox"><img src="http://nirlog.com/wp-content/uploads/2007/07/dynamips_small.JPG" height="340" width="420" border="1" hspace="4" vspace="4" alt="Dynamips Small" /></a><br />
Dynamips loading Cisco IOS</p>
<p><strong><a href="http://www.dit.upm.es/vnumlwiki/index.php/Main_Page">VNUML</a></strong></p>
<p>VNUML is a virtualization tool based on User Mode Linux virtualization software, initially developed to simulate IPv6 scenarios based on Linux and zebra routing daemon. It&#8217;s also a very useful tool in simulating general Linux based network scenarios.</p>
<blockquote><p>VNUML is aimed to help in testing network applications and services over complex testbeds made of several nodes (even tens) and networks inside one Linux machine, without involving the investment and management complexity needed to create it using real equipment.</p></blockquote>
<p>To use VNUML tool you need VNUML language for describing simulations in XML, and an interpreter of the language (vnumlparser.pl), that builds and manages the simulation, hiding all UML complex details to the user. It is <a href="http://www.dit.upm.es/vnumlwiki/index.php/Download">available</a> in package format for .deb based Linux distributions like Debian, Ubuntu, and in source format for other distributions. <a href="http://www.dit.upm.es/vnumlwiki/index.php/Live_cd">VNUML Live DVD</a> makes it possible to try VNUML without installing anything into your computer. Here are some useful documentaions: <a href="http://www.dit.upm.es/vnumlwiki/index.php/Installation">Installation guide</a>, <a href="http://www.dit.upm.es/vnumlwiki/index.php/Tutorial">Tutorial</a> and <a href="http://www.dit.upm.es/vnumlwiki/index.php/Allexamples">Example Scenarios</a>. This <a href="http://www.dit.upm.es/vnumlwiki/index.php/Example-Dyna">VNUML and Dynamips/Dynagen mixed scenario</a> is quite interesting because it simulates cisco router using Dynamips/Dynagen and Linux Servers using VNUML.</p>
<p><a href="http://nirlog.com/wp-content/uploads/2007/07/vnuml_big.png" rel="lightbox"><img src="http://nirlog.com/wp-content/uploads/2007/07/vnuml_small.png" height="377" width="420" border="1" hspace="4" vspace="4" alt="Vnuml Small" /></a><br />
Simple  VNUML Description</p>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2007/07/09/simulating-cisco-and-linux-networks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Snort: Intrusion Detection/Prevention Management</title>
		<link>http://nirlog.com/2007/06/21/snort-intrusion-detectionprevention-management/</link>
		<comments>http://nirlog.com/2007/06/21/snort-intrusion-detectionprevention-management/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 07:57:58 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nirlog.com/2007/06/21/snort-intrusion-detectionprevention-management/</guid>
		<description><![CDATA[Snort has always been, and still is my favorite IDS (Intrusion Detection System) although I manage many UTM (Unified Threat Management) Firewalls with built in IPS/IDS (Intrusion Detection/Prevention) now. The commercial UTM Firewalls with IPS/IDS are easy to use and configure but they come with a high price tag and aren&#8217;t easy to customize. Even [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://nirlog.com/wp-content/uploads/2007/06/snort-1.gif" height="60" width="128" border="1" align="right" hspace="4" vspace="4" alt="Snort-1" /><a href="http://www.snort.org/">Snort</a> has always been, and still is my favorite IDS (Intrusion Detection System) although I manage many <a href="http://en.wikipedia.org/wiki/Unified_threat_management">UTM</a> (Unified Threat Management) Firewalls with built in IPS/IDS (Intrusion Detection/Prevention) now. The commercial UTM Firewalls with IPS/IDS are easy to use and configure but they come with a high price tag and aren&#8217;t easy to customize. Even though snort is not that easy to install, configure and manage it still is the most popular IDS/IPS today because of the fact that it is open source, free, easily customizable, easy to create rules, signatures are always kept up-to-date by its community and plenty of excellent documentation, guides and books.</p>
<p>Snort captures enormous amount of data from the network and generates alert based on the rules and signatures. There&#8217;re currently 3 excellent and relatively user friendly ways to manage and analyze the snort data:<br />
<span id="more-258"></span><br />
1. <a href="http://acidlab.sourceforge.net/">ACID</a> (Analysis Console for Intrusion Databases)</p>
<blockquote><p>The Analysis Console for Intrusion Databases (ACID) is a PHP-based analysis engine to search and process a database of security events generated by various IDSes, firewalls, and network monitoring tools.</p></blockquote>
<p><a href="http://www.andrew.cmu.edu/user/rdanyliw/snort/acid_config.html">ACID: Installation and Configuration</a></p>
<p>2. <a href="http://base.secureideas.net/">BASE</a> (Basic Analysis and Security Engine).</p>
<blockquote><p>It is based on the code from the Analysis Console for Intrusion Databases (ACID) project. This application provides a web front-end to query and analyze the alerts coming from a SNORT IDS system.</p></blockquote>
<p><a href="http://www.snort.org/docs/setup_guides/Snort_Base_Minimal.pdf">Snort, Apache, SSL, PHP, MySQL, and BASE Install on CentOS 4, RHEL 4 or Fedora Core</a> (pdf)</p>
<p>3. <a href="http://sguil.sourceforge.net/">Sguil</a> (Snort GUI for LamerZ)</p>
<blockquote><p>Sguil (pronounced sgweel) is built by network security analysts for network security analysts. Sguil&#8217;s main component is an intuitive GUI that provides access to realtime events, session data, and raw packet captures.</p></blockquote>
<p><a href="http://www.vorant.com/nsmwiki/index.php?title=Sguil_on_RedHat_HOWTO" title="Sguil_on_RedHat_HOWTO">Sguil on RedHat HOWTO</a></p>
<p>If you&#8217;re asking what&#8217;s the difference between them, then <a href="http://www.mcabee.org/lists/snort-users/Nov-04/msg00367.html">here&#8217;s five reasons why Sguil is different from ACID, BASE, and similar products</a>.</p>
<p>Currently I&#8217;m trying Sguil to see how good it is. I&#8217;ve <a href="http://www.vorant.com/nsmwiki/index.php?title=Sguil_on_RedHat_HOWTO" title="Sguil_on_RedHat_HOWTO">installed Sguil Server and Sensor in CentOS 4.x </a>and <a href="http://sguil-client.darwinports.com/" title="Sguil_on_RedHat_HOWTO">Sguil-Client in my Mac OS X</a>. The server installation was not that easy but once installed, it runs smoothly. I must say that there are many good features in Sguil, among them I like: alerts in near real-time, escalation and accountability features, collection of session data using SANCP and summaries of conversations.</p>
<p><a href="http://nirlog.com/wp-content/uploads/2007/06/sguil-big.png" title="Sguil_on_RedHat_HOWTO" rel="lightbox"><img src="http://nirlog.com/wp-content/uploads/2007/06/sguil-small.png" height="303" width="420" border="1" hspace="4" vspace="4" alt="Sguil-Small" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2007/06/21/snort-intrusion-detectionprevention-management/feed/</wfw:commentRss>
		<slash:comments>-25</slash:comments>
		</item>
		<item>
		<title>Free Web Hosting Management with Virtualmin</title>
		<link>http://nirlog.com/2007/03/21/free-web-hosting-management-with-virtualmin/</link>
		<comments>http://nirlog.com/2007/03/21/free-web-hosting-management-with-virtualmin/#comments</comments>
		<pubDate>Wed, 21 Mar 2007 12:20:22 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nirlog.com/2007/03/21/free-web-hosting-management-with-virtualmin/</guid>
		<description><![CDATA[Few years ago I was looking for a virtual host management system, that&#8217;s when I came across Virtualmin. The features satisfied my requirements and of course you can&#8217;t beat the free, price wise  . I&#8217;ve been using it in an environment with 100+ virtual hosts since then, and don&#8217;t have any regret on my [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin.png" height="81" width="214" border="1" align="right" hspace="4" vspace="4" alt="Virtualmin" />Few years ago I was looking for a virtual host management system, that&#8217;s when I came across Virtualmin. The features satisfied my requirements and of course you can&#8217;t beat the free, price wise <img src='http://nirlog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I&#8217;ve been using it in an environment with 100+ virtual hosts since then, and don&#8217;t have any regret on my choice. It&#8217;s running all these years without any problem.</p>
<p><strong>What is Virtualmin<br />
</strong></p>
<p>Virtualmin is a free and open-source virtual hosting management system designed to make virtual hosting quick, reliable, and secure. It&#8217;s a <a href="http://nirlog.com/2006/03/03/webmin-web-based-admin-for-novice-and-advanced-admins-2/">Webmin</a> module, which supports the creation and management of Apache virtual hosts, BIND DNS domains, MySQL/PostgresSQL databases, and mailboxes and aliases with Sendmail, Postfix or Qmail. It  utilizes existing Webmin modules for these servers, and works with any existing system configuration, rather than needing it&#8217;s own mail server, web server and so on. There&#8217;s also a commercial version of Virtualmin that you&#8217;ve to pay for, called <a href="http://www.virtualmin.com/">Virtualmin Pro</a>, which includes some extra features and support.</p>
<p><span id="more-240"></span><br />
<strong>Virtualmin Installation</strong></p>
<p>To install the Virtualmin module, first you need a working <a href="http://nirlog.com/2006/03/03/webmin-web-based-admin-for-novice-and-advanced-admins-2/">Webmin</a>, after you&#8217;ve webmin installed it&#8217;s pretty straight forward. Download the latest version of Virtualmin from <a href="http://www.webmin.com/virtualmin.html">Virtualmin&#8217;s site</a> and install it from the webmin&#8217;s Modules installation interface.</p>
<p><strong>Login to Webmin as root &#8211;&gt; Webmin Configuration &#8211;&gt; Webmin Modules<br />
</strong><br />
Choose the Webmin installation file and click <strong>Install Module</strong><br />
<img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin-install.png" height="207" width="420" border="1" hspace="4" vspace="4" alt="Virtualmin-Install" /></p>
<p>After you complete the installation, click on <strong>Virtualmin Virtual Servers (GPL) </strong>which will lead you to the next interface, where you&#8217;ll need to re-check and refresh configuration. Click on <strong>Re-check and refresh configuration</strong> button. This is to make sure that all the required softwares are installed and configured properly. This step will check for Apache, Webalizer, MySQL, Sendmail and other softwares installation and configuration. If it finds any problem it&#8217;ll report and give you an option to correct it. If everything is ok, you&#8217;ll see a message saying <strong>&#8230;your system is ready for use by Virtualmin</strong>.<br />
<img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin-recheck-config.png" height="112" width="420" border="1" hspace="4" vspace="4" alt="Virtualmin-Recheck-Config" /></p>
<p><img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin-system-ready.png" height="273" width="420" border="1" hspace="4" vspace="4" alt="Virtualmin-System-Ready" /></p>
<p>That&#8217;s it, you&#8217;ve successfully installed Virtualmin. Now adding a new virtual host is very easy. During the addition of a new virtual host you can choose the features that you want to have for this virtual domain, e.g. if you&#8217;ll use this new virtual host for your Wordpress blog then you need a MySQL database too, for that you&#8217;ll need to choose <strong>Create MySQL database</strong> from the <strong>Enabled Features</strong> list.<br />
<img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin-add-vhost.JPG" height="351" width="420" border="1" hspace="4" vspace="4" alt="Virtualmin-Add-Vhost" /></p>
<p><strong>Virtualmin Features<br />
</strong></p>
<p>Virtualmin is a feature rich hosting management system. Here&#8217;s a <a href="http://www.virtualmin.com/vs/virtualmin-vs-cpanel">feature-to-feature comparition of Virtualmin and cPanel</a> (cPanel is compared with Virtualmin Pro, but most of the features are present in free version too). Here&#8217;re some features that I find useful:</p>
<p><strong>Single Management Interface</strong></p>
<p>All Virtual hosts can be managed from a single interface. You can see the all the existing virtual hosts and their total allocated quota and usage.<br />
<img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin-main.png" height="237" width="420" border="1" hspace="4" vspace="4" alt="Virtualmin-Main" /></p>
<p><strong>Backup Restore</strong></p>
<p>It&#8217;s very easy to perform an instant backup of selected or all domains with a single click.<br />
<img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin-backup.JPG" height="393" width="420" border="1" hspace="4" vspace="4" alt="Virtualmin-Backup" /><span style="font-size:12pt;"><br />
</span></p>
<p>You can choose a simple scheduled backup. E.g. backup daily at midnight and send you the success or failure report to your email address.<span style="font-size:12pt;"><br />
</span><img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin-scheduled-backup.png" height="249" width="420" border="1" hspace="4" vspace="4" alt="Virtualmin-Scheduled-Backup" /></p>
<p>The restore is as painless as backup, all you need to do is choose the backup file and click restore.</p>
<p><strong>Bandwidth Monitoring</strong></p>
<p>Bandwidth is money. You can conserve it by activating the <strong>Bandwidth Monitoring</strong>, there&#8217;s an option to limit bandwidth usage for each virtual host and you can choose to send an alert to the owner if he&#8217;s nearing the capacity. You can also generate a bandwidth usage graph of all virtual hosts.<br />
<img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin-traffic-report.png" height="178" width="420" border="1" hspace="4" vspace="4" alt="Virtualmin-Traffic-Report" /></p>
<p><strong>Configuration</strong></p>
<p>You can fine-tune the Virtualmin for your environment by using the <strong>Module Config</strong> menu. This is the place to setup default parameters for all the virtual hosts. E.g. you can choose to enable MySQL, but not for all virtual hosts by default, this means when you create a new virtual host you&#8217;ll be given a choice to enable or disable MySQL for this particular virtual host. There&#8217;re plenty of other configuration options you can do here.<br />
<img src="http://nirlog.com/wp-content/uploads/2007/03/virtualmin-configuration.png" height="314" width="420" border="1" hspace="4" vspace="4" alt="Virtualmin-Configuration" /></p>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2007/03/21/free-web-hosting-management-with-virtualmin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>OpenVPN Implementation</title>
		<link>http://nirlog.com/2006/11/09/openvpn-implementation/</link>
		<comments>http://nirlog.com/2006/11/09/openvpn-implementation/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 07:35:46 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://nirlog.com/2006/11/09/openvpn-implementation/</guid>
		<description><![CDATA[This guide describes how to install and configure the OpenVPN Server in Linux and clients in Windows XP and Mac OSX. There are many advanced features in OpenVPN and if you&#8217;re interested in those advanced stuff, there&#8217;s a more detailed HowTo for you. This guide was created from my successful installation, so it works for [...]]]></description>
			<content:encoded><![CDATA[<p>This guide describes how to install and configure the OpenVPN Server in Linux and clients in Windows XP and Mac OSX. There are many advanced features in OpenVPN and if you&#8217;re interested in those advanced stuff, there&#8217;s a more <a href="http://openvpn.net/howto.html">detailed HowTo</a> for you. This guide was created from my successful installation, so it works for me. If you find any problems or have suggestions please leave a comment. I&#8217;ll try my best to help. I&#8217;m sure, you know that you&#8217;re using this at your own risk <img src='http://nirlog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>In our scenario, a small office network is protected by Linux firewall and we&#8217;ll implement the secure OpenVPN to access the internal office network (File Server, Database Server and Desktop PCs) securely from anywhere in the Internet.</p>
<p><img src="http://nirlog.com/wp-content/uploads/2006/11/openvpn.jpg" height="560" width="480" border="1" hspace="4" vspace="4" alt="openvpn" title="openvpn" /></p>
<p><span id="more-204"></span><br />
<strong>OpenVPN Server Installation<br />
</strong>Download the <a href="http://dag.wieers.com/packages/openvpn/">OpenVPN</a> and <a href="http://dag.wieers.com/packages/lzo/">LZO</a> packages, these are packaged RPMs for Fedora/Redhat, which also works for CentOS and Whiteboxlinux.</p>
<p><strong>Install the packages:</strong><br />
<img src="http://nirlog.com/wp-content/uploads/2006/11/rpm-install.jpg" height="183" width="477" border="1" hspace="4" vspace="4" alt="rpm-install" title="rpm-install" /></p>
<p><strong>Enable packet forwarding between 2 interfaces in OpenVPN Server:</strong></p>
<blockquote><p>#echo 1 &gt; /proc/sys/net/ipv4/ip_forward</p></blockquote>
<p><strong>Master Certificate Authority (CA) Certificate and Key:</strong><br />
A set of scripts bundled with OpenVPN make the PKI management easier. We&#8217;ll use these scripts to generate a master CA certificate/key, a server certificate/key and 2 keys/certificates for separate clients.</p>
<p>Change your directory to <strong>easy-rsa</strong> subdirectory in your OpenVPN installation:</p>
<blockquote><p># cd /usr/share/doc/openvpn-2.0.7/easy-rsa</p></blockquote>
<p>Edit the<strong> vars</strong> file and set the <strong>KEY_COUNTRY, KEY_PROVINCE, KEY_CITY, KEY_ORG, and KEY_EMAIL</strong> parameters. My vars parameters are as following, you need to setup your own:</p>
<blockquote><p>export KEY_COUNTRY=HK<br />
export KEY_PROVINCE=KLN<br />
export KEY_CITY=Hong Kong<br />
export KEY_ORG=&#8221;OpenVPN-TEST&#8221;<br />
export KEY_EMAIL=&#8221;niranjan.kunwar@gmail.com&#8221;</p></blockquote>
<p><strong>Initialize the PKI:</strong><br />
<img src="http://nirlog.com/wp-content/uploads/2006/11/build-ca.jpg" height="335" width="480" border="1" hspace="4" vspace="4" alt="build-ca" title="build-ca" /></p>
<p><strong>Generate Certificate and Key for the Server:</strong><br />
<img src="http://nirlog.com/wp-content/uploads/2006/11/build-key-server.jpg" height="518" width="480" border="1" hspace="4" vspace="4" alt="build-key-server" title="build-key-server" /></p>
<p><strong>Generate Certificates and Keys for 2 clients:</strong></p>
<blockquote><p>#sh build-key client-win<br />
#sh build-key client-osx</p></blockquote>
<p><img src="http://nirlog.com/wp-content/uploads/2006/11/build-key-client.jpg" height="588" width="480" border="1" hspace="4" vspace="4" alt="build-key-client" title="build-key-client" /></p>
<p><strong>Generate Diffie Hellman parameters</strong><br />
<img src="http://nirlog.com/wp-content/uploads/2006/11/build-dh.jpg" height="181" width="480" border="1" hspace="4" vspace="4" alt="build-dh" title="build-dh" /></p>
<p><strong>Copy the keys and certificate to /etc/openvpn</strong></p>
<blockquote><p>#cp dh1024.pem server.crt server.key ca.crt /etc/openvpn/</p></blockquote>
<p><strong>Server Configuration file<br />
</strong>A sample configuration file <strong>server.conf </strong>can be found in <strong>/usr/share/doc/openvpn-2.0.7/sample-config-files, </strong>copy it to<strong> /etc/openvpn </strong>and customize it according to your needs<strong>. </strong>There are many possible customizations that you can do to the configuration file. In our case the VPN Server will be listening to <strong>UDP port 1194</strong>, which is the official OpenVPN port number. We&#8217;ll offer the virtual address <strong>192.168.0.0/24</strong> to the vpn clients and push the <strong>route 192.168.1.0</strong>, which is our Office LAN subnet. Following is the contents of our configuration file <strong>server.conf:</strong></p>
<blockquote><p>port 1194<br />
proto udp<br />
dev tun<br />
ca ca.crt<br />
cert server.crt<br />
key server.key  # This file should be kept secret<br />
dh dh1024.pem<br />
server 192.168.0.0 255.255.255.0<br />
ifconfig-pool-persist ipp.txt<br />
push &#8220;route 192.168.1.0 255.255.255.0&#8243;<br />
client-to-client<br />
keepalive 10 120<br />
comp-lzo<br />
user nobody<br />
group nobody<br />
persist-key<br />
persist-tun<br />
status openvpn-status.log<br />
verb 3</p></blockquote>
<p><strong>Start the OpenVpn Server:</strong></p>
<blockquote><p># service openvpn start</p></blockquote>
<p><strong>Windows Client Installation and Configuration<br />
</strong>Download the <a href="http://openvpn.se/download.html">OpenVPN GUI for Windows</a> and install it.<br />
<img src="http://nirlog.com/wp-content/uploads/2006/11/win-install.jpg" height="295" width="377" border="1" hspace="4" vspace="4" alt="Win-Install" /></p>
<p>Copy the <strong>ca.crt, client-win.crt </strong>and<strong> client-win.key</strong> files from OpenVPN Server to the windows pc at <strong>C:\Program Files\OpenVPN\config.</strong> A Sample client configuration file <strong>client.ovpn</strong> can be found in <strong>C:\Program Files\OpenVPN\sample-config</strong> directory, also copy it to <strong>C:\Program Files\OpenVPN\config </strong>and customize it according to your needs. Following is the contents of our client configuration file <strong>client.ovpn</strong>:</p>
<blockquote><p>client<br />
dev tun<br />
proto udp<br />
remote vpn.nirlog.com 1194<br />
resolv-retry infinite<br />
nobind<br />
persist-key<br />
persist-tun<br />
ca ca.crt<br />
cert client-win.crt<br />
key client-win.key<br />
ns-cert-type server<br />
comp-lzo<br />
verb 3</p></blockquote>
<p><strong>Connect:</strong><br />
<img src="http://nirlog.com/wp-content/uploads/2006/11/win-connect-1.jpg" height="282" width="434" border="1" hspace="4" vspace="4" alt="win-connect" title="win-connect" /></p>
<p><strong>Ping test:</strong><br />
<img src="http://nirlog.com/wp-content/uploads/2006/11/win-test.jpg" height="220" width="433" border="1" hspace="4" vspace="4" alt="win-test" title="win-test" /><br />
Successful ping to 192.168.0.1 shows that you can reach the server via vpn tunnel. You should be able to ping the Desktops and Servers (192.168.1.x) in the office network too.</p>
<p><strong>OS X Client Installation and Configuration:</strong><br />
Download <a href="http://www.tunnelblick.net/">Tunnelblick </a>and install it by unzipping and dragging the Tunnelblick.app to Applications folder.</p>
<p>Copy the <strong>ca.crt, client-osx.crt </strong>and<strong> client-osx.key</strong> files from OpenVPN Server to the Mac at <strong>/Users/&lt;yourname&gt;/Library/openvpn. </strong> The client configuration file <strong>openvpn.conf</strong> can be found in <strong>/Users/&lt;yourname&gt;/Library/openvpn</strong> directory, customize it according to your needs. Following is the contents of our client configuration file <strong>openvpn.conf</strong>:</p>
<blockquote><p>client<br />
dev tun<br />
proto udp<br />
remote vpn.nirlog.com 1194<br />
resolv-retry infinite<br />
nobind<br />
user nobody<br />
group nobody<br />
persist-key<br />
persist-tun<br />
ca ca.crt<br />
cert client-osx.crt<br />
key client-osx.key<br />
ns-cert-type server<br />
comp-lzo<br />
verb 3</p></blockquote>
<p><strong>Connect:</strong><br />
<img src="http://nirlog.com/wp-content/uploads/2006/11/tunnelblick-connect.jpg" height="350" width="480" border="1" hspace="4" vspace="4" alt="tunnelblick-connect" title="tunnelblick-connect" /></p>
<p><strong>Ping test:</strong><br />
<img src="http://nirlog.com/wp-content/uploads/2006/11/mac-test.jpg" height="182" width="478" border="1" hspace="4" vspace="4" alt="mac-test" title="mac-test" /><br />
Successful ping to 192.168.0.1 shows that you can reach the server via vpn tunnel. You should be able to ping the Desktops and Servers (192.168.1.xxx) in the office network too.</p>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2006/11/09/openvpn-implementation/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>BSD vs Linux</title>
		<link>http://nirlog.com/2006/09/12/bsd-vs-linux/</link>
		<comments>http://nirlog.com/2006/09/12/bsd-vs-linux/#comments</comments>
		<pubDate>Tue, 12 Sep 2006 02:47:40 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nirlog.com/2006/09/12/bsd-vs-linux/</guid>
		<description><![CDATA[I always recommend to run Linux on Servers in our office and also for our customers. When asked why, among other things I say Linux is stable, popular, have more community support, and I&#8217;m familiar and comfortable with it. But when  asked why not BSD, I say it&#8217;s similar to Linux because both are [...]]]></description>
			<content:encoded><![CDATA[<p>I always recommend to run Linux on Servers in our office and also for our customers. When asked why, among other things I say Linux is stable, popular, have more community support, and I&#8217;m familiar and comfortable with it. But when  asked why not BSD, I say it&#8217;s similar to Linux because both are Unix-style OSes but also there&#8217;re many differences&#8230; and one of them is that I&#8217;m not so familiar with the BSD <img src='http://nirlog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . A BSD user has put together <a href="http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php">everything you need to know about BSD vs Linux</a>. Recently I&#8217;ve installed a FreeBSD server for an e-commerce system and agree with the author that <strong><em>&quot;The differences between BSD and Linux all derive from basic philosophical differences. Once you understand those, everything else falls into place pretty neatly.&quot;</em></strong></p>
<blockquote>
<p>While there&#8217;s overwhelming similarity between the operating systems in most cases, there are also a lot of differences. As you probe more into the differences, you find that they emerge from deep-seated disagreements. Some are disagreements over development methodology, some over deployment and usage, some about what&#8217;s important, some about who&#8217;s important, and some about which flavor of ice cream is superior. Just comparing the surface differences doesn&#8217;t tell you anything; it&#8217;s the deeper differences that both explain and justify why each group does things the way they do.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2006/09/12/bsd-vs-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firewall Analyzer</title>
		<link>http://nirlog.com/2006/08/08/firewall-analyzer/</link>
		<comments>http://nirlog.com/2006/08/08/firewall-analyzer/#comments</comments>
		<pubDate>Tue, 08 Aug 2006 08:35:37 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nirlog.com/2006/08/08/firewall-analyzer/</guid>
		<description><![CDATA[Firewalls have become an integral part of all corporate networks. They&#8217;re the first line of defense against attacks from outside network (Internet) and also the point of control to make sure internal users (employees) are using the Internet as they&#8217;re supposed to. Recently the UTM (United Threat Management) Firewalls have become very popular. They&#8217;ve built [...]]]></description>
			<content:encoded><![CDATA[<p><img height="59" border="" width="289" style="margin: 5px; float: right" class="" alt="" src="http://nirlog.com/wp-content/uploads/2006/08/firewall_login_logo.png" title="" />Firewalls have become an integral part of all corporate networks. They&#8217;re the first line of defense against attacks from outside network (Internet) and also the point of control to make sure internal users (employees) are using the Internet as they&#8217;re supposed to. Recently the <a href="http://en.wikipedia.org/wiki/Unified_Threat_Management">UTM (United Threat Management) Firewalls</a> have become very popular. They&#8217;ve built in gateway anti-virus, anti-spam, web content filtering and IPS (Intrusion Prevention System) on top of traditional firewall functions. These firewalls generate loads and loads of log data and it&#8217;s very difficult to analyze the traffic and security event levels by just looking at the log files. So, a firewall logging and analyzing tool becomes necessary to generate easy to understand reports. After trying few softwares, I came across <a href="http://manageengine.adventnet.com/products/firewall/">Firewall Analyzer</a>, which was the exact tool I was looking for.<br />
<span id="more-182"></span></p>
<p><strong>Architecture</strong><br />Firewall Analyzer is a web based firewall log analysis tool. It has a built-in syslog server to store the logs and comes with an integrated and pre configured MySQL database.</p>
<p><img height="336" border="" width="480" style="margin: 5px" class="" alt="" src="http://nirlog.com/wp-content/uploads/2006/08/architecture.jpg" title="" /></p>
<p><strong>Firewall Compatibility</strong><br />Firewall Analyzer is compatible with most of the popular firewalls like Cisco PIX, Netscreen, Watchguard, Sonicwall, Check Point and <a href="http://manageengine.adventnet.com/products/firewall/compatible-firewalls.html">many more&#8230;</a> , some of them have configuration instruction as well. I&#8217;ve configured mine with the Netscreen firewall.</p>
<p><strong>System Requirements</strong><br />Minimum hardware requirements for installing Firewall Analyzer is:</p>
<blockquote>
<p>1GHz Pentium 4 processor or equivalent<br />512 MB of RAM<br />1 GB of disk space<br />Monitor that supports 1024&#215;768 resolution</p>
</blockquote>
<p>RAM and disk space requirement depends upon the number of devices you&#8217;re logging. They&#8217;ve <a href="http://manageengine.adventnet.com/products/firewall/system_requirement.html">more information</a> on MySql performance improvements and suggestion for RAM and Hard Disk size for different number of devices.</p>
<p><strong>Installation</strong><br />I&#8217;ve installed it in a Linux Server (CentOS 4.x). All you need to do is execute <strong>./ManageEngine_FirewallAnalyzer.bin.</strong> I think it should be fairly easy to install in the Windows too. But why would anyone buy an extra windows license, if it can be done in Linux, which is much secure and stable than Windows <img src='http://nirlog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Configuration</strong><br />The configuration is pretty straight forward. After the installation, you should start the service by executing <strong>run.sh</strong>. By default the run script is installed here:</p>
<p><strong>/root/AdventNet/ME/Firewall/bin/run.sh</strong></p>
<p> The firewall analyzer can now be accessed from a browser by typing:</p>
<p><strong>http://&lt;hostname&gt;:8500</strong></p>
<p>The default <strong>username/password</strong> are <strong>admin/admin</strong>, which can be changed after logging in.</p>
<p><img height="244" border="" width="480" style="margin: 5px" class="" alt="" src="http://nirlog.com/wp-content/uploads/2006/08/login-screen.png" title="" /></p>
<p>You need to configure your firewall and point the logging to this server&#8217;s ip with the port number it&#8217;s listening to. It uses udp port 514 and 1514 by default. In Netscreen firewall, it can be done by going to: <strong>Configuration &gt; Report Settings &gt; Syslog</strong></p>
<p><img height="97" border="" width="480" style="margin: 5px" class="" alt="" src="http://nirlog.com/wp-content/uploads/2006/08/netscreen.png" title="" /></p>
<p><strong>Features</strong></p>
<blockquote>
<ul>
<li>Enterprise-wide View of Network Activity</li>
<li>On-Demand and Real-time Reports</li>
<li>Scheduled Log Archiving</li>
<li>Advanced Data Analysis and Reporting</li>
<li>Support for most Leading Firewalls</li>
<li>Historical trending</li>
<li>Real-time, Threshold-based Alerting</li>
<li>Virus, Attack and Security Analysis</li>
</ul>
</blockquote>
<p>Firewall Analyzer helps to analyze the traffic/bandwidth patterns, identify top users, determine bandwidth usage by hosts, protocols and destinations, generate alerts on specific events, identify potential virus or hack attacks and many more&#8230;</p>
<p><img height="330" border="" width="480" style="margin: 5px" class="" alt="" src="http://nirlog.com/wp-content/uploads/2006/08/dashboard.png" title="" /></p>
<p><img height="330" border="" width="480" style="margin: 5px" class="" alt="" src="http://nirlog.com/wp-content/uploads/2006/08/live-report.png" title="" /></p>
<p>You can visit the <a href="http://demo.fwanalyzer.com/">live demo site</a> to see Firewall Analyzer in action and if you want to try it for yourself, then fully functional 30 day trial software is available for <a href="http://manageengine.adventnet.com/products/firewall/download.html">download</a>. The <a href="https://store.adventnet.com/jsp/fp.jsp?filter=10002&amp;p1=10123">pricing</a> scheme is based on annual subscription, starting at USD 295/year for 1 device pack.</p>
<p>Firewall Analyzer gives you a bird&#8217;s-eye view of your network traffic and is a very useful productivity tool to help identify and troubleshoot network problems. I think it&#8217;s fully worth it&#8217;s price.</p>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2006/08/08/firewall-analyzer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharing a single mouse and keyboard between multiple computers</title>
		<link>http://nirlog.com/2006/08/04/sharing-single-mouse-and-keyboard-between-multiple-computers/</link>
		<comments>http://nirlog.com/2006/08/04/sharing-single-mouse-and-keyboard-between-multiple-computers/#comments</comments>
		<pubDate>Fri, 04 Aug 2006 10:45:13 +0000</pubDate>
		<dc:creator>Niranjan Kunwar</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://nirlog.com/2006/08/04/sharing-single-mouse-and-keyboard-between-multiple-computers/</guid>
		<description><![CDATA[I&#8217;m using Synergy to share a single keyboard and mouse between my Mac, Windows and Linux machines. It&#8217;s a very useful software I&#8217;ve been using for quite some time. There&#8217;s a very detailed HOWTO at Engadget, if you want to set it up for yourself.
This is my desk &#8212; powered by Synergy  

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using <a href="http://synergy2.sourceforge.net/">Synergy</a> to share a single keyboard and mouse between my Mac, Windows and Linux machines. It&#8217;s a very useful software I&#8217;ve been using for quite some time. There&#8217;s a very detailed <a href="http://www.engadget.com/2005/08/09/how-to-share-your-keyboard-and-mouse-in-realtime-with-synergy/">HOWTO at Engadget</a>, if you want to set it up for yourself.</p>
<p>This is my desk &#8212; powered by Synergy <img src='http://nirlog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img height="360" border="" width="479" style="margin: 5px" class="" alt="" src="http://nirlog.com/wp-content/uploads/2006/08/mydesk.jpg" title="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://nirlog.com/2006/08/04/sharing-single-mouse-and-keyboard-between-multiple-computers/feed/</wfw:commentRss>
		<slash:comments>-26</slash:comments>
		</item>
	</channel>
</rss>
