<?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>System Network Programming Solution - Linux - windows - centos- security- cpanel - plesk -directadmin helm&#187; Security</title>
	<atom:link href="http://thegioinguonmo.com/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://thegioinguonmo.com</link>
	<description>SHARING EVERYTHING</description>
	<lastBuildDate>Mon, 06 Feb 2012 09:45:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to secure the SSHD service?</title>
		<link>http://thegioinguonmo.com/os/linux/how-to-secure-the-sshd-service.html</link>
		<comments>http://thegioinguonmo.com/os/linux/how-to-secure-the-sshd-service.html#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:40:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[PermitRootLogin]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[root login]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSHD]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1056</guid>
		<description><![CDATA[SSH service can be secured in various ways like changing the SSH port, changing the ssh protocol,  ssh ListenAddress, disable root login with the PermitRootLogin parameter, allowing ssh access to specific users, restricting SSH access to specific IPs etc. These steps will make sure SSH service on your server is secure. Edit the SSHD configuration [...]]]></description>
			<content:encoded><![CDATA[<p>SSH service can be secured in various ways like <strong>changing the SSH port, changing the ssh protocol,  ssh ListenAddress, disable root login with the PermitRootLogin parameter, allowing ssh access to specific users, restricting SSH access to specific IPs</strong> etc. These steps will make sure SSH service on your server is secure.</p>
<p>Edit the SSHD configuration and make the changes listed below:</p>
<blockquote>
<pre class="brush:plain">    vi /etc/ssh/sshd_config</pre>
</blockquote>
<p><strong>1)</strong> Set the default SSH port 22 to a higher value, by changing the ‘Port’ directive</p>
<blockquote>
<pre class="brush:plain">    Port 2233</pre>
</blockquote>
<p><strong>2) </strong>To make SSH work on a secure protocol, set the ‘Protocol’ directive as</p>
<blockquote>
<pre class="brush:plain">    Protocol 2</pre>
</blockquote>
<p><strong>3) </strong>Bind SSHD service to a specific IP of the server, which you can achieve by replacing ‘#ListenAddress’ directive to</p>
<blockquote>
<pre class="brush:plain">    ListenAddress xx.xx.xx.xx</pre>
</blockquote>
<p>where, xx.xx.xx.xx is the additional IP of the server and the only one which will allow you to SSH into the server.</p>
<p><strong>4) </strong>To disable root access, set ‘PermitRootLogin’ directive to ‘no’</p>
<blockquote>
<pre class="brush:plain">    PermitRootLogin no</pre>
</blockquote>
<p>Make sure you add an alternate SSH user on the server who have privileges to gain root access before disabling this option.</p>
<p><strong>5)</strong> To allow SSH access to specific users, add the “AllowUsers” directive at the end of the configuration</p>
<blockquote>
<pre class="brush:plain">    AllowUsers user1 user2</pre>
</blockquote>
<p>This will allow SSH access to users user1 and user2. You need to allow SSH access to the user who is allowed to gain root access incase root access is disabled.</p>
<p>Save the file and restart the sshd service</p>
<blockquote>
<pre class="brush:plain">    service sshd restart</pre>
</blockquote>
<p><strong>6)</strong> Using the <strong>TCP wrappers i.e. hosts.allow and hosts.deny</strong>, you can restrict SSH access to specific IPs i.e. edit /etc/hosts.allow and add the following</p>
<blockquote>
<pre class="brush:plain">sshd : yourlocalip: allow
sshd : all : deny</pre>
</blockquote>
<p><strong>“yourlocalip”</strong> is the one assigned by your ISP. It will restrict SSH access to your local IP only.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/how-to-secure-the-sshd-service.html" title="/etc/hosts allow ssh only">/etc/hosts allow ssh only</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/how-to-secure-the-sshd-service.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress </title>
		<link>http://thegioinguonmo.com/security/wordpress.html</link>
		<comments>http://thegioinguonmo.com/security/wordpress.html#comments</comments>
		<pubDate>Thu, 12 Jan 2012 09:43:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[TLD]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=275</guid>
		<description><![CDATA[I. VULNERABILITY WordPress &#60;= 2.8.3 Remote admin reset password II. BACKGROUND WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time. More simply, WordPress is what you use when you want to work with your blogging software, not fight it. [...]]]></description>
			<content:encoded><![CDATA[<p>I. VULNERABILITY<br />
WordPress &lt;= 2.8.3 Remote admin reset password</p>
<p>II. BACKGROUND</p>
<p>WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time. More simply, WordPress is what you use when you want to work with your blogging software, not fight it.<br />
III. DESCRIPTION</p>
<p>The way WordPress handle a password reset looks like this: You submit your email adress or username via this form /wp-login.php?action=lostpassword ;<br />
Wordpress send you a reset confirmation like that via email:</p>
<p>”<br />
Someone has asked to reset the password for the following site and username. http://DOMAIN_NAME.TLD/wordpress<br />
Username: admin<br />
To reset your password visit the following address, otherwise just ignore this email and nothing will happen</p>
<p>http://DOMAIN_NAME.TLD/wordpress/wp-login.php?action=rp&amp;key=o7naCKN3OoeU2KJMMsag ”</p>
<p>You click on the link, and then WordPress reset your admin password, and sends you over another email with your new credentials.</p>
<p>Let’s see how it works:</p>
<p>wp-login.php:<br />
…[snip]….<br />
line 186:<br />
function reset_password($key) {</p>
<p>global $wpdb;</p>
<p>$key = preg_replace(’/[^a-z0-9]/i’, ”, $key);</p>
<p>if ( empty( $key ) )</p>
<p>return new WP_Error(’invalid_key’, __(’Invalid key’));</p>
<p>$user = $wpdb-&gt;get_row($wpdb-&gt;prepare(”SELECT * FROM $wpdb-&gt;users WHERE user_activation_key = %s”, $key));</p>
<p>if ( empty( $user ) )</p>
<p>return new WP_Error(’invalid_key’, __(’Invalid key’)); …[snip]….<br />
line 276:<br />
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ‘login’; $errors = new WP_Error();</p>
<p>if ( isset($_GET['key']) )</p>
<p>$action = ‘resetpass’;</p>
<p>// validate action so as to default to the login screen if ( !in_array($action, array(’logout’, ‘lostpassword’, ‘retrievepassword’, ‘resetpass’, ‘rp’, ‘register’, ‘login’)) &amp;&amp; false === has_filter(’login_form_’ . $action) )</p>
<p>$action = ‘login’;<br />
…[snip]….</p>
<p>line 370:</p>
<p>break;</p>
<p>case ‘resetpass’ :<br />
case ‘rp’ :</p>
<p>$errors = reset_password($_GET['key']);</p>
<p>if ( ! is_wp_error($errors) ) {<br />
wp_redirect(’wp-login.php?checkemail=newpass’);<br />
exit();</p>
<p>}</p>
<p>wp_redirect(’wp-login.php?action=lostpassword&amp;error=invalidkey’); exit();</p>
<p>break;<br />
…[snip ]…</p>
<p>You can abuse the password reset function, and bypass the first step and then reset the admin password by submiting an array to the $key variable.</p>
<p>Source:</p>
<p>IV. PROOF OF CONCEPT</p>
<p>A web browser is sufficiant to reproduce this Proof of concept: http://DOMAIN_NAME.TLD/wp-login.php?action=rp&amp;key[]= The password will be reset without any confirmation.</p>
<p>V. BUSINESS IMPACT</p>
<p>An attacker could exploit this vulnerability to compromise the admin account of any wordpress/wordpress-mu &lt;= 2.8.3</p>
<p>VI. SYSTEMS AFFECTED</p>
<p>All</p>
<p>VII. SOLUTION</p>
<p>No patch aviable for the moment.</p>
<p>VIII. REFERENCES</p>
<p>http://seclists.org/fulldisclosure/2009/Aug/0113.html</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/security/wordpress.html" title="tar -xzf csf tgz CPANEL">tar -xzf csf tgz CPANEL</a> (1)</li><li><a href="http://thegioinguonmo.com/security/wordpress.html" title="wp-login php?action=resetpass login=admin key=">wp-login php?action=resetpass login=admin key=</a> (1)</li><li><a href="http://thegioinguonmo.com/security/wordpress.html" title="wp_login action wordpress">wp_login action wordpress</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/security/wordpress.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I install Rootkit Hunter?</title>
		<link>http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html</link>
		<comments>http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html#comments</comments>
		<pubDate>Wed, 11 Jan 2012 21:40:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Note It]]></category>
		<category><![CDATA[tar zxf]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=273</guid>
		<description><![CDATA[Download the gzipped tarball, extract it and run the installation script. download: # wget http://downloads.rootkit.nl/rkhunter-&#60;version&#62;.tar.gz Note: It doesn’t matter where you save the tarball extract: # tar zxf rkhunter-&#60;version&#62;.tar.gz installation: # cd rkhunter # ./installer.sh (Source: http://www.evolution-security.com/) (Source: http://www.rootkit.nl/articles/rootkit_hunter_faq.html) Incoming search terms:centos xen windows windows\system32\config\system (3)qmhandle centos install wget (2)rootkit hunter windows 2012 (1)rootkit hunter [...]]]></description>
			<content:encoded><![CDATA[<p>Download the gzipped tarball, extract it and run the installation script.<br />
download:<br />
# wget <a rel="nofollow" target="_blank" href="http://downloads.rootkit.nl/rkhunter-" target="_blank">http://downloads.rootkit.nl/rkhunter-</a>&lt;version&gt;.tar.gz<br />
Note: It doesn’t matter where you save the tarball</p>
<p>extract:<br />
# tar zxf rkhunter-&lt;version&gt;.tar.gz</p>
<p>installation:<br />
# cd rkhunter<br />
# ./installer.sh</p>
<p>(Source: <a rel="nofollow" target="_blank" href="http://www.evolution-security.com/" target="_blank">http://www.evolution-security.com/</a>)<br />
(Source: <a rel="nofollow" target="_blank" href="http://www.rootkit.nl/articles/rootkit_hunter_faq.html" target="_blank">http://www.rootkit.nl/articles/rootkit_hunter_faq.html</a>)</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="centos xen windows windows\system32\config\system">centos xen windows windows\system32\config\system</a> (3)</li><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="qmhandle centos install wget">qmhandle centos install wget</a> (2)</li><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="rootkit hunter windows 2012">rootkit hunter windows 2012</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="rootkit hunter windows">rootkit hunter windows</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="plesk install rootkit">plesk install rootkit</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="linux system files libz2">linux system files libz2</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="install rootkit plesk">install rootkit plesk</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="directadmin rootkit">directadmin rootkit</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="directadmin rookit install">directadmin rookit install</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html" title="tarzxg">tarzxg</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/how-do-i-install-rootkit-hunter.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent SYN attacks</title>
		<link>http://thegioinguonmo.com/os/linux/prevent-syn-attacks.html</link>
		<comments>http://thegioinguonmo.com/os/linux/prevent-syn-attacks.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 21:49:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[queue]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=268</guid>
		<description><![CDATA[1. Enable SYN cookies mechanism in the server by the executing command: # echo 1 &#62; /proc/sys/net/ipv4/tcp_syncookies 2. Increase the backlog queue to 2048 by the command: # sysctl -w net.ipv4.tcp_max_syn_backlog=”2048″ Incoming search terms:linux mail queue maildrop permission denied (1)]]></description>
			<content:encoded><![CDATA[<p>1. Enable SYN cookies mechanism in the server by the executing command:</p>
<p># echo 1 &gt; /proc/sys/net/ipv4/tcp_syncookies</p>
<p>2. Increase the backlog queue to 2048 by the command:</p>
<p># sysctl -w net.ipv4.tcp_max_syn_backlog=”2048″</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/prevent-syn-attacks.html" title="linux mail queue maildrop permission denied">linux mail queue maildrop permission denied</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/prevent-syn-attacks.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to: List/Ban IP</title>
		<link>http://thegioinguonmo.com/os/linux/how-to-listban-ip.html</link>
		<comments>http://thegioinguonmo.com/os/linux/how-to-listban-ip.html#comments</comments>
		<pubDate>Sat, 07 Jan 2012 09:52:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[IPHERE]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Listing]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=202</guid>
		<description><![CDATA[CODE Banning an IP iptables -A INPUT -p all -s IPHERE/32 -j DROP CODE Unbanning and IP iptables -D INPUT -p all -s IPHERE/32 -j DROP CODE Listing the last five ip’s with the most connections netstat -atnp -A inet &#124; grep “:80″ &#124; awk -F ” ” ‘{print $5} ‘ &#124; awk -F “:” [...]]]></description>
			<content:encoded><![CDATA[<div>CODE</div>
<div>Banning an IP<br />
iptables -A INPUT -p all -s IPHERE/32 -j DROP</div>
<div>CODE</div>
<div>Unbanning and IP<br />
iptables -D INPUT -p all -s IPHERE/32 -j DROP</div>
<div>CODE</div>
<div>Listing the last five ip’s with the most connections<br />
netstat -atnp -A inet | grep “:80″ | awk -F ” ” ‘{print $5} ‘ | awk -F “:” ‘{print $1}’ | sort | uniq -c | sort -nr | head -5</div>
<div>CODE</div>
<p>Listing total connections<br />
netstat -nap | grep ESTABLISHED | wc -l<br />
netstat -nap | grep SYN | wc -l<br />
netstat -nap | grep TIME_WAIT | wc -l</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="adodb on directadmin">adodb on directadmin</a> (2)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="net bridge bridge-nf-call-arptables is an unknown key on oracle linux 6">net bridge bridge-nf-call-arptables is an unknown key on oracle linux 6</a> (2)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="centOS directadmin ip block">centOS directadmin ip block</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="iredmail block the dns port how to enable it">iredmail block the dns port how to enable it</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="iptables windows 2011">iptables windows 2011</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="iptables howto centos cpanel">iptables howto centos cpanel</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="iptables directadmin">iptables directadmin</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="iptables centos directadmin">iptables centos directadmin</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="centos directadmin ftp unknown problem">centos directadmin ftp unknown problem</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-listban-ip.html" title="how-to: list/ban ip thegioinguonmo">how-to: list/ban ip thegioinguonmo</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/how-to-listban-ip.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick check for a ddos via number of connections</title>
		<link>http://thegioinguonmo.com/os/linux/quick-check-for-a-ddos-via-number-of-connections.html</link>
		<comments>http://thegioinguonmo.com/os/linux/quick-check-for-a-ddos-via-number-of-connections.html#comments</comments>
		<pubDate>Thu, 05 Jan 2012 21:44:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=188</guid>
		<description><![CDATA[A quick and usefull command for checking if a server is under ddos is: netstat -anp &#124;grep ‘tcp\&#124;udp’ &#124; awk ‘{print $5}’ &#124; cut -d: -f1 &#124; sort &#124; uniq -c &#124; sort -n That will list the IPs taking the most amount of connections to a server. It is important to remember that the [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>A quick and usefull command for checking if a server is under ddos is:</p>
<p>netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n</p>
<p>That will list the IPs taking the most amount of connections to a server. It is important to remember that the ddos is becoming more sophistcated and they are using fewer connections with more attacking ips. If this is the case you will still get low number of connections even while you are under a DDOS.</p>
</div>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/quick-check-for-a-ddos-via-number-of-connections.html" title="centos ddos güvenlik">centos ddos güvenlik</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/quick-check-for-a-ddos-via-number-of-connections.html" title="centos malicious script scan">centos malicious script scan</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/quick-check-for-a-ddos-via-number-of-connections.html" title="print $telnet-&gt;cmd \ps -ef | grep -i with awk with windows">print $telnet-&gt;cmd \ps -ef | grep -i with awk with windows</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/quick-check-for-a-ddos-via-number-of-connections.html" title="script ddos">script ddos</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/quick-check-for-a-ddos-via-number-of-connections.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding hosts which opens N+ TCP connections probably a DDoS attack</title>
		<link>http://thegioinguonmo.com/security/finding-hosts-opens-tcp-connections-ddos-attack.html</link>
		<comments>http://thegioinguonmo.com/security/finding-hosts-opens-tcp-connections-ddos-attack.html#comments</comments>
		<pubDate>Tue, 03 Jan 2012 17:13:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=2168</guid>
		<description><![CDATA[It is good to learn all the ip addresses which holds N+ tcp connection to your server. For example, if we want to list ip addresses and connection counts of hosts which has 25+ connection right now: netstat -n --tcp --udp --numeric-hosts &#124; \ grep -v 127.0.0.1 &#124; \ awk '{if (/(tcp&#124;udp)/) { print $5 [...]]]></description>
			<content:encoded><![CDATA[<p>It is good to learn all the ip addresses which holds N+ tcp connection to your server. For example, if we want to list ip addresses and connection counts of hosts which has 25+ connection right now:</p>
<pre class="brush:shell">netstat -n --tcp --udp --numeric-hosts | \
grep -v 127.0.0.1 | \
awk '{if (/(tcp|udp)/) { print $5 }}' | \
sed 's/:.*//' | \
sort | \
uniq -c | \
sort -n | \
awk '{if ($1 &gt; 25) {print "Count: "$1"\t"$2; }}'</pre>
<p>and here is an example output:</p>
<blockquote><p>Count: 26       92.80.103.61<br />
Count: 27       77.246.104.149<br />
Count: 35       88.232.169.103<br />
Count: 44       88.226.7.150</p></blockquote>
<p>If we want to list only the ip addresses, not the counter, change the last line as below:</p>
<pre class="brush:shell">awk '{if ($1 &gt; 25) {print $2; }}'</pre>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/security/finding-hosts-opens-tcp-connections-ddos-attack.html" title="networksolution ssl direct admin">networksolution ssl direct admin</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/security/finding-hosts-opens-tcp-connections-ddos-attack.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSF Not Detecting POP3 Login Failures</title>
		<link>http://thegioinguonmo.com/security/csf-detecting-pop3-login-failures.html</link>
		<comments>http://thegioinguonmo.com/security/csf-detecting-pop3-login-failures.html#comments</comments>
		<pubDate>Tue, 03 Jan 2012 16:36:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[csf]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=2150</guid>
		<description><![CDATA[This is the second time that CSF on our Cpanel server is not detecting POP3 login failures from a dictionary attack. The IP address was added on the ip deny list but still it was able to attempt to login on POP3. We have our LF_POP3D set to 20 and LF_POP3D_PERM to 1 to block [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second time that <a rel="nofollow" target="_blank" href="http://configserver.com/cp/csf.html">CSF</a> on our Cpanel server is not detecting POP3 login failures from a dictionary attack. The IP address was added on the ip deny list but still it was able to attempt to login on POP3. We have our LF_POP3D set to 20 and LF_POP3D_PERM to 1 to block the ip permanently after 20 tries. I can’t remember the CSF version when this first happened, but this time we’re running CSF version 4.65 and the latest is 4.67. Of course, the usual way for me to fix the issue is to upgrade to the latest version.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/security/csf-detecting-pop3-login-failures.html" title="csf centos directadmin">csf centos directadmin</a> (1)</li><li><a href="http://thegioinguonmo.com/security/csf-detecting-pop3-login-failures.html" title="lf_pop3d">lf_pop3d</a> (1)</li><li><a href="http://thegioinguonmo.com/security/csf-detecting-pop3-login-failures.html" title="linux csf block ip permanently">linux csf block ip permanently</a> (1)</li><li><a href="http://thegioinguonmo.com/security/csf-detecting-pop3-login-failures.html" title="what is lf_pop3d in csf">what is lf_pop3d in csf</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/security/csf-detecting-pop3-login-failures.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Securing</title>
		<link>http://thegioinguonmo.com/os/linux/server-securing.html</link>
		<comments>http://thegioinguonmo.com/os/linux/server-securing.html#comments</comments>
		<pubDate>Sat, 31 Dec 2011 16:40:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=159</guid>
		<description><![CDATA[Securing Your Server Below given are some of the steps that can be used to secure your server. Disable identification output for Apache To disable the version output for proftp, SSH into server and login as root. At command prompt type: pico /etc/httpd/conf/httpd.conf Scroll (way) down and change the following line to ServerSignature Off Restart [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Securing Your Server</strong></p>
<p>Below given are some of the steps that can be used to secure your server.</p>
<p>Disable identification output for Apache</p>
<p>To disable the version output for proftp, SSH into server and login as root.</p>
<p>At command prompt type: pico /etc/httpd/conf/httpd.conf</p>
<p>Scroll (way) down and change the following line to</p>
<p>ServerSignature Off</p>
<p>Restart Apache</p>
<p>At command prompt type: /etc/rc.d/init.d/httpd restart</p>
<p>These are applications that will help to secure your server.</p>
<p>Install and run chkrootkit</p>
<p>To install chrootkit, SSH into server and login as root.</p>
<p>At command prompt type: cd /root/</p>
<p>At command prompt type: wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz</p>
<p>At command prompt type: tar xvzf chkrootkit.tar.gz</p>
<p>At command prompt type: cd chkrootkit-0.44</p>
<p>At command prompt type: make sense</p>
<p>To run chkrootkit</p>
<p>At command prompt type: /root/chkrootkit-0.44/chkrootkit</p>
<p>Make sure you run it on a regular basis, perhaps including it in a cron job.</p>
<p>Install APF Firewall</p>
<p>To install APF, SSH into server and login as root.</p>
<p>At command prompt type: cd /root/</p>
<p>At command prompt type: wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz</p>
<p>At command prompt type: tar -xvzf apf-current.tar.gz</p>
<p>At command prompt type: rm -f apf-current.tar.gz</p>
<p>At command prompt type: cd apf-0.9.4-6</p>
<p>At command prompt type: sh ./install.sh</p>
<p>After APF has been installed, you need to edit the configuration file.</p>
<p>At command prompt type: cd /etc/apf</p>
<p>At command prompt type: pico -w conf.apf</p>
<p>Scroll down and find</p>
<p>USE_DS=”0″</p>
<p>change it to</p>
<p>USE_DS=”1″</p>
<p>Now scroll down and configure the Ports. The following ports are required for CPanel:</p>
<p>Code:</p>
<p>Common ingress (inbound) TCP ports<br />
IG_TCP_CPORTS=”21,22,25,53,80,110,143,465,953,993,995,2082,2083,2084,2086,2087,2095,2096,3306,6666,7786,3000_3500″</p>
<p>Note: If you changed the port for SSH, be sure to include that port and remove port 22.</p>
<p>—–<br />
21 FTP (TCP)<br />
22 SSH (TCP)<br />
25 SMTP (TCP)<br />
53 DNS – Domain Name Server (TCP)<br />
80 HTTP (TCP)<br />
110 POP3 (TCP)<br />
143 IMAP (TCP)<br />
443 HTTPS (TCP)<br />
465 sSMTP (TCP)<br />
953 ??BIND??<br />
993 IMAP4 protocol over TLS/SSL (TCP)<br />
995 POP3 protocol over TLS/SSL (was spop3) (TCP)<br />
2082 CPANEL (http://sitename.com:2082) (TCP)<br />
2083 CPANEL SSL (https://sitename.com:2083) (TCP)<br />
2084 entropychat server (disable from CPANEL service manager if not used) (TCP)<br />
2086 WHM (http://sitename.com:2086) (TCP)<br />
2087 WHM SSL (https://sitename.com:2087) (TCP)<br />
2095 WebMail (http://sitename.com:2095) (TCP)<br />
2096 WebMail SSL (https://sitename.com:2096)<br />
3306 mySQL remote access (TCP)<br />
6666 Melange chat Server (disable from CPANEL service manager if not used) (TCP)<br />
7786 Interchange (TCP)<br />
3000_3500<br />
—–<br />
5100 for ASP,<br />
8080 and 8443 for JSP if you use them.<br />
—–</p>
<p>Code:</p>
<p>Common ingress (inbound) UDP ports<br />
IG_UDP_CPORTS=”53,6277</p>
<p>—–<br />
53 DNS – Domain Name Server<br />
6277 SpamAssassin / DCC (email scanning)<br />
—–</p>
<p>Code:</p>
<p>Common ICMP (inbound) types<br />
IG_ICMP_TYPES=”3,5,11,0,30,8″</p>
<p>—–<br />
0 Echo Reply<br />
3 Destination Unreachable<br />
5 Destination Unreachable<br />
8 Echo<br />
11 Time Exceeded<br />
30 Traceroute<br />
—–</p>
<p>Code:</p>
<p>Common egress (outbound) TCP ports<br />
EG_TCP_CPORTS=”21,25,37,53,80,110,113,#123,443,43,873,953,2089,2703,3306″</p>
<p>—–<br />
21 FTP<br />
25 SMTP<br />
37 Required for CPANEL Licensing<br />
53 DNS – Domain Name Server<br />
80 HTTP<br />
110 POP3 (if you have scripts that need to retrieve email via POP, e.g. HelpDesk)<br />
113 Authentication Protocol (AUTH)<br />
123 NTP (Network Time)<br />
443 HTTPS<br />
43 WHOIS<br />
873 rsync (CPanel updates)<br />
953 BIND ??<br />
2089 Required for CPANEL Licensing<br />
2703 Razor (email scanning)<br />
3306 mySQL remote access<br />
—–</p>
<p>Code:</p>
<p>Common egress (outbound) UDP ports<br />
EG_UDP_CPORTS=”20,21,53,873,953,6277″</p>
<p>—–<br />
20 ftp-data<br />
21 FTP<br />
53 DNS – Domain Name Server<br />
873 rsync<br />
953 BIND ??<br />
6277 SpamAssassin / DCC (email scanning)<br />
—–</p>
<p>Code:</p>
<p>Common ICMP (outbound) types<br />
EG_ICMP_TYPES=”all”</p>
<p>Save the changes then exit.</p>
<p>To start APF</p>
<p>At command prompt type: /usr/local/sbin/apf -s</p>
<p>APF commands are:</p>
<p>-s start<br />
-r restart<br />
-f flush – stop<br />
-l list<br />
-st status<br />
-a HOST allow HOST<br />
-d HOST deny HOST</p>
<p>Log out of SSH and then login again.</p>
<p>After you are sure everything is working fine, change the DEV option</p>
<p>At command prompt type: cd /etc/apf</p>
<p>At command prompt type: pico -w conf.apf</p>
<p>Scroll down and find</p>
<p>DEVM=”1″</p>
<p>change it to</p>
<p>DEVM=”0″</p>
<p>Save changes, exit and then restart firewall,</p>
<p>At command prompt type: /usr/local/sbin/apf -r</p>
<p>Install BFD (Brute Force Detection)</p>
<p>To install BFD, SSH into server and login as root.</p>
<p>At command prompt type: cd /root/</p>
<p>At command prompt type: wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz</p>
<p>At command prompt type: tar -xvzf bfd-current.tar.gz</p>
<p>At command prompt type: cd bfd-0.4</p>
<p>At command prompt type: ./install.sh</p>
<p>After BFD has been installed, you need to edit the configuration file.</p>
<p>At command prompt type: pico /usr/local/bfd/conf.bfd</p>
<p>Under Enable brute force hack attempt alerts:</p>
<p>Find</p>
<p>ALERT_USR=”0″</p>
<p>and change it to</p>
<p>ALERT_USR=”1″</p>
<p>Find</p>
<p>EMAIL_USR=”root”</p>
<p>and change it to</p>
<p>EMAIL_USR=”your@email.com”</p>
<p>Save the changes then exit.</p>
<p>To start BFD</p>
<p>At command prompt type: /usr/local/sbin/bfd -s</p>
<p>Modify LogWatch</p>
<p>Logwatch is a customizable log analysis system. It parses through your system’s logs for a given period of time and creates a report analyzing areas that you specify, in as much detail as you require. Logwatch is already installed on most CPanel servers.</p>
<p>To modify LogWatch, SSH into server and login as root.</p>
<p>At command prompt type: pico -w /etc/log.d/conf/logwatch.conf</p>
<p>Scroll down to</p>
<p>MailTo = root</p>
<p>and change to</p>
<p>Mailto = your@email.com</p>
<p>Note: Set the e-mail address to an offsite account incase you get hacked.</p>
<p>Now scroll down to</p>
<p>Detail = Low</p>
<p>Change that to Medium, or High…</p>
<p>Detail = 5 or Detail = 10</p>
<p>Note: High will give you more detailed logs with all actions.</p>
<p>Save and exit.<br />
These are measures that can be taken to secure your server, with SSH access.</p>
<p>Udate OS, Apache and CPanel to the latest stable versions.</p>
<p>This can be done from WHM/CPanel.</p>
<p>Restrict SSH Access</p>
<p>To restrict and secure SSH access, bind sshd to a single IP that is different than the main IP to the server, and on a different port than port 22.</p>
<p>SSH into server and login as root.</p>
<p>Note: You can download Putty by Clicking Here. It’s a clean running application that will not require installation on Windows-boxes.</p>
<p>At command prompt type: pico /etc/ssh/sshd_config</p>
<p>Scroll down to the section of the file that looks like this:</p>
<p>Code:</p>
<p>#Port 22<br />
#Protocol 2, 1<br />
#ListenAddress 0.0.0.0<br />
#ListenAddress ::</p>
<p>Uncomment and change</p>
<p>#Port 22</p>
<p>to look like</p>
<p>Port 5678 (choose your own 4 to 5 digit port number (49151 is the highest port number)</p>
<p>Uncomment and change</p>
<p>#Protocol 2, 1</p>
<p>to look like</p>
<p>Protocol 2</p>
<p>Uncomment and change</p>
<p>#ListenAddress 0.0.0.0</p>
<p>to look like</p>
<p>ListenAddress 123.123.123.15 (use one of your own IP Addresses that has been assigned to your server)</p>
<p>Note 1: If you would like to disable direct Root Login, scroll down until you find</p>
<p>#PermitRootLogin yes</p>
<p>and uncomment it and make it look like</p>
<p>PermitRootLogin no</p>
<p>Save by pressing Ctrl o on your keyboard, and then exit by pressing Ctrl x on your keyboard.</p>
<p>Note 2: You can also create a custome nameserver specifically for your new SSH IP address. Just create one called something like ssh.xyz.com or whatever. Be sure to add an A address to your zone file for the new nameserver.</p>
<p>Now restart SSH</p>
<p>At command prompt type: [b]/etc/rc.d/init.d/sshd restart[b]</p>
<p>Exit out of SSH, and then re-login to SSH using the new IP or nameserver, and the new port.</p>
<p>Note: If you should have any problems, just Telnet into your server, fix the problem, then SSH in again. Telnet is a very unsecure protocol, so change your root password after you use it.</p>
<p>Disable Telnet</p>
<p>To disable telnet, SSH into server and login as root.</p>
<p>At command prompt type: pico -w /etc/xinetd.d/telnet</p>
<p>change disable = no to disable = yes</p>
<p>Save and Exit</p>
<p>At command prompt type: /etc/init.d/xinetd restart</p>
<p>Server e-mail everytime someone logs in as root</p>
<p>To have the server e-mail you everytime someone logs in as root, SSH into server and login as root.</p>
<p>At command prompt type: pico .bash_profile</p>
<p>Scroll down to the end of the file and add the following line:</p>
<p>echo ‘ALERT – Root Shell Access on:’ `date` `who` | mail -s “Alert: Root Access from `who | awk ‘{print $6}’`” your@email.com</p>
<p>Save and exit.</p>
<p>Set an SSH Legal Message</p>
<p>To an SSH legal message, SSH into server and login as root.</p>
<p>At command prompt type: pico /etc/motd</p>
<p>Enter your message, save and exit.</p>
<p>Note: I use the following message…</p>
<p>Code:</p>
<p>ALERT! You are entering a secured area! Your IP and login information<br />
have been recorded. System administration has been notified.</p>
<p>This system is restricted to authorized access only. All activities on<br />
this system are recorded and logged. Unauthorized access will be fully<br />
investigated and reported to the appropriate law enforcement agencies.</p>
<p>Now everytime someone logs in as root, they will see this message… go ahead a try it.</p>
<p>Disable Shell Accounts</p>
<p>To disable any shell accounts hosted on your server SSH into server and login as root.</p>
<p>At command prompt type: locate shell.php</p>
<p>Also check for:</p>
<p>locate irc<br />
locate eggdrop<br />
locate bnc<br />
locate BNC<br />
locate ptlink<br />
locate BitchX<br />
locate guardservices<br />
locate psyBNC<br />
locate .rhosts</p>
<p>These are items inside of WHM/Cpanel that should be changed to secure your server.</p>
<p>Goto Server Setup =&gt;&gt; Tweak Settings</p>
<p>Check the following items…</p>
<p>Under Domains</p>
<p>Prevent users from parking/adding on common internet domains. (ie hotmail.com, aol.com)</p>
<p>Under Mail</p>
<p>Attempt to prevent pop3 connection floods<br />
Default catch-all/default address behavior for new accounts – blackhole</p>
<p>Under System</p>
<p>Use jailshell as the default shell for all new accounts and modified accounts</p>
<p>Goto Server Setup =&gt;&gt; Tweak Security</p>
<p>Enable php open_basedir Protection</p>
<p>Enable mod_userdir Protection</p>
<p>Disabled Compilers for unprivileged users.</p>
<p>Goto Server Setup =&gt;&gt; Manage Wheel Group Users</p>
<p>Remove all users except for root and your main account from the wheel group.</p>
<p>Goto Server Setup =&gt;&gt; Shell Fork Bomb Protection</p>
<p>Enable Shell Fork Bomb/Memory Protection</p>
<p>When setting up Feature Limits for resellers in Resellers =&gt;&gt; Reseller Center, under Privileges always disable Allow Creation of Packages with Shell Access and enable Never allow creation of accounts with shell access; under Root Access disable All Features.</p>
<p>Goto Service Configuration =&gt;&gt; FTP Configuration</p>
<p>Disable Anonymous FTP</p>
<p>Goto Account Functions =&gt;&gt; Manage Shell Access</p>
<p>Disable Shell Access for all users (except yourself)</p>
<p>Goto Mysql =&gt;&gt; MySQL Root Password</p>
<p>Change root password for MySQL</p>
<p>Goto Security and run Quick Security Scan and Scan for Trojan Horses often. The following and similar items are not Trojans:</p>
<p>/sbin/depmod<br />
/sbin/insmod<br />
/sbin/insmod.static<br />
/sbin/modinfo<br />
/sbin/modprobe<br />
/sbin/rmmod<br />
Reply With Quote Multi-Quote This Message<br />
000000000<br />
View Public Profile<br />
Send a private message to 000000000<br />
Visit 000000000’s homepage!<br />
Find all posts by 000000000<br />
Add 000000000 to Your Buddy List<br />
#2 Add to 000000000’s Reputation Report Post<br />
Old 10-02-2004, 08:56 PM<br />
000000000 000000000 is offline<br />
Registered User</p>
<p>Note: There will be several listings that will be OS/CPanel related. Examples are</p>
<p>/home/cpapachebuild/buildapache/php-4.3.1/ext/ircg<br />
/usr/local/cpanel/etc/sym/eggdrop.sym<br />
/usr/local/cpanel/etc/sym/bnc.sym<br />
/usr/local/cpanel/etc/sym/psyBNC.sym<br />
/usr/local/cpanel/etc/sym/ptlink.sym<br />
/usr/lib/libncurses.so<br />
/usr/lib/libncurses.a<br />
etc.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="basic analysis and security engine performance">basic analysis and security engine performance</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="securing centos">securing centos</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="plesk logwatch notifications email address change">plesk logwatch notifications email address change</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="plesk chkrootkit">plesk chkrootkit</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="how to install libpcap-0 9 4 in linux">how to install libpcap-0 9 4 in linux</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="how to disable ftp anonymouse root login directadmin">how to disable ftp anonymouse root login directadmin</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="directadmin pecl">directadmin pecl</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="centos restrict ssh ip">centos restrict ssh ip</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="centos flush dns directadmin">centos flush dns directadmin</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/server-securing.html" title="securing directadmin">securing directadmin</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/server-securing.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intrusion Detection With BASE And Snort &#8211; Part4</title>
		<link>http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part4.html</link>
		<comments>http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part4.html#comments</comments>
		<pubDate>Sun, 25 Dec 2011 04:40:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[snort]]></category>
		<category><![CDATA[Submit Query]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=48</guid>
		<description><![CDATA[BASE web page setup Open your favorite web browser and go to: http://www.example.com/base-1.2.5/setup If all is setup okay you should see the BASE Setup Program page: Click on Continue step 1 of 5: Enter the path to ADODB (/var/www/adodb): click on Submit Query step 2 of 5: Enter the needed info on the next screen: [...]]]></description>
			<content:encoded><![CDATA[<h3>BASE web page setup</h3>
<p>Open your favorite web browser and go to: http://www.example.com/base-1.2.5/setup<br />
If all is setup okay you should see the BASE Setup Program page:</p>
<p><img src="http://static.howtoforge.com/images/snort_base_debian/base0.png" alt="base0 Intrusion Detection With BASE And Snort   Part4" width="550" height="207" title="Intrusion Detection With BASE And Snort   Part4" /></p>
<p><strong>Click on Continue</strong></p>
<p><strong>step 1 of 5</strong>:<br />
Enter the path to ADODB (/var/www/adodb):</p>
<p><img src="http://static.howtoforge.com/images/snort_base_debian/base1.png" alt="base1 Intrusion Detection With BASE And Snort   Part4" width="550" height="141" title="Intrusion Detection With BASE And Snort   Part4" /><br />
<strong>click on Submit Query</strong></p>
<p><strong>step 2 of 5:</strong><br />
Enter the needed info on the next screen: (leave the Use Archive Database as is):</p>
<p><img src="http://static.howtoforge.com/images/snort_base_debian/base2.png" alt="base2 Intrusion Detection With BASE And Snort   Part4" width="550" height="330" title="Intrusion Detection With BASE And Snort   Part4" /><br />
<strong>click on Submit Query</strong></p>
<p><strong>step 3 of 5:</strong><br />
If you want to Use Authentication for the Base page you can do so here:</p>
<p><img src="http://static.howtoforge.com/images/snort_base_debian/base3.png" alt="base3 Intrusion Detection With BASE And Snort   Part4" width="550" height="188" title="Intrusion Detection With BASE And Snort   Part4" /></p>
<p><strong>click on Submit Query</strong></p>
<p><strong>step 4 of 5:</strong><br />
Click on Create BASE AG to create the database.</p>
<p><img src="http://static.howtoforge.com/images/snort_base_debian/base4a.png" alt="base4a Intrusion Detection With BASE And Snort   Part4" width="550" height="104" title="Intrusion Detection With BASE And Snort   Part4" /><br />
and after Create BASE AG<br />
<img src="http://static.howtoforge.com/images/snort_base_debian/base4b.png" alt="base4b Intrusion Detection With BASE And Snort   Part4" width="550" height="280" title="Intrusion Detection With BASE And Snort   Part4" /></p>
<p>Once done, click on Now continue to step 5&#8230;</p>
<p><img src="http://static.howtoforge.com/images/snort_base_debian/base5.png" alt="base5 Intrusion Detection With BASE And Snort   Part4" width="550" height="410" title="Intrusion Detection With BASE And Snort   Part4" /></p>
<p>To make the Graph&#8217;s from BASE work you will also need to install Image_Color, Image_Canvas and Image_Graph.<br />
To do this do:</p>
<p>pear install Image_Color<br />
pear install Image_Canvas-alpha<br />
pear install Image_Graph-alpha</p>
<p>That it for BASE!</p>
<p>If you want you can chmod the base-1.2.5 dir back to 775:</p>
<p>chmod 775 base-1.2.5</p>
<p>You can also delete the snorttemp directory, and all the files in it.</p>
<h3>Starting Snort</h3>
<p>To start SNORT and make BASE show you the Snort&#8217;s logged info, you will need to run:</p>
<p>/usr/local/bin/snort -c /etc/snort/snort.conf -i eth0 -g root -D</p>
<p>Now wait some time and see all the Snort alerts show up in BASE.</p>
<p><img src="http://static.howtoforge.com/images/snort_base_debian/alerts.png" alt="alerts Intrusion Detection With BASE And Snort   Part4" width="550" height="408" title="Intrusion Detection With BASE And Snort   Part4" /></p>
<h3>Links</h3>
<ul>
<li>BASE: <a rel="nofollow" target="_blank" href="http://secureideas.sourceforge.net/" target="_blank">http://secureideas.sourceforge.net</a></li>
<li>Snort: <a rel="nofollow" target="_blank" href="http://www.snort.org/" target="_blank">http://www.snort.org</a></li>
</ul>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part4.html" title="plesk snort how to">plesk snort how to</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part4.html" title="setup snort and base">setup snort and base</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part4.html" title="snort on plesk server">snort on plesk server</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part4.html" title="snort with plesk">snort with plesk</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part4.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: thegioinguonmo.com @ 2012-02-07 11:19:54 -->
