<?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>ourmon network+analysis nms networking security | /var/logs/paulooi.log</title>
	<atom:link href="https://logs.paulooi.com/tag/ourmon-networkanalysis-nms-networking-security/feed" rel="self" type="application/rss+xml" />
	<link>https://logs.paulooi.com</link>
	<description>Systems Admin, Web Development and etc</description>
	<lastBuildDate>Tue, 25 Jan 2011 08:44:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>OURMON Installation and Configuration on FreeBSD 7 with Multi-threading Support</title>
		<link>https://logs.paulooi.com/multi-thread-ourmon-in-freebsd.php</link>
					<comments>https://logs.paulooi.com/multi-thread-ourmon-in-freebsd.php#comments</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Wed, 25 Jun 2008 15:57:38 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[ourmon network+analysis nms networking security]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=264</guid>

					<description><![CDATA[<p>OURMON is popular known as open source Network Monitoring and Anomaly Detection System. It&#8217;s very useful for a web hosting provider or Internet Service Provider to study their network behavior and detection for any network attack such as DoS or...</p>
The post <a href="https://logs.paulooi.com/multi-thread-ourmon-in-freebsd.php">OURMON Installation and Configuration on FreeBSD 7 with Multi-threading Support</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>OURMON is popular known as open source Network Monitoring and Anomaly Detection System. It&#8217;s very useful for a web hosting provider or Internet Service Provider to study their network behavior and detection for any network attack such as DoS or DDoS.</p>
<p>Beside study your network behavior, it also can analyze your network protocols activities, tcp w0rm activity, p2p activity and etc.</p>
<p>Here is the step by step OURMON installation and configuration on FreeBSD with multi-threading support.</p>
<p>OUR source package can be downloaded on official <a href="http://sourceforge.net/projects/ourmon" target="_blank">sourceforget download page</a>. I strongly suggest that do not install OURMON from port (due to the update on the package is quite slow), but before proceed on OURMON source install, there are several dependencies need to be installed;</p>
<p><strong>PCRE</strong></p>
<p><em>cd /usr/ports/devel/pcre &amp;&amp; make install clean distclean</em></p>
<p><strong>libpcap</strong></p>
<p><em>cd /usr/ports/net/libpcap &amp;&amp; make install clean distclean</em></p>
<p><strong>RRDTool</strong></p>
<p><em>cd /usr/ports/databases/rrdtool &amp;&amp; make install clean distclean</em></p>
<p><strong>Apache Web Server </strong></p>
<p><em>cd /usr/ports/www/apache20 &amp;&amp; make install clean distclean</em></p>
<p><strong>OURMON Installation and Configuration</strong></p>
<p>After above dependencies has been installed, now we proceed with OURMON installation and configuration;</p>
<p>untar yor ourmon package and your will see a folder name <em>mrourmon</em>. Copy the folder to /usr/local;</p>
<p><em>cp -rf mrourmon /usr/local/</em></p>
<p>In order to enable multi-threading support, there are some changes need to be made on your OURMON&#8217;s Makefile.</p>
<p><em>cd /usr/local/mrourmon/src/ourmon<br />
vi Makefile.bsd</em></p>
<p>On line 27 and 30, uncomment the line which look like below;</p>
<p><em>CFLAGS=-O4 -DBSD -DTHREAD<br />
LFLAGS=-O4 -static -DTHREAD</em></p>
<p>Also on line 18, change the BINDDIR to the directory that we are going to install ourmon;</p>
<p><em>BINDIR=/usr/local/mrourmon/bin</em></p>
<p>After that, save the file and we are ready to roll, go to OURMON root directory and run configure.pl for installation;</p>
<p><em>cd /usr/local/mrourmon</em><br />
<em>./configure</em></p>
<p>Follow the on screen guide to go through the installation, after ourmon is install, we are ready to fire it up&#8230; But there are minor changes need to be made in order to support multi-threading. Open up ourmon start up file and make the below changes;</p>
<p><em>vi /usr/local/etc/rc.d/ourmon.sh</em></p>
<p>On line 11, add extra argument (-T 2 ) into OURMON launch command and it will look like this;</p>
<p><em>/usr/local/mrourmon/bin/ourmon -T 2 -a 30 -s 256 -f /usr/local/mrourmon/etc/ourmon.conf -i bce1 -D /usr/local/mrourmon/tmp &amp;</em></p>
<p>the argument -T 2 is to spawn 2 ourmon processes, if you have more processor on your server, you might want to add more; after that monitor on your server load, see whether it will crash your server or not <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Run top command and monitor on your server load.</p>
<p><a href="https://logs.paulooi.com/wp-content/photos/08/june/ourmon-load.jpg"><img fetchpriority="high" decoding="async" src="https://logs.paulooi.com/wp-content/photos/08/june/_ourmon-load.jpg" alt="" width="520" height="228" /></a>.</p>
<p><strong>Apache Configuration</strong></p>
<p>By default, OURMON web html files are located at <em>/usr/local/www/data/ourmon</em>, we suggest that you setup virtualhost to access to OURMON from your web browser;</p>
<p><em>NameVirtualHost *:80</p>
<p>ServerAdmin sysadm@systems.takizo.com<br />
ServerName ourmon.systems.takizo.com</em></p>
<p><em> DocumentRoot /usr/local/mrourmon/web.pages</em></p>
<p><em><br />
AllowOverride All<br />
Order Deny,Allow<br />
Deny from all<br />
Allow from 202.188.1.5 # only allow authorized IP Address to access your OURMON.<br />
</em></p>
<p><em> ErrorLog /var/log/ourmon-error_log<br />
CustomLog /var/log/ourmon-access_log common<br />
</em></p>
<p>You might also interest to change the viewing of OURMON site at your own convenience at <em>/usr/local/www/data/ourmon/index.html</em>, remember to make a copy before you make any changes.</p>
<p>Below are some graph that shown on our OURMON page;</p>
<p><a href="https://logs.paulooi.com/wp-content/photos/08/june/ourmon-01.jpg"><img decoding="async" src="https://logs.paulooi.com/wp-content/photos/08/june/_ourmon-01.jpg" alt="" width="520" height="183" /></a></p>
<p><a href="https://logs.paulooi.com/wp-content/photos/08/june/ourmon-02.jpg"><img decoding="async" src="https://logs.paulooi.com/wp-content/photos/08/june/_ourmon-02.jpg" alt="" width="520" height="185" /></a></p>
<p><a href="https://logs.paulooi.com/wp-content/photos/08/june/ourmon-03.jpg"><img loading="lazy" decoding="async" src="https://logs.paulooi.com/wp-content/photos/08/june/_ourmon-03.jpg" alt="" width="520" height="230" /></a></p>
<p>updated : 19/10/2008</p>
<p>1. when start ourmon with &#8220;/usr/local/etc/rc.d/ourmon.sh start&#8221; return error :</p>
<p>sysctl: unknown oid &#8216;debug.bpf_bufsize&#8217;<br />
sysctl: unknown oid &#8216;debug.bpf_maxbufsize&#8217;</p>
<p>change &#8220;sysctl -w debug.bpf_bufsize=8388608&#8221; &amp; &#8220;sysctl -w debug.bpf_maxbufsize=8388608&#8221; in /usr/local/etc/rc.d/ourmon.sh to &#8220;sysctl -w net.bpf.bufsize=8388608&#8221; &amp; &#8220;sysctl -w net.bpf.maxbufsize=8388608&#8221; to solve the error.</p>
<p>2. should the promicuous interface not picking up any traffic, bring it down (e.g. ifconfig rl0 down) and bring it up (ifconfig rl0 up) again should do the trick. Use tcpdump -i rl0 to see if it see any traffice.</p>The post <a href="https://logs.paulooi.com/multi-thread-ourmon-in-freebsd.php">OURMON Installation and Configuration on FreeBSD 7 with Multi-threading Support</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/multi-thread-ourmon-in-freebsd.php/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
