<?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>Wired Gorilla &#187; Security</title>
	<atom:link href="http://wiredgorilla.com.au/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://wiredgorilla.com.au</link>
	<description>Server - VPS - Web Hosting Info</description>
	<lastBuildDate>Sat, 03 Apr 2010 11:25:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to check and stop if DDoS attack is going on.</title>
		<link>http://wiredgorilla.com.au/2008/09/how-to-check-and-stop-if-ddos-attack-is-going-on/</link>
		<comments>http://wiredgorilla.com.au/2008/09/how-to-check-and-stop-if-ddos-attack-is-going-on/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 12:05:52 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Distributed denial-of-service attacks In a distributed attack, the attacking computers are often personal computers with broadband connections to the Internet that have been compromised by viruses or Trojan horse programs. These allow the perpetrator to remotely control machines to direct the attack, and such an array of computers is called a botnet. With enough such


No related posts.]]></description>
			<content:encoded><![CDATA[<p><strong>Distributed denial-of-service attacks</strong><br />
In a distributed attack, the attacking computers are often personal computers<br />
with broadband connections to the Internet that have been compromised by viruses<br />
or Trojan horse programs. These allow the perpetrator to remotely control machines<br />
to direct the attack, and such an array of computers is called a botnet. With<br />
enough such slave or zombie hosts, the services of even the largest and most well-connected<br />
websites can be disrupted.</p>
<p><span id="more-277"></span><br />
<strong>Denial-of-service attack </strong></p>
<p>A denial-of-service attack (also, DoS attack) is an attack on a computer system<br />
or network that causes a loss of service to users, typically the loss of network<br />
connectivity and services by consuming the bandwidth of the victim network or<br />
overloading the computational resources of the victim system.<br />
Attacks can be directed at any network device, including routers and Web, electronic<br />
mail, and Domain Name System servers.</p>
<p>A DoS attack can be perpetrated in a number of ways. There are four basic types<br />
of attack:</p>
<p>1) consumption or overload of system or network resources, such as bandwidth,<br />
disk space, or CPU time<br />
2) disruption of configuration information, such as routing information<br />
3) disruption of physical network components<br />
4) disruption of normal operating-system functionality by exploiting a software<br />
vulnerability.</p>
<p>Attempts to &#8220;flood&#8221; a network with bogus packets, thereby preventing<br />
legitimate network traffic, are the most common form of attack, often conducted<br />
by disrupting network connectivity with the use of multiple hosts in a distributed<br />
denial-of-service attack or DDoS. Such attacks can consume the resources of<br />
intervening systems and networks over which the attack is transmitted. Other<br />
than incorrectly formed packets or random traffic, two specific sophisticated<br />
means of attack include:</p>
<p>1) a smurf attack, in which ICMP requests are sent to the broadcast address<br />
of misconfigured networks, with a faked, or spoofed, source IP Address set to<br />
the one of the target<br />
2) a SYN flood, in which bogus SYN requests to a service (often HTTP) cause<br />
a server to be overloaded by spawning half-open connections<br />
<strong>You can check the current http usage by firing the shell command</strong></p>
<p><span style="color: #ff0000;">top -d2</span></p>
<p>If you are getting lots of httpd processes, then you have to check if it is<br />
a DoS attack and the server is flooded with SYN packets. You can check this<br />
by the following command.</p>
<p><span style="color: #ff0000;">netstat -nap | grep SYN | wc -l</span></p>
<p>If you are getting abnormal numbers then your server is under attack.<br />
You can check from which IPs the SYN packets are coming. Give the following<br />
command</p>
<p><span style="color: #ff0000;">netstat -nap | less</span></p>
<p>You will get all the details of kernel routing table also the IPs from where<br />
the packets are coming. If it is coming from any particular IP then you can<br />
simply block that IP on the server. Or if its from one network then you will<br />
have to block the range of IPs.<br />
If there are multiple IPs which are attacking then you will have to find which<br />
site is under attack.<br />
To check this go to<span style="color: #ff0000;"> /usr/local/apache/domlogs/</span><br />
Check how stat&#8217;s date is defined. Then run the command &#8220;<span style="color: #ff0000;">date</span>&#8220;.<br />
Check the current time of the server. Then you have to check which site was<br />
under attack before few mins ago. Suppose current time is Sep 15 02:03:38 then<br />
run the command</p>
<p>grep &#8220;15/Sep/2005:02:01&#8243; *</p>
<p>It will show you the list of sites accessed at that time. If you see any particular<br />
site is being accessed multiple times, then the site is under attack. You can<br />
chnage the time to check if different sites are under attack. You can suspend<br />
that site to prevent the server from overloading.</p>
<p>Many times the attack hits a particular IP and all the sites having that IP<br />
get attacked. All you have to do is change the IP of those sites and then null-route<br />
that IP.</p>
<p>These are the simple steps you have to follow when attack is going on. Obviously<br />
you have to use your presence of mind while working on it. You will find many<br />
ways to solve this issue.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/09/how-to-check-and-stop-if-ddos-attack-is-going-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring Linux CDP Agents</title>
		<link>http://wiredgorilla.com.au/2008/06/installing-and-configuring-linux-cdp-agents/</link>
		<comments>http://wiredgorilla.com.au/2008/06/installing-and-configuring-linux-cdp-agents/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 14:27:28 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[R1Soft CDP is a easy to install and use continous data protection system, primarily targeted at the hosting market. It backups up multiple servers to a central backup server; multiple backup windows can be performed per day, and files or even the whole disk can be restored from the image. This tutorial will show you


No related posts.]]></description>
			<content:encoded><![CDATA[<p>R1Soft CDP is a easy to install and use continous data protection<br />
system, primarily targeted at the hosting market. It backups up<br />
multiple servers to a central backup server; multiple backup windows<br />
can be performed per day, and files or even the whole disk can be<br />
restored from the image. This tutorial will show you how to install the Linux Agent on a server which you want to be backed up, and how to<br />
configure it.</p>
<p><span id="more-341"></span></p>
<p>First, login to the new server as root. Then browse to the following page:</p>
<p><span style="color: #008000"></p>
<p>http://download.r1soft.com/</span></p>
<p>Click on the Linux Stable link under CDP Agent, and copy the link location of the latest CentOS agent.</p>
<p>Now, go back to the server, and execute the following command:</p>
<p>For 64bit CentOS : <span style="color: #0000ff">wget http://download.r1soft.com/d/linux-agent/1.46.5-x86_64/linux-agent-64-1.46.5-centos.run</span></p>
<p>For 32bit CentOS : <span style="color: #0000ff">wget http://download.r1soft.com/d/linux-agent/1.46.5-x86/linux-agent-32-1.46.5-centos.run</span></p>
<p><span style="color: #000000">for newer kernels go to the </span><span style="color: #000000"><a href="http://download.r1soft.com/s/;jsessionid=fb2q7t2n1fro?action=DownloadAction&amp;downloadType=2&amp;transaction=DownloadAction&amp;step=2&amp;stableRelease=false" target="_blank">Pre<br />
Release</a><br />
section</span></p>
<p><span style="color: #0000ff">wget http://download.r1soft.com/d/linux-agent/1.47.0-x86_64/linux-agent-64-1.47.0-centos.run</span></p>
<p>The link will look different depending on the release you download. Once this has finished, execute the file:</p>
<p><span style="color: #0000ff"><br />
sh linux-agent-64-1.46.5-centos.run</span></p>
<p>or</p>
<p><span style="color: #0000ff">sh linux-agent-32-1.46.5-centos.run</span></p>
<p>If you are installing a custom kernel then you need to install the headers first</p>
<p><span style="color: #0000ff">yum install kernel-devel</span></p>
<p>A graphical wizard will appear. Just go through here accepting the defaults; they usually work fine. Once this is done, we need to create the server key. Browse to the following directory:</p>
<p><span style="color: #0000ff"><br />
cd /etc/buagent/server.allow/</span></p>
<p>Now create a file called the IP of your main backup server.</p>
<p><span style="color: #0000ff"><br />
nano 111.222.333.444 </span>(Your backup server IP)</p>
<p>Browse to your main backup server, login as administrator, click on Options, then click on Server Key. You need to copy this key into the file you just created on the server to be backed up. Once this is done, save the file. The path to the file should look like this:</p>
<p>/etc/buagent/server.allow/SERVER_IP</p>
<p>One last thing to do; open up TCP port 1167 on the server firewall. This can easily be done through a iptables frontend like csf, or just use iptables via the command line.</p>
<p>Everything is now completed on the server to be backed up; now you just need to add it in the CDP interface. Login as administrator and click on the New Host button.</p>
<p>{gallery}winagent4{/gallery}</p>
<p>Now fill out the form like this:</p>
<p>Host Name or IP: The IP address/hostname of the server you just installed the agent on.</p>
<p>Host Description: A description of the server you installed the agent on</p>
<p>Host Type: Select &#8220;Linux&#8221;</p>
<p>Tick the Use Default Network Settings box</p>
<p>In the &#8220;Licensed Add-on Modules&#8221; section, you need to tick the Control Panel option if you want CDP to integrate with a hosting</p>
<p>control panel (like cPanel or Plesk), and you need to tick the MySQL module if you want CDP to perform a proper granular (table by</p>
<p>table) backup of the databases on the server.</p>
<p>Now select the Volume you want the server to place the backups in, check the &#8220;Create Disk Safe Next&#8221; box, and click on OK.</p>
<p>These settings are usually fine for a standard CDP server setup; however, keep in mind that your server setup may mean that you need to use different settings from the ones listed here.</p>
<p>The next page contains Disk Safe configuration settings.</p>
<p>{gallery}agentcompression{/gallery}</p>
<p>The first, Compression Level, I would recommend setting to at least 1. Uncompressed backups can use up all the available disk space on your backup server quickly; setting the Compression Level to 1 can reduce backup size by up to 50% without too significant a hit on CPU consumption. Leaving the Defragment setting at 5% is fine.</p>
<p>I would not recommend encryption unless the data you are backing up sensitive data. Now click on OK.</p>
<p>You should now be directed to the host summary page. CDP automatically attempts to find the host; click on History at the top and see if it was succesful or not.</p>
<p>{gallery}hosthistory{/gallery}</p>
<p>If it was, you can now start the first backup and setup a recurring backup schedule to your liking in the Backup and Restore tab in the host&#8217;s page.</p>
<p>{gallery}backupandrestore{/gallery}</p>
<p>Here is a brief overview of setting up a recurring backup schedule:</p>
<p>1. Login to CDP as admin</p>
<p>2. Click on the Host</p>
<p>3. Click on the &#8220;Backup and Restore&#8221; option</p>
<p>4. Click on &#8220;Schedule Backup&#8221;</p>
<p>Now fill out the settings to your liking. Do backup the swap partition (CDP will skip it anyway), disable the tmp partition. If you have a second hard drive for backups (for example, for cPanel backups), do not include it.</p>
<p>If you now need to setup a granular MySQL backup using the MySQL addon, click on the MySQL button.</p>
<p>{gallery}agentmysql{/gallery}</p>
<p>Fill out the description and the root username and password of your<br />
MySQL server. I recommend changing the Connection Type to Socket File -<br />
the default socket file location on CentOS servers is:</p>
<p>/var/lib/mysql/mysql.sock</p>
<p>CDP will now backup your MySQL databases table by table in line with your backup schedule.</p>
<p>All done, you have setup a Linux server to be backed up by R1soft <img src='http://wiredgorilla.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/06/installing-and-configuring-linux-cdp-agents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel Name Server Setup</title>
		<link>http://wiredgorilla.com.au/2008/04/cpanel-name-server-setup/</link>
		<comments>http://wiredgorilla.com.au/2008/04/cpanel-name-server-setup/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 23:43:04 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[It seems no matter which flavor of linux / unix you are running and which control panel software that setting up custom name servers is always a problem. This How-To will be for installing name servers on a Linux CPanel server. Custom Name Servers are great because you can provide your webhosting customers with ns1.yourcompany.com


No related posts.]]></description>
			<content:encoded><![CDATA[<p>It seems no matter which flavor of linux / unix you are running and which control panel software that setting up custom name servers is always a problem. This How-To will be for installing name servers on a Linux CPanel server. Custom Name Servers are great because you can provide your webhosting customers with ns1.yourcompany.com instead of your server / upllink providers name servers. You will also know how to install Custom name servers for your reseller accounts.<br />
<span id="more-100"></span><br />
1. Register Name Servers where you registered your domain at.<br />
I suggest using 1 IP per name server.<br />
NS1.yourdomain.com = IP#1<br />
NS2.yourdomain.com = IP#2</p>
<p>2. Notify your DataCenter to setup Reverse DNS for the IP addresses used above<br />
and for your name servers. (Normally you put in a ticket to request RDNS for &#8220;NS1.yourdomain.com = IP#1 NS2.yourdomain.com = IP#2&#8243; and they will complete this within a day)</p>
<p><strong>Please note it can take up to 36 hours for your name servers to propogate through the web. Once they have propogated procede to step #3.</strong></p>
<p>1. Login to WHM as root</p>
<p>2. Click &#8220;Edit Setup&#8221; from the left hand menu. (x2 theme)</p>
<p>3. Type: <span style="color: red;">ns1.yourdomain.com</span> in the Primary Nameserver field.</p>
<p>4. Press Assign IP Address</p>
<p>5. Then Press Add an A Entry for this nameserver</p>
<p>6. Type <span style="color: red;">ns2.yourdomain.com</span> in the Secondary Nameserver field.</p>
<p>7. Click Assign IP Address</p>
<p>8. Then Click Add an A Entry for this nameserver</p>
<p>9. Click Manage Nameserver IPs from the left menu in WHM.</p>
<p>10. If you see any nameservers that do not belong to you, remove them now.</p>
<p>11. Click Initial NameServer Setup from the left menu in WHM<br />
Run this for the &#8220;initial name server setup&#8221;</p>
<p>12. Login to SSH to restart bind. (Be sure it restarts, so don&#8217;t do this in WHM)</p>
<p>13. Type: <span style="color: red;">service named stop </span></p>
<p>14. Type: <span style="color: red;">service named start </span></p>
<p>15. While in SSH do the following to verify installation has gone well.</p>
<p>16. Type: <span style="color: red;">pico /etc/wwwacct.conf</span><br />
Scroll to the bottom and insure that your name servers are listed like this:<br />
NS ns1.yourdomain.com<br />
NS2 ns2.yourdomain.com</p>
<p>17. While still in SSH do the following to verify installation has gone correctly.<br />
Type: <span style="color: red;">pico /etc/resolv.conf </span><br />
It should look like this:</p>
<p>domain yourdomain.com<br />
search yourdomain.com<br />
#nameserver 127.0.0.1<br />
nameserver ip address #1 here<br />
nameserver ip address #2 here</p>
<p>18. Check one more thing in SSH to make sure Name Server Configuration went GOOD.<br />
Type: <span style="color: red;">pico /etc/nameserverips</span><br />
It should look like this:<br />
ip address 1=ns1.yourdomain.com<br />
ip address 2=ns2.yourdomain.com</p>
<p>There may be more IP Addresses that are equal to 0 this is ok.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/04/cpanel-name-server-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DDOS check via number of connections</title>
		<link>http://wiredgorilla.com.au/2008/03/ddos-check-number-connections/</link>
		<comments>http://wiredgorilla.com.au/2008/03/ddos-check-number-connections/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 07:35:25 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=430</guid>
		<description><![CDATA[A quick and usefull command for checking if a server is under DDOS is 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


No related posts.]]></description>
			<content:encoded><![CDATA[<p>A quick and usefull command for checking if a server is under DDOS is</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>
<p><span id="more-430"></span></p>
<p>this MUST be executed in one line via SSH</p>
<table style="width: 100%;" border="1" width="100%">
<caption> </caption>
<tbody>
<tr>
<td><span style="color: #0000ff;">netstat -anp |grep &#8216;tcp\|udp&#8217; | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq 			-c | sort -n</span></td>
</tr>
</tbody>
</table>
<p>additionally you can check the connection ports here<br />
<span style="font-size: 8pt; color: #0000ff;">lsof | grep ESTABLISHED<br />
lsof | grep LISTEN</span></p>
<p><span style="font-size: 8pt; color: #0000ff;">lsof -p PID </span></div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/03/ddos-check-number-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APF firewall. Daily automated email showing firewall status</title>
		<link>http://wiredgorilla.com.au/2007/04/apf-firewall-daily-automated-email-showing-firewall-status/</link>
		<comments>http://wiredgorilla.com.au/2007/04/apf-firewall-daily-automated-email-showing-firewall-status/#comments</comments>
		<pubDate>Fri, 27 Apr 2007 12:15:27 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=543</guid>
		<description><![CDATA[Charles Sweeney writes : This is how to get your server to send you a daily email showing the status of your APF firewall. In other words, letting you know if it&#8217;s running or not! APF firewall. Daily automated email showing firewall status This is done by setting up a cron job. A cron job


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Charles Sweeney writes : This is how to get your server to send you a daily email showing the status of your APF firewall. In other words, letting you know if it&#8217;s running or not!<br />
<strong>APF firewall.  Daily automated email showing firewall status</strong></p>
<p><span id="more-543"></span></strong>This is done by setting up a cron job.</p>
<p>A cron job is simply an automated task carried out by the server at regular specified intervals, usually hourly, daily, weekly etc.</p>
<p>We are going to get the server to check your APF firewall log on a daily basis, and output the result to an email address of your choosing. To do this, we are going to create a new file containing the instructions in the relevant cron directory.</p>
<p><strong>Lets do it:</strong></p>
<p>This assumes you are using SSH and are logged on as root.</p>
<p>1. Change to the cron.daily directory.  Type:</p>
<p><span style="color: green;">cd /etc/cron.daily</span></p>
<p>2. Create a new file.  Type:</p>
<p><span style="color: green;">pico apfstatus.sh</span></p>
<p>3. You are now in the pico text editor.  Type:</p>
<p><span style="color: green;">#!/bin/bash<br />
tail -100 /var/log/apf_log | mail -s &#8220;APF Firewall Status&#8221;   <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy74709 = 'y&amp;#111;&amp;#117;' + '&amp;#64;';
 addy74709 = addy74709 + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 var addy_text74709 = 'y&amp;#111;&amp;#117;' + '&amp;#64;' + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy74709 + '\'&gt;' );
 document.write( addy_text74709 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n 
// --></script><a href="mailto:you@yourdomain.com">you@yourdomain.com</a><script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;span style=\'display: none;\'&gt;' );
 // &gt;</p>
<p>// --></script><span style="display: none;">This e-mail address is being protected from spam bots, you need JavaScript enabled to view it  <script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;/' );
 document.write( 'span&gt;' );
 // &gt;</p>
<p>// --></script></span></span></p>
<p>In this case, this should be two lines only. Pico adds a carriage return to the end of the last line, so you do not need to do this.</p>
<p>4. Exit  as follows:</p>
<p><span style="color: green;">Press &#8220;Ctrl&#8221; and &#8220;x&#8221;</span></p>
<p>5. You will be prompted to save the file thus:</p>
<p>&#8220;Save modified buffer&#8230;&#8221; Type:</p>
<p><span style="color: green;">y</span></p>
<p>For yes.</p>
<p>6. It will then say:</p>
<p>&#8220;File Name to Write: apfstatus.sh&#8221;:</p>
<p><span style="color: green;">Hit enter to save</span></p>
<p>You have now created and saved your new file (apfstatus.sh) in the /etc/cron.daily directory.</p>
<p>7. Next you will need to change the permissions of your file so that it can run.  Type:</p>
<p><span style="color: green;">chmod 755 apfstatus.sh</span></p>
<p><strong>Finished!!</strong></p>
<p>You will now get a daily email showing the status of your firewall.</p>
<p>Lets test it (this assumes you are still in the /etc/cron.daily directory).  Type:</p>
<p><span style="color: green;">./apfstatus.sh</span></p>
<p>You will not see anything happening on the screen as the output is being sent to email.</p>
<p>Check your mail!</p>
<p><strong>Notes:</strong></p>
<p>1. If you want to make it run hourly, put (or create) the file (apfstatus.sh) in the /etc/cron.hourly directory. This will send you an email every hour.</p>
<p>2. You don&#8217;t have to name the file &#8220;apfstatus.sh&#8221;, you can call it anything_you_like.sh</p>
<p>3. &#8220;tail -100&#8243; asks the server to output the last 100 lines of the APF log file (apf_log). You can change this to any number. If you make it much bigger, you will get a large email!</p>
<p>The most important line in the log is the last one, this shows the current status of your firewall, so you don&#8217;t really need hundreds of lines unless you just like to see it&#8217;s doing its stuff!</p>
<p>If your firewall is up and running, the last line should read (not literally):</p>
<p>(date) (server name) apf(number): firewall initalized</p>
<p>4. &#8220;APF Firewall Status&#8221; is the subject of the email that is sent. You can change this to anything you like, between the quotes.</p>
<p>5. Replace   <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy74709 = 'y&amp;#111;&amp;#117;' + '&amp;#64;';
 addy74709 = addy74709 + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 var addy_text74709 = 'y&amp;#111;&amp;#117;' + '&amp;#64;' + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy74709 + '\'&gt;' );
 document.write( addy_text74709 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n 
// --></script><a href="mailto:you@yourdomain.com">you@yourdomain.com</a><script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;span style=\'display: none;\'&gt;' );
 // &gt;</p>
<p>// --></script><span style="display: none;">This e-mail address is being protected from spam bots, you need JavaScript enabled to view it  <script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;/' );
 document.write( 'span&gt;' );
 // &gt;</p>
<p>// --></script></span> with your own email address!!</p>
<p>When I first tried this on a new server, my mail provider rejected the email because the server name (hostname) myserver.mydomain.com was &#8220;unroutable&#8221;. This was because my server name was not in the DNS. You must add it to whatever DNS you are using, pointing it to the IP address of your server, so that you can be sure of getting the mails from your server.</p>
<p>6.  You can experiment with different cron jobs, making a new file for each job for simplicity&#8217;s sake.</p>
<p>The important thing is to include the &#8220;shebang&#8221; line first:</p>
<p>#!/bin/bash</p>
<p>What follows this is just regular Linux commands.  Put each command on a new line.</p>
<p>So you can get the file to do practically anything you can do at the command prompt, then email it to you if desired.</p>
<p>Think of it as the file entering the Linux commands for you!</p>
<p>This is the command that outputs to email:</p>
<p>mail -s &#8220;APF Firewall Status&#8221;   <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy74709 = 'y&amp;#111;&amp;#117;' + '&amp;#64;';
 addy74709 = addy74709 + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 var addy_text74709 = 'y&amp;#111;&amp;#117;' + '&amp;#64;' + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy74709 + '\'&gt;' );
 document.write( addy_text74709 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n 
// --></script><a href="mailto:you@yourdomain.com">you@yourdomain.com</a><script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;span style=\'display: none;\'&gt;' );
 // &gt;</p>
<p>// --></script><span style="display: none;">This e-mail address is being protected from spam bots, you need JavaScript enabled to view it  <script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;/' );
 document.write( 'span&gt;' );
 // &gt;</p>
<p>// --></script></span></p>
<p>Make sure that you have &#8221; | &#8221; (space pipe space) after your Linux command like:</p>
<p>ls -l /var/log | mail -s &#8220;Email Subject&#8221;   <script type="text/javascript"><!--
 &lt;! 
 var prefix = '&amp;#109;a' + 'i&amp;#108;' + '&amp;#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy74709 = 'y&amp;#111;&amp;#117;' + '&amp;#64;';
 addy74709 = addy74709 + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 var addy_text74709 = 'y&amp;#111;&amp;#117;' + '&amp;#64;' + 'y&amp;#111;&amp;#117;rd&amp;#111;m&amp;#97;&amp;#105;n' + '&amp;#46;' + 'c&amp;#111;m';
 document.write( '&lt;a ' + path + '\'' + prefix + ':' + addy74709 + '\'&gt;' );
 document.write( addy_text74709 );
 document.write( '&lt;\/a&gt;' );
 // &gt;\n 
// --></script><a href="mailto:you@yourdomain.com">you@yourdomain.com</a><script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;span style=\'display: none;\'&gt;' );
 // &gt;</p>
<p>// --></script><span style="display: none;">This e-mail address is being protected from spam bots, you need JavaScript enabled to view it  <script type="text/javascript"><!--
 &lt;! 
 document.write( '&lt;/' );
 document.write( 'span&gt;' );
 // &gt;</p>
<p>// --></script></span></p>
<p>To make a pipe symbol press shift backslash.</p>
<p>Enjoy.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2007/04/apf-firewall-daily-automated-email-showing-firewall-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are you getting nasty errors in your DNS Report</title>
		<link>http://wiredgorilla.com.au/2007/01/are-you-getting-nasty-errors-in-your-dns-report/</link>
		<comments>http://wiredgorilla.com.au/2007/01/are-you-getting-nasty-errors-in-your-dns-report/#comments</comments>
		<pubDate>Wed, 03 Jan 2007 12:29:40 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If your are getting nasty red errors in your DNS report at http://www.dnsreport.com/ then here we have a few steps of editing your named.conf to fix this. Doing your usual DNSreport at http://www.dnsreport.com/ and getting errors like Test Name: Open DNS servers Status:Fail ERROR: One or more of your nameservers reports that it is an


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If your are getting nasty red errors in your DNS report at <a href="http://www.dnsreport.com/" target="_blank">http://www.dnsreport.com/</a><br />
then here we have a few steps of editing your named.conf to fix this.<br />
<span id="more-105"></span></p>
<div>Doing your usual DNSreport at <a href="http://www.dnsreport.com/" target="_blank">http://www.dnsreport.com/</a><br />
and getting errors like</p>
<p>Test Name:<br />
Open DNS servers Status:Fail</p>
<p><em>ERROR: One or more of your nameservers reports that it is an open DNS server. This usually means that anyone in the world can query it. This can cause an excessive load on your DNS server. Also, it is strongly discouraged to have a DNS server be both authoritative for your domain and be recursive (even if it is not open), due to the potential for cache poisoning (with no recursion, there is no cache, and it is impossible to poison it). Also, the bad guys could use your DNS server as part of an attack, by forging their IP address. Problem record(s) are:</em></p>
<p><em>Server x.x.x.1. reports that it will do recursive lookups.<br />
Server x.x.x.2. reports that it will do recursive lookups.<br />
Server x.x.x.3. reports that it will do recursive lookups.</em></p>
<p><em></em>This is the correct way to turn off recursion without breaking anything on a whm/cpanel server:</p>
<p>Edit your named.conf</p>
<p><strong>pico /etc/named.conf<br />
</strong><br />
<em>options {<br />
allow-recursion { 127.0.0.1; xxx.xxx.xxx.xxx; };<br />
};<br />
</em><br />
In addition to 127.0.0.1 that line should include all IPs on the server plus other IPs that you want to allow recursion.</p>
<p>And ACLs are another way to handle this.<br />
<a href="http://www.net.cmu.edu/groups/netdev/docs/bind9/Bv9ARM.ch07.html" target="_blank">http://www.net.cmu.edu/groups/netdev/docs/bind9/Bv9ARM.ch07.html</a></p>
<p>For instance you can use this type of config:</p>
<p><em>acl &#8220;trusted&#8221; {<br />
main server IP;<br />
127.0.0.1;<br />
name server IP;<br />
name server IP;<br />
additional secondary name server IP;<br />
and so on;</em></p>
<p><em>};<br />
options {<br />
directory &#8220;/var/named&#8221;;<br />
version &#8220;not currently available&#8221;;<br />
allow-recursion { trusted; };<br />
allow-notify { trusted; };<br />
allow-transfer { trusted; };<br />
};<br />
</em></div>
<p>Hope this helped a little, found the info on the cPanel forum provided by sawbuck</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2007/01/are-you-getting-nasty-errors-in-your-dns-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Syctl.conf Hardening</title>
		<link>http://wiredgorilla.com.au/2006/03/syctlconf-hardening-2/</link>
		<comments>http://wiredgorilla.com.au/2006/03/syctlconf-hardening-2/#comments</comments>
		<pubDate>Sun, 26 Mar 2006 12:16:38 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=459</guid>
		<description><![CDATA[The purpose of syctl hardening is to help prevent spoofing and dos attacks. This short guide will show what I have found to be a good configuration for the sysctl.conf configuration file. The most important of the variables listed below is the enabling of syn cookie protection. Only place the bottom two if you do


No related posts.]]></description>
			<content:encoded><![CDATA[<p>The purpose of syctl hardening is to help prevent spoofing and dos attacks. This short guide will show what I have found to be a good configuration for the sysctl.conf configuration file. The most important of the variables listed below is the enabling of syn cookie protection. Only place the bottom two if you do not want your server to respond to ICMP echo, commonly referred to as ICMP ping or just ping requests.<span id="more-459"></span></p>
<p>&#8212;&#8211;command&#8212;&#8211;<br />
pico -w /etc/sysctl.conf<br />
&#8212;&#8211;command&#8212;&#8211;</p>
<p>Now paste the following into the file, you can overwrite the current information.</p>
<div>#Kernel sysctl configuration file for Red Hat Linux<br />
#<br />
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and<br />
# sysctl.conf(5) for more details.</div>
<div># Disables packet forwarding<br />
net.ipv4.ip_forward=0</div>
<div># Disables IP source routing<br />
net.ipv4.conf.all.accept_source_route = 0<br />
net.ipv4.conf.lo.accept_source_route = 0<br />
net.ipv4.conf.eth0.accept_source_route = 0<br />
net.ipv4.conf.default.accept_source_route = 0</div>
<div># Enable IP spoofing protection, turn on source route verification<br />
net.ipv4.conf.all.rp_filter = 1<br />
net.ipv4.conf.lo.rp_filter = 1<br />
net.ipv4.conf.eth0.rp_filter = 1<br />
net.ipv4.conf.default.rp_filter = 1</div>
<div># Disable ICMP Redirect Acceptance<br />
net.ipv4.conf.all.accept_redirects = 0<br />
net.ipv4.conf.lo.accept_redirects = 0<br />
net.ipv4.conf.eth0.accept_redirects = 0<br />
net.ipv4.conf.default.accept_redirects = 0</div>
<div># Enable Log Spoofed Packets, Source Routed Packets, Redirect Packets<br />
net.ipv4.conf.all.log_martians = 0<br />
net.ipv4.conf.lo.log_martians = 0<br />
net.ipv4.conf.eth0.log_martians = 0</div>
<div># Disables IP source routing<br />
net.ipv4.conf.all.accept_source_route = 0<br />
net.ipv4.conf.lo.accept_source_route = 0<br />
net.ipv4.conf.eth0.accept_source_route = 0<br />
net.ipv4.conf.default.accept_source_route = 0</div>
<div># Enable IP spoofing protection, turn on source route verification<br />
net.ipv4.conf.all.rp_filter = 1<br />
net.ipv4.conf.lo.rp_filter = 1<br />
net.ipv4.conf.eth0.rp_filter = 1<br />
net.ipv4.conf.default.rp_filter = 1</div>
<div># Disable ICMP Redirect Acceptance<br />
net.ipv4.conf.all.accept_redirects = 0<br />
net.ipv4.conf.lo.accept_redirects = 0<br />
net.ipv4.conf.eth0.accept_redirects = 0<br />
net.ipv4.conf.default.accept_redirects = 0</div>
<div># Disables the magic-sysrq key<br />
kernel.sysrq = 0</div>
<div># Decrease the time default value for tcp_fin_timeout connection<br />
net.ipv4.tcp_fin_timeout = 15</div>
<div># Decrease the time default value for tcp_keepalive_time connection<br />
net.ipv4.tcp_keepalive_time = 1800</div>
<div># Turn off the tcp_window_scaling<br />
net.ipv4.tcp_window_scaling = 0</div>
<div># Turn off the tcp_sack<br />
net.ipv4.tcp_sack = 0</div>
<div># Turn off the tcp_timestamps<br />
net.ipv4.tcp_timestamps = 0</div>
<div># Enable TCP SYN Cookie Protection<br />
net.ipv4.tcp_syncookies = 1</div>
<div># Enable ignoring broadcasts request<br />
net.ipv4.icmp_echo_ignore_broadcasts = 1</div>
<div># Enable bad error message Protection<br />
net.ipv4.icmp_ignore_bogus_error_responses = 1</div>
<div># Log Spoofed Packets, Source Routed Packets, Redirect Packets<br />
net.ipv4.conf.all.log_martians = 1</div>
<div># Increases the size of the socket queue (effectively, q0).<br />
net.ipv4.tcp_max_syn_backlog = 1024</div>
<div># Increase the tcp-time-wait buckets pool size<br />
net.ipv4.tcp_max_tw_buckets = 1440000</div>
<div># Allowed local port range<br />
net.ipv4.ip_local_port_range = 16384 65536</div>
<div>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</div>
<div>After you make the changes to the file you need to run<br />
<strong>/sbin/sysctl -p</strong> and <strong>sysctl -w net.ipv4.route.flush=1</strong> to enable the changes without a reboot.</div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2006/03/syctlconf-hardening-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install APF Firewall on a cPanel sever</title>
		<link>http://wiredgorilla.com.au/2006/03/install-apf-firewall-on-a-cpanel-sever/</link>
		<comments>http://wiredgorilla.com.au/2006/03/install-apf-firewall-on-a-cpanel-sever/#comments</comments>
		<pubDate>Thu, 23 Mar 2006 14:51:05 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[To install APF firewall login to your server as root and follow this tutorial Type cd /usr/src wget http://rfxnetworks.com/downloads/apf-current.tar.gz tar -xvzf apf-current.tar.gz rm -f apf-current.tar.gz cd apf-* ./install.sh cd /etc/apf nano conf.apf Configure the ports # Common ingress (inbound) TCP ports IG_TCP_CPORTS=&#8221;20,21,22,25,53,80,110,143,443,465,993,995,2082,2083,2086,2087,2095, 2096,3306,10000,35000_35999&#8243; please note that ports 2082 to port 2095 is mostly used by


No related posts.]]></description>
			<content:encoded><![CDATA[<p>To install APF firewall login to your server as root and follow this tutorial<br />
<span id="more-107"></span><br />
Type</p>
<p><span class="red">cd /usr/src<br />
wget http://rfxnetworks.com/downloads/apf-current.tar.gz<br />
tar -xvzf apf-current.tar.gz<br />
rm -f apf-current.tar.gz<br />
cd apf-*<br />
./install.sh<br />
cd /etc/apf<br />
nano conf.apf</span></p>
<p>Configure the ports</p>
<p><span class="green"><em># Common ingress (inbound) TCP ports</em><br />
<strong>IG_TCP_CPORTS=&#8221;20,21,22,25,53,80,110,143,443,465,993,995,2082,2083,2086,2087,2095,<br />
2096,3306,10000,35000_35999&#8243;</strong><br />
please note that ports 2082 to port 2095 is mostly used by cpanel, and port 19638 is only use in<br />
ensim.</span></p>
<p><em># Common ingress (inbound) UDP ports</em><br />
<strong>IG_UDP_CPORTS=&#8221;20,21,53,1040&#8243;</strong>[/green[</p>
<p>Exit nano and save and then restart apf<br />
<strong>(ctrl+x)<br />
y<br />
(enter)</strong><br />
<span class="red">service apf start</span></p>
<p>If APF is functioning properly and you are not locked out edit the conf.apf again</p>
<p><span class="red">nano conf.apf<span class="red"><br />
<span class="green">Set the DEVM parameter to 0<br />
<strong>DEVM=&#8221;0&#8243;</strong></span><br />
Once done Exit and save the file.<br />
<strong>CTRL-x, y</strong> to save enter to confirm<br />
Restart APF<br />
<span class="red">service apf restart</span><br />
</span></span></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2006/03/install-apf-firewall-on-a-cpanel-sever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security Guide for cPanel servers</title>
		<link>http://wiredgorilla.com.au/2006/03/security-guide-for-cpanel-servers/</link>
		<comments>http://wiredgorilla.com.au/2006/03/security-guide-for-cpanel-servers/#comments</comments>
		<pubDate>Thu, 23 Mar 2006 14:49:15 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[You must keep your box secure at all times, getting compromized could lead to dataloss, which means you loose clients which isnt a very good way to run your buisness. You dont have to be an expert, there are just simple instructions you have to follow, check your box daily for any unknown proccesses, cheak


No related posts.]]></description>
			<content:encoded><![CDATA[<p>You must keep your box secure at all times, getting compromized could lead to dataloss, which means you loose clients which isnt a very good way to run your buisness. You dont have to be an expert, there are just simple instructions you have to follow, check your box daily for any unknown proccesses, cheak on your clients regularly to make sure they are not up to no good. The easiest of steps can make you that one bit more secure which helps.<br />
<span id="more-106"></span><br />
Why do people attempt to &#8220;hack&#8221; me?</p>
<p>The most common reason is for them to run a bot which is called an xdcc bot(iroffer), what this does is allows them to &#8220;serve&#8221; files on an irc network, which will allow people to download &#8220;warez&#8221; from you. These files must be uploaded to you, which means they will have opened an extra ftp server on you aswell. These bots allow people to use your space and bandwidth, because the faster the box the more popular there irc channel becomes.</p>
<p>More reasons are,<br />
they just flat out hate you.<br />
they need some extra resources.<br />
because they want too.</p>
<p>How to stop this?</p>
<p>There is no exact way to stop it, all you can do is take the steps provided, follow them regularly, and keep an eye out.</p>
<p>Ok lets move on</p>
<p>Lets start off by installing a bash script to check for irc related proccesses.</p>
<p>open up ssh<br />
login as root<br />
and create a new file (touch filename,nano filename,echo &#8220;&#8221; &gt;&gt; filename,etc)<br />
and put this inside it</p>
<p><span class="green"><br />
#!/usr/local/bin/bash</span></p>
<p>#Modded by HostGeekZ<br />
PROCESS[1]=eggdrop:Eggdrop<br />
PROCESS[2]=psybnc:psyBNC<br />
PROCESS[3]=ezbounce:ezBounce<br />
PROCESS[4]=ircd:IRCD<br />
PROCESS[5]=iroffer:iroffer<br />
NUMOF=&#8221;5&#8243;<br />
output_proc () {<br />
i=&#8221;1&#8243;<br />
NUMOF=$[$NUMOF + 1]<br />
echo &#8220;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8221;<br />
echo &#8220;| Secure your box ~Scott |&#8221;<br />
echo &#8220;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8221;<br />
while [ "$i" -lt "$NUMOF" ];do<br />
PROCESS=&#8221;`echo ${PROCESS[$i]}|tr : &#8221; &#8220;|awk &#8216;{print $1}&#8217;`&#8221;<br />
PROCESSOUT=&#8221;`echo ${PROCESS[$i]}|tr : &#8221; &#8220;| awk &#8216;{print $2}&#8217;`&#8221;<br />
echo &#8220;| &#8220;`ps -ax|grep -v &#8220;grep&#8221;|grep -wcn $PROCESS`&#8221; $PROCESSOUT processes running&#8221;<br />
i=$[i + 1]<br />
done<br />
echo &#8220;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8221;<br />
}</p>
<p>output_proc</p>
<p>Save this file as proccheck.<br />
Once saved type<br />
sh proccheck<br />
And now you will see an output, if you do not run irc and see any output of these as not 0, then you must deal with them.<br />
For the most of you that dont allow irc you should see</p>
<p><span class="green">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
| Secure your box ~Scott |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
| 0 Eggdrop processes running<br />
| 0 psyBNC processes running<br />
| 0 ezBounce processes running<br />
| 0 IRCD processes running<br />
| 0 iroffer processes running<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</span></p>
<p>If anyone recives anything other than 0 for iroffer, then you have probley been &#8220;hacked&#8221;</p>
<p>If this all returns 0, then you should be fine so skip these next tests.</p>
<p>If you get anything then firstly check who ran the proccess, so if it was an iroffer proccess you would type</p>
<p><span class="red">ps -aux | grep iroffer</span><br />
If its iroffer no doubt you will see somthing similar to</p>
<p><span class="green">nobody 1469 0.0 0.1 1984 864 ? S Aug03 0:02 ./iroffer -b somthing.conf</span><br />
if it doesnt say nobody, then suspend the user that ran it and speak to him, otherwise continue.</p>
<p>So if someone has attacked you how can you find out?</p>
<p>Start by getting the pid which in this instance is 1469 and type</p>
<p><span class="red">cd /proc/1469</span><br />
Now view the files and where it started by typing</p>
<p><span class="red">ls -alF</span><br />
You should see somthing similar to this</p>
<p><span class="green">-r&#8211;r&#8211;r&#8211; 1 user user 0 Aug 5 07:43 cmdline<br />
lrwxrwxrwx 1 user user 0 Aug 5 07:43 cwd -&gt; /home/user/iroffer<br />
-r&#8212;&#8212;&#8211; 1 user user 0 Aug 5 07:43 environ<br />
lrwxrwxrwx 1 user user 0 Aug 5 07:43 exe -&gt; /home/user/iroffer/iroffer*<br />
dr-x&#8212;&#8212; 2 user user 0 Aug 5 07:43 fd/</span></p>
<p>This tells us that its located in <em>/home/user/iroffer</em></p>
<p>Because it was ran by nobody this means that its what we call a webshell, they used http to execute the commands, so go get the apache logs of the account and look at them , open them up and search for iroffer , ls, tar, search for simliar linux commands and your bound to found where they where executed from, and then you can deal with the script and ban the users ip and report him.</p>
<p>Now dealing with the bot.<br />
<em>kill -9 pid</em> for the example i would use</p>
<p><span class="red">kill -9 1469</span><br />
Now remove the files in the example i would use</p>
<p><span class="red">rm -rf /home/user/iroffer</span><br />
And deal with the webshell, also there will be uploaded files, so you will have to read iroffer.conf before deleting it to find what dir they uploaded too.</p>
<p>Now install chkrootkit, follow steps below.</p>
<p><span class="red">wget http://www.reznor.com/tools/chkrootkit.tar.gz<br />
tar -zxvf chkrootkit.tar.gz<br />
chkrootkit-0.43<br />
make sense<br />
./chkrootkit</span><br />
Make sure you run chkrootkit as root, and run it every so often, its better safe than sorry.</p>
<p>For cpanel and whm users</p>
<p>A good firewall to use is apf</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2006/03/security-guide-for-cpanel-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dealing With Distributed Denial of Service Attacks</title>
		<link>http://wiredgorilla.com.au/2006/02/dealing-with-distributed-denial-of-service-attacks/</link>
		<comments>http://wiredgorilla.com.au/2006/02/dealing-with-distributed-denial-of-service-attacks/#comments</comments>
		<pubDate>Sun, 05 Feb 2006 18:20:46 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Distributed denial of service attacks are frustrating &#8212; they&#8217;re frustrating for the company under attack, and frustrating for the web host. They can also be costly in terms of business and goodwill lost. Fortunately, there are ways to deal with them, if you are willing to prepare for the possibility of a DDoS before it


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Distributed denial of service attacks are frustrating &#8212; they&#8217;re frustrating for the company under attack, and frustrating for the <a href="http://fastdot.com/" target="_blank">web host</a>. They can also be costly in terms of business and goodwill lost. Fortunately, there are ways to deal with them, if you are willing to prepare for the possibility of a DDoS before it happens.</p>
<p><span id="more-279"></span></p>
<div>You may not have seen them very much in the news recently, but distributed denial of service attacks (DDoS) have not gone away. If anything, these attacks – or at least their potential – have become scarier over time as malicious hackers have worked on improving their methods. The increase in home-based broadband Internet connections, for example, means that hackers can now more easily infect a larger number of machines with fast, powerful connections to the Internet and make them do their bidding.</div>
<div>Let’s back up a second and define what we mean by a distributed denial of service attack. A DDoS attack is an attempt to disrupt the service of a computer network and/or company website by overwhelming the processing capacity of the system or by flooding the bandwidth of the business. It is a blatant attempt to consume the system’s resources, to the point that genuine, legitimate users (i.e. website visitors) are denied access.</div>
<div>Hackers engage in DDoS attacks via a two-step process. First, they infect computers with viruses and Trojans that allow them to control the machines remotely. They will then use these computers, known as “zombies,” to overwhelm other systems. These zombie networks can become quite large.</div>
<div>In October 2005, Dutch police arrested three people who’d created a zombie network comprising at least 100,000 computers. Some reports estimate the network was more like 1.5 million machines strong. The three who had created the network were using it to extort money from U.S. companies. It must have worked something like a high-tech version of the classic clich? of the mob protection racket: “Nice company website you have there. Be a shame if it crashed and all your customers couldn’t get through.”</div>
<div>Since many commercial websites now rely on a constant Internet presence, this threat carries a real bite behind it. And with that many machines at a hacker’s command, even a hardened company such as Microsoft is not immune to a DDoS attack. It’s just the thing for the technology wizard with “different” morals who wants to make some money or a political statement.</div>
<div>Dealing with the problems raised by DDoS attacks often requires lots of communication between the company being victimized and the ISP. If you’re hosting a website that is under attack, that’s you; if you’re a web hosting reseller, you’re still that company’s line of communication to the folks who are handling the servers. Needless to say, it helps to know what you’re up against.</p>
<p><strong>Types of Attacks<br />
</strong></div>
<div>An ordinary denial of service attack comes in three basic types. These include consumption of computational resources, such as bandwidth, disk space, or CPU time; disruption of configuration information, such as routing information; and disruption of physical network components. A distributed denial of service attack, as mentioned above, is usually an attempt to consume resources and deny them to other users.</div>
<div>These attacks often take the form of some kind of “flood.” For example, a SYN flood exploits a feature of the TCP connection to overwhelm the system. In a SYN flood, the victim system receives a flood of packets, often with a forged sender address. These are treated like connection requests; the dedicated <a href="http://www.ausweb.com.au/html/dedicated-servers/" target="_blank">server</a> opens a connection, but because the address isn’t real, it doesn’t receive a response. So the server is sitting there, having received requests for a connection, with a bunch of half-open connections, waiting for responses that never come. When all of the connections a server is able to make are filled with these half-open requests, no one else can connect until the attack is over, including legitimate users.</div>
<div>Let me bring you back to the subject of zombies for a moment. A single computer can make thousands of requests on a server. A hacker with a single computer at his command thus isn’t that big of a threat to large companies. Multiply that by only a few hundred zombies, however, and suddenly millions of packets can be generated. Get enough zombies into the act, and any company can be brought to its knees.</div>
<div>One form of “DDoS attack” worth mentioning here is the unintentional attack. This happens when a website faces a swarm of legitimate visitors and can’t deliver the bandwidth needed. You may have heard of “the Slashdot effect,” where an extremely popular site such as Slashdot posts a story with a link to a less well-prepared site as part of the story. Site owners love getting that kind of publicity, but it can be quite painful to deal with the results.</div>
<div>Fortunately, there are things that can be done to deal with distributed denial of service attacks. While they can’t be completely prevented, there are steps that companies and ISPs can take to prepare for an attack that will mitigate the damage. Once an attack is underway, certain actions can be taken that may help limit its duration.</div>
<div><strong>Prepare your Defence</strong></p>
<p><strong></strong></div>
<div>Before an attack occurs, you need to determine which parts of your online presence are most critical to the functioning of your business. The reason for this is simple: your Internet connection probably handles a variety of tasks, including outbound web traffic, incoming web traffic, SMTP email and DNS traffic. If your connection cannot handle all of that at once, as happens during a DDoS attack, which tasks have priority? Once you have set a policy for that issue, your technical fixes can fall into place.</div>
<div>Some attacks can be screened against. For example, you can have a router configured to screen packets before they enter your company’s network. Indeed, screening routers are commonly used today, and will prevent the standard spoofing DDoS attacks. If a screening router is also configured to filter outbound packets, it can make sure that your company does not become the source of a DDoS attack.</div>
<div>Certain types of DDoS attacks can be hard enough to detect that a screening router wouldn’t pick them up. Before an attack occurs, then, you need to understand what your normal user behavior and traffic is like, so that you can spot it when something out of the ordinary happens. If you currently have network monitoring tools, you’ll want to check whether they support the detection of anomalous traffic patterns.</div>
<div>You can also use something called an Intrusion Detection System (IDS) to detect anomalies. An IDS may even be able to reconfigure routers or firewalls when it detects something abnormal. There will naturally be a delay between the detection and the reconfiguring. At least one security company claims that using an IDS carries a certain risk – if an attacker can trigger the IDS to reconfigure the system, for example, it could lead to a self-denial of service. Your mileage may vary.</div>
<div>Firewalls can be good to use along with other defenses. Like screening routers, they can be used to filter packets. Typically, they don’t deal with this task as well as screening routers, so firewalls should not be used as the first line of defense against a DDoS attack. There are now companies that make dedicated DDoS prevention<strong> </strong>products, which may be worth investigating.</div>
<div>Taking various steps to filter traffic at the company end is a good start. These filters should be in place and working as a matter of course. But if the traffic between your company and the ISP is saturated by the DDoS attack, it’s time to escalate your defenses. You will need to contact your ISP to help you manage the attack.</div>
<div>The ISP has more bandwidth and is closer to the source of the attack, so they should be able to provide more effective filtering. The ISP will usually filter based on two factors: the source and destination IP addresses of the traffic, and the type of traffic. If there are detection mechanisms in place, these should be able to identify the sources of the attack – and the ISP should be informed.</div>
<div>If you’re lucky, distinct IP addresses can be identified, and the ISP can filter those individually. Sometimes, however, you can’t get a better identifier than another entire network (or even another country). This is in part because many attacks use spoofed packets that don’t reveal their real IP addresses. The ISP will then have to work with those further upstream to figure out where the traffic is coming from. Once the ISP knows what router(s) the traffic is coming from, the owner can be contacted and informed of the situation.</div>
<div>Meanwhile, if the router(s) can’t be immediately identified, some tough decisions may need to be made, and quickly. Again, you and your ISP will need to communicate closely – will the actions that need to be taken block legitimate users out of the network, and if so, how many? Would it be a fair trade-off?</div>
<div>ISPs can also permit certain types of traffic while denying others. This is another reason why it is important to determine which parts of your online presence are most critical to your business. The ISP can then give those services priority, mitigating some of the pain of the DDoS attack.</div>
<div>Sometimes a fix can be easily accomplished, at least temporarily. If the target of the DDoS attack is a single machine, a simple IP address change can end the flood. This is especially helpful for key servers (such as email or database servers) under attack. Another option, which might work for large companies, is to “throw bandwidth” at the attack and wait it out. It is neither the best nor the least expensive solution, but it might provide a temporary fix.</div>
<div>DDoS attacks must be taken seriously. The key is to be prepared in advance: have your detection systems in place, know your normal traffic, and be on good terms with your ISP. The two of you must start the investigation and mitigation as soon as possible once the attack begins. You and your ISP will need to work together. It is a time-consuming process; even a very large company may take several hours to halt an attack. But it can’t be ignored; lack of preparation will only make things much worse. You owe your customers better than that.</div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2006/02/dealing-with-distributed-denial-of-service-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HELP! My server is under a DDOS attack!</title>
		<link>http://wiredgorilla.com.au/2006/02/help-my-server-is-under-a-ddos-attack/</link>
		<comments>http://wiredgorilla.com.au/2006/02/help-my-server-is-under-a-ddos-attack/#comments</comments>
		<pubDate>Fri, 03 Feb 2006 08:21:14 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Ok first just take a breath, you are getting nothing done by worrying. This guide is meant to try and help mitigate the effects of an attack that is in progresss. I have compiled a lot of the things that I do but it is very possible I have forgotten something. Please feel free to


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Ok first just take a breath, you are getting nothing done by worrying. This guide is meant to try and help mitigate the effects of an attack that is in progresss. I have compiled a lot of the things that I do but it is very possible I have forgotten something. Please feel free to add suggestions at the bottom if you would do it a different way or if this works good for you.<br />
This guide is not meant to take the place of a professional looking at your server but it should give you a very good idea of what is going wrong and point you in the right direction to solving the problem. A lot of this requires you to have an idea of what is happening with your server on a normal basis so you can see what is abnormal with it. It would not be a bad idea to run a few of these tests to see what is normal under your normal busy periods.<br />
<span id="more-102"></span></p>
<div>First check the load of the server<br />
&#8212;&#8211;command&#8212;&#8211;<br />
uptime<br />
&#8212;&#8211;command&#8212;&#8211;</p>
<p>If you have a dual processor server your server is going to start slowing down when the loads are above 4. If you only have a single processor server with no hyperthreading much above 1 and you will start having trouble. Chances are if you are looking at this you are already having trouble. If your load is not high but your server is slow it is some sort of a ping attack meant to use all of the available bandwidth.</p>
<p>First install bwm-ng from http://www.gropp.org/ which is a very simple way to monitor the servers bandwidth.<br />
&#8212;&#8211;command&#8212;&#8211;<br />
cd /usr/local/src<br />
wget http://www.gropp.org/bwm-ng/bwm-ng-0.5.tar.gz<br />
tar -zxf bwm-ng-0.5.tar.gz<br />
cd bwm-ng-0.5<br />
./configure; make; make install<br />
bwm-ng<br />
&#8212;&#8211;command&#8212;&#8211;<br />
In the bottom right is the total transfer in KB/s. Keep in mind some providers only provide a 10mbit uplink which is only 1024KB/s. Most servers are not going to be using much more then 800-1500KB/s. This is where knowing your server comes in handy. If you know that your server normally runs at 800k/sec and you see it using 3000k/sec something is obviously wrong. If the bandwidth is only 200-300KB/s the chances are very low you are under some sort of a bandwidth DOS attack.</p></div>
<div>Most of the attacks in the past few months that I have seen are not bandwidth attacks but rather they attack your services to slow the server down. This is when you will normally see the very high loads. First check how busy apache is:<br />
&#8212;&#8211;command&#8212;&#8211;<br />
httpd status<br />
&#8212;&#8211;command&#8212;&#8211;<br />
If this does not show anything you need to enable apache status in your httpd.conf</p>
<p>&#8212;&#8211;command&#8212;&#8211;<br />
pico -w /etc/httpd/conf/httpd.conf<br />
&#8212;&#8211;command&#8212;&#8211;</p>
<p>Look for the following:</p>
<p>SetHandler server-status<br />
Order deny,allow<br />
Deny from all<br />
Allow from localhost<br />
&lt; /Location&gt;</p>
<p>If will probably be commented out or in some way not look like the above, make it look like that. This will only be accessible via localhost so it must be done via the httpd status command listed above.</p>
<p>Now we are going to look at what this all means. Here is the important part of the status:</p>
<p>CPU Usage: u6047.55 s364.33 cu121.44 cs19.23 &#8211; 29.3% CPU load<br />
25.5 requests/sec &#8211; 0.7 MB/second &#8211; 28.6 kB/request<br />
130 requests currently being processed, 63 idle servers</p></div>
<div>This server in particular is doing 25.5 requests/second which is a decent number for most servers. A busy dual xeon can be doing 40-50 requests/second that all have mysql without too much trouble. If this number is very high you are having some sort of an attack against apache. Note this attack can also be unintentional. If for instance you are unfortunate enough to have your website listed on the frontpage of a news site like www.slashdot.org you site may be &#8220;slashdotted&#8221; which is simply legitimate users overwhelming your server. I woud also look at the current BW usage, if that number is high you may have a user that has postd a very popular file that is getting hit hard. If this number is very high I would install mod_dosevasive.<br />
Another very important thing to look at is how many active connetions your server is currently processing.<br />
&#8212;&#8211;command&#8212;&#8211;<br />
netstat -n | grep :80 |wc -l</div>
<div>netstat -n | grep :80 | grep SYN |wc -l<br />
&#8212;&#8211;command&#8212;&#8211;</p>
<p>The first command will show the number of active connections that are open to your server. Many of the attacks typically seen work by starting a connection to the server and then not sending any reply making the server wait for it to time out. The number of active connections from the first command is going to vary widely but if you are much above 500 you are probably having problems. If the second command is over 100 you are having trouble with a syn attack.</p>
<p>Ok so now we have an idea of what is happening what to do about this. If you have a bandwidth related attack you are pretty much SOL unless your ISP filters it. Even if you block it with a firewall the traffic is still making it to your server which is going to bog it down. Imagine the ethernet cord going into your computer as a highway, once it is full there is very little you can do to go fast on it.</p></div>
<div>On the other hand if you are having an attack against apache there are a few things you can do to help. First install mod_dosevasive . Next thing you will want to do is lower the timeout rates. As I mentioned above many attacks will start a connection then not respond to it will will open a lot of connections to your server and slowly bring it down. By lowering the timeouts the server will drop the connections quicker.</p>
<p>First make a backup copy of the apache config and start to edit it<br />
&#8212;&#8211;command&#8212;&#8211;<br />
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf-GOOD<br />
pico -w /etc/httpd/conf/httpd.conf<br />
&#8212;&#8211;command&#8212;&#8211;</p>
<p>I would suggest commenting out the current lines in your config with a # and just adding mine right below. Though they are good for a DOS attack they are not really optimal for normal activity.</p>
<p>Timeout 15</p>
<p>KeepAlive Off</p>
<p>KeepAliveTimeout 5</p>
<p>Those are the 3 main configuration options, notice how much lower they are being put. You may have to play with them around a little but those should work fine. Now if you want to adjust the number of servers it would be a good time to adjust them. This is one of those tweaking things that will really depend on how busy your server is. Assuming the server is very busy I would set it at:</p></div>
<div>MinSpareServers 15<br />
MaxSpareServers 20</p>
<p>If the server is not as busy you can lower the numbers to say 10/15. I would not set them much more then 10 apart unless you are sure of what you are doing. Basically this will help your server respond to a quick burst of traffic as it will not have to open up more processes.</p></div>
<div>It is also advisable to enable syn cookies which is a way to establish legitmate traffic from the traffic that is illegitimate.<br />
&#8212;&#8211;command&#8212;&#8211;<br />
echo 1 &gt; /proc/sys/net/ipv4/tcp_syncookies<br />
&#8212;&#8211;command&#8212;&#8211;</p>
<p>Like I said above it is not supposed to substitute for hiring a professional but I know plenty of people like to do it themselves and want to learn or they just don&#8217;t have the money. The things I have posted above may not help you in the end depending on the type and size of attack. There are some attacks which very little can be done other then waiting until the storm has passed. As always please post any success stories or questions</p></div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2006/02/help-my-server-is-under-a-ddos-attack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP optimization How-To: Installing Eaccelerator</title>
		<link>http://wiredgorilla.com.au/2006/01/php-optimization-how-to-installing-eaccelerator/</link>
		<comments>http://wiredgorilla.com.au/2006/01/php-optimization-how-to-installing-eaccelerator/#comments</comments>
		<pubDate>Sat, 31 Dec 2005 14:09:01 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Eaccelerator is a PHP accelerator/encoder/caching utility that is based off of the old mmcache (which is no longer being maintained). What Eaccelerator does is: it caches your PHP scripts so that the database is no longer being queried everytime someone needs a script. This is particularly useful for large forums, but pretty much anyone can


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Eaccelerator is a PHP accelerator/encoder/caching utility that is based off of the old mmcache (which is no longer being maintained).</p>
<p>What Eaccelerator does is: it caches your PHP scripts so that the database is no longer being queried everytime someone needs a script. This is particularly useful for large forums, but pretty much anyone can benefit from it. Since these scripts are cached, you&#8217;ll notice a decrease in memory use and server load.<br />
<span id="more-137"></span><br />
<strong>Installing Eaccelerator</strong></p>
<p><strong></strong>1. First, you&#8217;ll want to SSH into your server as the root user. you should be in the default directory now. If you&#8217;re not, type in <em>cd ~</em></p>
<p>2. Now we&#8217;ll make the eaccelerator directory:</p>
<p><em>mkdir /ea/</em></p>
<p><em>cd /ea/</em></p>
<p>2. Now we&#8217;ll grab the files, and unzip them:</p>
<p><em>wget </em><a href="http://optusnet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4.zip"><em>http://optusnet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4.zip</em></a><a href="http://optusnet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5-beta1.tar.bz2"></a><a href="http://kent.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc1.tar.bz2" target="_blank"></a></p>
<p><em>unzip eaccelerator-0.9.4.zip </em></p>
<p>3. Now that we&#8217;ve done that, let&#8217;s <span class="highlight"><strong>install</strong></span> Eaccelerator:<br />
<em>Note: in the following &#8220;export&#8221; command, you need to point that to where PHP is installed. For most, it&#8217;s usually either &#8220;usr/&#8221; or &#8220;usr/local&#8221;, but it may be something else.</em></p>
<p><em>cd eaccelerator-0.9.4/</em></p>
<p><em>export PHP_PREFIX=&#8221;/usr&#8221;</em></p>
<p><em>$PHP_PREFIX/bin/phpize</em></p>
<p><em>./configure &#8211;enable-eaccelerator=shared &#8211;with-php-config=$PHP_PREFIX/bin/php-config</em></p>
<p><em>make</em></p>
<p><em>make <span class="highlight"><strong>install</strong></span></em></p>
<p>4. It&#8217;s basically installed, now we need to edit the php.ini files to include Eaccelerator. This is usually found in the /etc/ folder, but if you can&#8217;t find it, run a &#8220;locate php.ini&#8221; (without quotes) to find it.<br />
[i]I&#8217;m editting my file with nano, which pretty much anyone with a modern server should have. You can use pico or vi, it&#8217;s your choice:</p>
<p><em>cd ~</em></p>
<p><em>nano /etc/php.ini</em></p>
<p>Now find ;Windows Extensions (press ctrl + W). Remove the mmcache lines (if you had it installed before) above this and&#8230;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
For a PHP extension <span class="highlight"><strong>install</strong></span> (most will probably want this)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><em>extension=&#8221;eaccelerator.so&#8221;<br />
eaccelerator.shm_size=&#8221;16&#8243;<br />
eaccelerator.cache_dir=&#8221;/tmp/eaccelerator&#8221;<br />
eaccelerator.enable=&#8221;1&#8243;<br />
eaccelerator.optimizer=&#8221;1&#8243;<br />
eaccelerator.check_mtime=&#8221;1&#8243;<br />
eaccelerator.debug=&#8221;0&#8243;<br />
eaccelerator.filter=&#8221;"<br />
eaccelerator.shm_max=&#8221;0&#8243;<br />
eaccelerator.shm_ttl=&#8221;0&#8243;<br />
eaccelerator.shm_prune_period=&#8221;0&#8243;<br />
eaccelerator.shm_only=&#8221;0&#8243;<br />
eaccelerator.compress=&#8221;1&#8243;<br />
eaccelerator.compress_level=&#8221;9&#8243;</em></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
For a Zend extension <span class="highlight"><strong>install</strong></span> (only if you have Zend installed, or<br />
if you&#8217;re going to <span class="highlight"><strong>install</strong></span> it<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><em>zend_extension=&#8221;/usr/lib/php4/eaccelerator.so&#8221;<br />
eaccelerator.shm_size=&#8221;16&#8243;<br />
eaccelerator.cache_dir=&#8221;/tmp/eaccelerator&#8221;<br />
eaccelerator.enable=&#8221;1&#8243;<br />
eaccelerator.optimizer=&#8221;1&#8243;<br />
eaccelerator.check_mtime=&#8221;1&#8243;<br />
eaccelerator.debug=&#8221;0&#8243;<br />
eaccelerator.filter=&#8221;"<br />
eaccelerator.shm_max=&#8221;0&#8243;<br />
eaccelerator.shm_ttl=&#8221;0&#8243;<br />
eaccelerator.shm_prune_period=&#8221;0&#8243;<br />
eaccelerator.shm_only=&#8221;0&#8243;<br />
eaccelerator.compress=&#8221;1&#8243;<br />
eaccelerator.compress_level=&#8221;9&#8243;</em></p>
<p>5. Now we need to make the cache directory, where the cache files will be stored.</p>
<p><em>cd ~</em></p>
<p><em>mkdir /tmp/eaccelerator/</em></p>
<p><em>chmod 0777 /tmp/eaccelerator/</em></p>
<p>6. Yay, it&#8217;s installed! Let&#8217;s restart Apache now so that Eaccelerator will start working:</p>
<p><em>service httpd restart</em></p>
<p>7. You *should* notice some sort of speed boost or that the server load/memory use has decreased. But let&#8217;s just make sure that it&#8217;s installed properly.</p>
<p>Open up your favorite FTP client and upload the eaccelerator.php and eaccelerator_password.php files to any directory on your website. I uploaded mine to my forum directory, but you can pretty much place them anywhere in the public_html directory.</p>
<p>Once that&#8217;s done, you can go to <a href="http://www.your-domain.com/path_to_script/eaccelerator.php" target="_blank">http://www.your-domain.com/path_to_s&#8230;ccelerator.php</a> (of course, replacing that with the path to the script) to see if it&#8217;s installed. If it&#8217;s installed properly, you&#8217;ll see a screen like this:</p>
<div><a href="http://img452.imageshack.us/my.php?image=ea7ab.png" target="_blank"><img src="http://img452.imageshack.us/img452/760/ea7ab.th.png" border="0" alt="" /></a></div>
<p>Otherwise, you&#8217;ll see a screen saying that it&#8217;s not installed. You have to go back through the instructions, retry it and see if that works. Check to make sure that you specified the right directories and files in the instructions above!</p>
<p>Now, we&#8217;ll probably want to add a password to prevent some mean user from clearing the cached scripts or causing other bad stuff to happen. Navigate to the eaccelerator_password file and set an administrator name and password.</p>
<p>This doesn&#8217;t set the password, but it gives you a line of code to place in your php.ini file (just below the eaccelerator part). Once you do this, you need to log in to view the eaccelerator page.</p>
<p>After you&#8217;re done, you can delete or rename this file, but it&#8217;s not required.</p>
<p><strong>BTW just in addition: eaccelerator does NOT work with php compiled as cgi, so it is not possible to use it with phpsuexec or with suphp.</strong></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2006/01/php-optimization-how-to-installing-eaccelerator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Security Considerations</title>
		<link>http://wiredgorilla.com.au/2005/03/server-security-considerations/</link>
		<comments>http://wiredgorilla.com.au/2005/03/server-security-considerations/#comments</comments>
		<pubDate>Fri, 18 Mar 2005 14:39:27 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[&#62;Server security is as important as network security because servers often hold a great deal of an organization&#8217;s vital information. If a server is compromised, all of its contents may become available for the cracker to steal or manipulate at will. The following sections detail some of the main issues. CLASS=&#8221;SECT2&#8243; &#62; CLASS=&#8221;SECT2&#8243; &#62; NAME=&#8221;S2-RISK-SERV-PORTS&#8221;


No related posts.]]></description>
			<content:encoded><![CDATA[<p>&gt;Server security is as important as network security because servers<br />
often hold a great deal of an organization&#8217;s vital information. If a<br />
server is compromised, all of its contents may become available for the<br />
cracker to steal or manipulate at will. The following sections detail<br />
some of the main issues.<br />
<span id="more-335"></span></p>
<div>
CLASS=&#8221;SECT2&#8243;<br />
&gt;</p>
<h2>
CLASS=&#8221;SECT2&#8243;<br />
&gt;<a><br />
NAME=&#8221;S2-RISK-SERV-PORTS&#8221;<br />
&gt;</a>2.3.1. Unused Services and Open Ports</h2>
<p>&gt;	  A full installation of Red Hat Enterprise Linux contains up to 1200 application and<br />
library packages. However, most server administrators do not opt to<br />
install every single package in the distribution, preferring instead<br />
to install a base installation of packages, including several server<br />
applications.<br />
&gt;	  A common occurrence among system administrators is to install the<br />
operating system without paying attention to what programs are<br />
actually being installed. This can be problematic because unneeded<br />
services may be installed, configured with the default settings, and<br />
possibly turned on. This can cause unwanted services, such as Telnet,<br />
DHCP, or DNS, to run on a server or workstation without the</p>
<p>administrator realizing it, which in turn can cause unwanted traffic<br />
to the server, or even, a potential pathway into the system for<br />
crackers. Refer To <a><br />
HREF=&#8221;http://wiredgorilla.com/main/article-topic-7.html&#8221;<br />
&gt;Linux Server Security</a> for information on<br />
closing ports , installing Firewalls and disabling unused services.</div>
<div>
CLASS=&#8221;SECT2&#8243;<br />
&gt;</p>
<h2>
CLASS=&#8221;SECT2&#8243;<br />
&gt;<a><br />
NAME=&#8221;S2-RISK-SERV-PATCH&#8221;<br />
&gt;</a>2.3.2. Unpatched Services</h2>
<p>&gt;	  Most server applications that are included in a default installation<br />
are solid, thoroughly tested pieces of software. Having been in use in<br />
production environments for many years, their code has been thoroughly<br />
refined and many of the bugs have been found and fixed.<br />
&gt;	  However, there is no such thing as perfect software and there is<br />
always room for further refinement. Moreover, newer software is often<br />
not as rigorously tested as one might expect, because of its recent<br />
arrival to production environments or because it may not be as popular<br />
as other server software.<br />
&gt;	  Developers and system administrators often find exploitable bugs in<br />
server applications and publish the information on bug tracking and<br />
security-related websites such as the Bugtraq mailing list (<a><br />
HREF=&#8221;http://www.securityfocus.com&#8221;<br />
TARGET=&#8221;_top&#8221;<br />
&gt;http://www.securityfocus.com</a>)<br />
or the Computer Emergency Response Team (CERT) website (<a><br />
HREF=&#8221;http://www.cert.org&#8221;<br />
TARGET=&#8221;_top&#8221;<br />
&gt;http://www.cert.org</a>). Although these<br />
mechanisms are an effective way of alerting the community to security<br />
vulnerabilities, it is up to system administrators to patch their<br />
systems promptly. This is particularly true because crackers have<br />
access to these same vulnerability tracking services and will use the<br />
information to crack unpatched systems whenever they can. Good system<br />
administration requires vigilance, constant bug tracking, and proper<br />
system maintenance to ensure a more secure computing environment.</div>
<div>
CLASS=&#8221;SECT2&#8243;<br />
&gt;</p>
<h2>
CLASS=&#8221;SECT2&#8243;<br />
&gt;<a><br />
NAME=&#8221;S2-RISK-SERV-LAZYADMIN&#8221;<br />
&gt;</a>2.3.3. Inattentive Administration</h2>
<p>&gt;	  Administrators who fail to patch their systems are one of the greatest<br />
threats to server security. According to the <em><br />
CLASS=&#8221;FIRSTTERM&#8221;<br />
&gt;System<br />
Administration Network and Security Institute</em></p>
<p>(<em><br />
CLASS=&#8221;FIRSTTERM&#8221;<br />
&gt;SANS</em>), the primary cause of computer security<br />
vulnerability is to &#8220;assign untrained people to maintain security and<br />
provide neither the training nor the time to make it possible to do<br />
the job.&#8221; This applies as much to inexperienced administrators as it<br />
does to overconfident or amotivated administrators.<br />
&gt;	  Some administrators fail to patch their servers and workstations,<br />
while others fail to watch log messages from the system kernel or<br />
network traffic. Another common error is to leave unchanged default<br />
passwords or keys to services. For example, some databases have<br />
default administration passwords because the database developers<br />
assume that the system administrator changes these passwords<br />
immediately after installation. If a database administrator fails to<br />
change this password, even an inexperienced cracker can use a<br />
widely-known default password to gain administrative privileges to the<br />
database. These are only a few examples of how inattentive<br />
administration can lead to compromised servers.</div>
<div>
CLASS=&#8221;SECT2&#8243;<br />
&gt;</p>
<h2>
CLASS=&#8221;SECT2&#8243;<br />
&gt;<a><br />
NAME=&#8221;S2-RISK-SERV-INSECURE&#8221;<br />
&gt;</a>2.3.4. Inherently Insecure Services</h2>
<p>&gt;Even the most vigilant organization can fall victim to<br />
vulnerabilities if the network services they choose are inherently<br />
insecure. For instance, there are many services developed under the<br />
assumption that they are used over trusted networks; however, this<br />
assumption fails as soon as the service becomes available over the<br />
Internet ? which is itself inherently untrusted.<br />
&gt;One category of insecure network services are those that require<br />
unencrypted usernames and passwords for authentication. Telnet and FTP<br />
are two such services. If packet sniffing software is monitoring<br />
traffic between the remote user and such a service usernames and<br />
passwords can be easily intercepted.<br />
&gt;	  Inherently, such services can also more easily fall prey to what the<br />
security industry terms the <em><br />
CLASS=&#8221;FIRSTTERM&#8221;<br />
&gt;man-in-the-middle</em></p>
<p>attack. In this type of attack, a cracker redirects network traffic by<br />
tricking a cracked name server on the network to point to his machine<br />
instead of the intended server. Once someone opens a remote session to<br />
the server, the attacker&#8217;s machine acts as an invisible conduit,<br />
sitting quietly between the remote service and the unsuspecting user<br />
capturing information. In this way a cracker can gather administrative<br />
passwords and raw data without the server or the user realizing it.<br />
&gt;	  Another category of insecure services include network file systems and<br />
information services such as NFS or NIS, which are developed<br />
explicitly for LAN usage but are, unfortunately, extended to include<br />
WANs (for remote users). NFS does not, by default, have any<br />
authentication or security mechanisms configured to prevent a cracker<br />
from mounting the NFS share and accessing anything contained<br />
therein. NIS, as well, has vital information that must be known by<br />
every computer on a network, including passwords and file permissions,<br />
within a plain text ACSII or DBM (ASCII-derived) database. A cracker<br />
who gains access to this database can then access every user account<br />
on a network, including the administrator&#8217;s account.</p></div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2005/03/server-security-considerations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detect and Clean a hacked cPanel server with this T0rnkit Tutorial</title>
		<link>http://wiredgorilla.com.au/2004/12/detect-and-clean-a-hacked-cpanel-server-with-this-t0rnkit-tutorial/</link>
		<comments>http://wiredgorilla.com.au/2004/12/detect-and-clean-a-hacked-cpanel-server-with-this-t0rnkit-tutorial/#comments</comments>
		<pubDate>Mon, 20 Dec 2004 14:21:28 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This tutorial is for system admins and will run you through how to Detect and Clean a hacked cPanel server with T0rnkit T0rn Rootkit Tornkit is a rootkit, a set of programs that is used by an intruder to have unrestricted access to a compromised Linux system. Tornkit is also attempts to hide its presence.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>This tutorial is for system admins and will run you through how to Detect and Clean a hacked cPanel server with T0rnkit<br />
<span id="more-49"></span><br />
<strong> </strong></p>
<p><strong>T0rn Rootkit</strong></p>
<p><strong></strong></p>
<p>Tornkit is a rootkit, a set of programs that is used by an intruder to have unrestricted access to a compromised Linux system. Tornkit is also attempts to hide its presence.</p>
<p>The t0rn rootkit is designed for speed. By that I mean that it was designed to install quickly on Linux machines. T0rn can do this because it takes very little skill to install and run. All of the binaries that the attacker would need come pre-compiled and the installation process is as simple as ./t0rn. T0rn comes standard with a log cleaner called t0rnsb, a sniffer named t0rns and a log parser called t0rnp.</p>
<p>I am including this so that you all diag and clean up your hacked server.</p>
<p>First of all,<br />
Login to WHM as root<br />
Click Tweak Settings<br />
and please remove the tick from<br />
Allow cPanel users to reset their password via email</p>
<p>Step 1. run chkrootkit, and you will see some INFECTED lines. It will also report that some process are hidden from the ps</p>
<p>chkrootkit</p>
<p>Checking `ifconfig&#8217;&#8230; INFECTED<br />
Checking `login&#8217;&#8230; INFECTED<br />
Checking `pstree&#8217;&#8230; INFECTED<br />
and also:<br />
Checking `lkm&#8217;&#8230; You have X process hidden for ps command<br />
Warning: Possible LKM Trojan installed</p>
<p>Step 2. /etc/init.d/syslog restart</p>
<p>Shutting down kernel logger: [ OK ]<br />
Shutting down system logger: [ OK ]<br />
Starting system logger: [FAILED]<br />
Starting kernel logger: [ OK ]</p>
<p>Step 3. top</p>
<p>top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: No such file or directory</p>
<p>Step 4. tail /etc/rc.d/rc.sysinit</p>
<p># Xntps (NTPv3 daemon) startup..<br />
/usr/sbin/xntps -q</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>OK.. looks like someone got to your server as well. Since we know what rootkit it is, let us investigate further.</p>
<p>Configuration files</p>
<p>/usr/include/file.h (for file hiding)<br />
/usr/include/proc.h (for ps proc hiding)<br />
/lib/lidps1.so (for pstree hiding)<br />
/usr/include/hosts.h (for netstat and net-hiding)<br />
/usr/include/log.h (for log hiding)<br />
/lib/lblip.tk/ (backdoored ssh configuration files are in this directory)<br />
/dev/sdr0 (systems md5 checksum)<br />
/lib/ldd.so {placing tks(sniffer), tkp(parser) and tksb(log cleaner)}</p>
<p>Infected Binaries:</p>
<p>top, ps, pstree lsof, md5sum, dir, login, encrypt,ifconfig,find,ls,slocate,<br />
tks,tksb,top,tkpnetstat,pg,syslogd,sz</p>
<p>Infected Librairies:<br />
libproc.a,libproc.so.2.0.6,libproc.so</p>
<p>BackDoor: (located at /lib/lblip.tk)</p>
<p>shdc<br />
shhk.pub<br />
shk<br />
shrs</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Now, Lets start the cleaning process:</p>
<p>Step 1.<br />
pico /etc/rc.d/rc.sysinit</p>
<p>remove the lines that show</p>
<p># Xntps (NTPv3 daemon) startup..<br />
/usr/sbin/xntps -q</p>
<p>Step 2.<br />
reboot the system</p>
<p>WARNING: 2 servers got their kernel removed after reboot.<br />
If your&#8217;s is the case and that is what the DataCenter complains after reboot, please ask them to do the following:</p>
<p>reboot the system using the redhat CD into rescue mode<br />
chroot to the /mnt/sysimage<br />
reinstall kernel packages</p>
<p>that should fix it.</p>
<p>&#8211; since already in resuce mode, perhaps also ask them to &#8211;force install the following rpm&#8217;s</p>
<p>procps*.rpm<br />
psmisc*.rpm<br />
findutils*.rpm<br />
fileutils*.rpm<br />
util-linux*.rpm<br />
net-tools*.rpm<br />
textutils*.rpm<br />
sysklogd*.rpm</p>
<p>Step 3.<br />
After the system is up</p>
<p>cd /lib<br />
rm -rf lblip.tk</p>
<p>Step 4.<br />
remove the configuration files given above.</p>
<p>Step 5.<br />
cat /etc/redhat-release<br />
note down your version of redhat, then from<br />
www.rpmfind.net<br />
search for the following rpm&#8217;s</p>
<p>procps*.rpm<br />
psmisc*.rpm<br />
findutils*.rpm<br />
fileutils*.rpm<br />
util-linux*.rpm<br />
net-tools*.rpm<br />
textutils*.rpm<br />
sysklogd*.rpm</p>
<p>&#8211; and rpm &#8211;force install them</p>
<p>Step 6.<br />
if you see the hosts.h file, it says to hide all IP&#8217;s from</p>
<p>cat /usr/include/hosts.h<br />
193.60</p>
<p>thus, if you want, you can block all the IP&#8217;s from 193.60 to your server via iptables.</p>
<p>Step 7.<br />
If all goes OK,<br />
please reboot the server, and run chkrootkit again&#8230;</p>
<p>You should be OK!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2004/12/detect-and-clean-a-hacked-cpanel-server-with-this-t0rnkit-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change your server signature</title>
		<link>http://wiredgorilla.com.au/2004/12/how-to-change-your-server-signature/</link>
		<comments>http://wiredgorilla.com.au/2004/12/how-to-change-your-server-signature/#comments</comments>
		<pubDate>Wed, 08 Dec 2004 13:37:31 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Disguising your server signature is always a good idea as you wont reveal the operating system to potential script kiddies and hackers. Connect to your server via SSH and login as admin, then &#8216;su -&#8217; to root. Type the following at the command prompt: pico -w /etc/httpd/conf/httpd.conf Press [CTRL-W] to start a text search, then


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Disguising your server signature is always a good idea as you wont reveal the operating system to potential script kiddies and hackers.<br />
<span id="more-177"></span><br />
Connect to your server via SSH and login as admin, then &#8216;su -&#8217; to root.</p>
<p>Type the following at the command prompt:</p>
<p>pico -w /etc/httpd/conf/httpd.conf</p>
<p>Press [CTRL-W] to start a text search, then type &#8216;ServerSignature&#8217; and press<br />
[RETURN]</p>
<p>Change:</p>
<p>ServerSignature On</p>
<p>To:</p>
<p>ServerSignature Off<br />
ServerTokens ProductOnly</p>
<p>Now press [CTRL-O] to save the file, then [CTRL-X] to leave the text editor.<br />
Finally, type the following at the command prompt:</p>
<p>service httpd restart</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2004/12/how-to-change-your-server-signature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HERE ARE SIX SIMPLE THINGS YOU CAN DO TO HELP KEEP SPAM AT BAY</title>
		<link>http://wiredgorilla.com.au/2004/09/here-are-six-simple-things-you-can-do-to-help-keep-spam-at-bay/</link>
		<comments>http://wiredgorilla.com.au/2004/09/here-are-six-simple-things-you-can-do-to-help-keep-spam-at-bay/#comments</comments>
		<pubDate>Mon, 06 Sep 2004 10:39:17 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Check out those basic rules to avoid spam robots to use your email for spaming ! 1) NEVER RESPOND TO SPAM Oh sure, they say they?ll take your name off the list, but they?re lying. What they really want to do is confirm that they?ve got a live address. Also, if you respond, they?ll sell


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Check out those basic rules to avoid spam robots to use your email for spaming !<br />
<span id="more-204"></span><br />
1) NEVER RESPOND TO SPAM</p>
<p>Oh sure, they say they?ll take your name off the list, but they?re lying. What they really want to do is confirm that they?ve got a live address. Also, if you respond, they?ll sell your address to every other spammer on the planet meaning you?ll soon be flooded with even more spam.</p>
<p>2)  DON?T POST YOUR ADDRESS ON YOUR WEBSITE</p>
<p>It seems like a good idea at the time, but posting your email address on your personal home page is just an invitation to spammers. Spammers and the people who sell spamming as a business have software that &#8220;harvests&#8221; email addresses from the Net. This software crawls through the Internet seeking text strings that are -something-@-something-.-something-. When it finds one, it catalogs it on a database of other email addresses to be used to send spam.</p>
<p>3)  USE A SECOND EMAIL ADDRESS IN NEWSGROUPS</p>
<p>Newsgroups are the great email address gathering ground for spammers. If you post to a group, you?re going to get spam &#8212; it is just a matter of time. So how are you supposed to participate? Use a different email address than the one you use for talking to friends and relatives. In other words, have a public address and a private address. You?ll just have to deal with the spam in your public account.</p>
<p>4)  DON?T GIVE YOUR EMAIL ADDRESS WITHOUT KNOWING HOW IT WILL BE USED</p>
<p>If a website is asking for your email address, they want to use it for something. Be sure you know what. Read the terms of use and privacy statements of any site before telling them your address. Ask yourself some simple questions. Are they going to share or sell my address? Do I want emails from this website? Do I trust them? Is it worth the risk? If you can?t answer these questions satisfactorily, if you can?t find their privacy statement, don?t tell them your address.</p>
<p>5)  USE A SPAM FILTER</p>
<p>While there is no such thing as a perfect filter, anti-spam software can help keep spam at manageable level. Some of it is cumbersome, some works better than others, some even requires that you let your email messages go through another system for storage and cleaning.</p>
<p>6)  NEVER BUY ANYTHING ADVERTISED IN SPAM</p>
<p>The reason that people spam is because they can make money. They make money, like all advertisers, by convincing people to buy a product. If no one buys the things advertised in spam, companies will quit paying spammers to advertise their products.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2004/09/here-are-six-simple-things-you-can-do-to-help-keep-spam-at-bay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install RKHunter</title>
		<link>http://wiredgorilla.com.au/2004/08/how-to-install-rkhunter/</link>
		<comments>http://wiredgorilla.com.au/2004/08/how-to-install-rkhunter/#comments</comments>
		<pubDate>Tue, 17 Aug 2004 14:07:53 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[RKHunter also known as RootKit Hunter is a scanning tool to ensure you for about 99.9% that you don&#8217;t have any rootkits, backdoors, and local exploits but running tests and e-mailing you results. How To Install RKHunter RKHunter &#8211; (RootKit Hunter) Is a security scanning tool which will scan for rootkits, backdoors, and local exploits.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>RKHunter also known as RootKit Hunter is a scanning tool to ensure you for about 99.9% that you don&#8217;t have any rootkits, backdoors, and local exploits but running tests and e-mailing you results.</p>
<p><span id="more-20"></span></p>
<h1><span style="font-size: 12pt; font-family: Verdana,Arial,Helvetica,sans-serif; color: #0033ff"><br />
How To Install RKHunter</span></h1>
<hr size="1" /><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif"><br />
RKHunter &#8211; (RootKit Hunter) Is a security scanning tool which will scan for rootkits, backdoors, and local exploits.<br />
RKHunter will ensure you about 99.9% that your dedicated web server is secure.</p>
<p>1. Login to your server via SSH as root.<br />
Then Type: <span style="color: RED">cd /usr/local/src/</span></p>
<p>2. Download RKHunter Version 1.1.4<br />
Type: <span style="color: RED">wget http://optusnet.dl.sourceforge.net/sourceforge/rkhunter/rkhunter-1.3.0.tar.gz</span></p>
<p>3. Extract files<br />
Type: <span style="color: RED">tar -xzvf </span></p>
<p></span><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif"><span style="color: RED">rkhunter-1.3.0.tar.gz</span></span><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif"></p>
<p>4. Type: <span style="color: RED">cd </span></p>
<p></span><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif"><span style="color: RED">rkhunter-1.3.0.tar.gz</span></span><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif"></p>
<p>5. Type: <span style="color: RED">./installer.sh &#8211;help</span></p>
<p>The default should do</p>
<p></span></p>
<p><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif; color: #ff0000">./installer.sh &#8211;layout /usr/local &#8211;install</span></p>
<p><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif"><br />
6. Lets setup RKHunter to e-mail you you daily scan reports.<br />
Type: <span style="color: RED">pico -w /etc/cron.daily/rkhunter.sh</span><br />
Add The Following:</span></p>
<blockquote><p><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif"><br />
<span style="color: #ff0000"><br />
#!/bin/bash<br />
(/usr/local/bin/rkhunter -c &#8211;cronjob 2&gt;&amp;1 | mail -s &#8220;RKhunter Scan Details&#8221; replace-this@with-your-email.com )</span></span></p></blockquote>
<p><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif"><br />
<span style="color: blue">Replace the e-mail above with your e-mail!!</span> It is best to send the e-mail to an e-mail off-site so that if the box IS compromised the hacker can&#8217;t erase the scan report unless he hacks another server too.<br />
Type: <span style="color: RED">chmod +x /etc/cron.daily/rkhunter.sh</span></span></p>
<p><strong></strong></p>
<p>Additional Info</p>
<h2>Rootkit Hunter usage</h2>
<blockquote><p>
Rootkit Hunter is a package which contains a few binary scripts<br />
(shell / perl) and a few databases.</p>
<p>You can use Rootkit Hunter by running<br />
&#8216;rkhunter&#8217; with one or more parameters (when using no parameters at all, you&#8217;ll<br />
get the usage screen).</p>
<hr />Usage:<br />
rkhunter &lt;parameters&gt;</p>
<p><strong>&#8211;checkall (or<br />
-c)</strong><br />
Check the system, performs all<br />
tests.</p>
<p><strong>&#8211;createlogfile</strong>*<br />
Create a logfile (default<br />
/var/log/rkhunter.log)</p>
<p><strong>&#8211;cronjob</strong><br />
Run as cronjob (removes<br />
colored layout)</p>
<p><strong>&#8211;help (or -h)</strong><br />
Show help about<br />
usage</p>
<p><strong>&#8211;nocolors*</strong><br />
Don&#8217;t use colors for output (some terminals<br />
don&#8217;t like colors or extended layout<br />
characters)</p>
<p><strong>&#8211;report-mode*</strong><br />
Don&#8217;t show uninteresting information<br />
for reports, like header/footer. Interesting when scanning from crontab or with<br />
usage of other applications.</p>
<p><strong>&#8211;skip-keypress</strong>*<br />
Don&#8217;t wait after<br />
every test (makes it non-interactive)</p>
<p><strong>&#8211;quick</strong>*<br />
Perform quick<br />
scan (instead of full scan). Skips some tests and performs some enhanced tests<br />
(less suitable for normal scans).</p>
<p><strong>&#8211;version</strong><br />
Show version and<br />
quit</p>
<p><strong>&#8211;versioncheck</strong><br />
Check for latest version</p></blockquote>
<p><span style="font-size: 10pt; font-family: Verdana,Arial,Helvetica,sans-serif"><strong>RKHunter let me know there was something wrong with my dedicated server, What do I do?</strong></span></p>
<p>1. If your system is infected with an rootkit, it&#8217;s almost impossible to clean it up (lets say with a full warranty it&#8217;s clean). Never trust a machine which has been infected with a rootkit, because hiding is the root kit&#8217;s main purpose.<br />
(So a fresh installation of the operating system is NEEDED)</p>
<p>2. If only one check fails it is possible that you have a &#8220;false positive&#8221;.<br />
This sometimes occurs due to custom configurations or changed binaries. If this happens you can validate the &#8216;false positive&#8217; by checking for untrusted paths, knowing if oyu recently updated the binary, and rkhunter just is out of date, and you can also compare your binaries with other trusted binaries to ensure they are in fact &#8216;safe&#8217; from a root kit.</p>
<p>RKHunter Faq Can Be Found Here <a href="http://www.rootkit.nl/articles/rootkit_hunter_faq.html">www.rootkit.nl</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2004/08/how-to-install-rkhunter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install CHKROOTKIT</title>
		<link>http://wiredgorilla.com.au/2004/08/how-to-install-chkrootkit/</link>
		<comments>http://wiredgorilla.com.au/2004/08/how-to-install-chkrootkit/#comments</comments>
		<pubDate>Tue, 17 Aug 2004 13:53:49 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[chkrootkit: shell script that checks system binaries for rootkit modification. How To Install CHKROOTKIT The following tests are made: aliens asp bindshell lkm rexedcs sniffer wted w55808 scalper slapper z2 amd basename biff chfn chsh cron date du dirname echo egrep env find fingerd gpm grep hdparm su ifconfig inetd inetdconf init identd killall ldsopreload


No related posts.]]></description>
			<content:encoded><![CDATA[<p>chkrootkit: shell script that checks system binaries for rootkit modification.<br />
<span id="more-17"></span></p>
<h1><span style="font-family: Verdana,Arial,Helvetica,sans-serif; color: #0033ff; font-size: small;"><br />
How To Install CHKROOTKIT</span></h1>
<hr size="1" /><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><br />
<strong>The following tests are made:</strong><br />
aliens asp bindshell lkm rexedcs sniffer wted w55808 scalper slapper z2 amd basename biff chfn chsh cron date du dirname echo egrep env find fingerd gpm grep hdparm su ifconfig inetd inetdconf init identd killall ldsopreload login ls lsof mail mingetty netstat named passwd pidof pop2 pop3 ps pstree rpcinfo rlogind rshd slogin sendmail sshd syslogd tar tcpd tcpdump top telnetd timed traceroute vdir w write </span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">1. Login to your server as root. (SSH) </span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">2. Down load the chkrootkit.<br />
Type: <span style="color: red;">wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">3. Unpack the chkrootkit you just downloaded.<br />
Type: <span style="color: red;">tar xvzf chkrootkit.tar.gz</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">4. Change to new directory</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">Type: <span style="color: red;">cd chkrootkit*</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">5. Compile chkrootkit<br />
Type: <span style="color: red;">make sense</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">6. Run chkrootkit<br />
Type: <span style="color: red;">./chkrootkit</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">If it says &#8220;Checking `bindshell&#8217;&#8230; INFECTED (PORTS:  465)&#8221;</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">This is normal and it is <strong>NOT</strong> really a virus. </span></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2004/08/how-to-install-chkrootkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install BFD (Brute Force Detection)</title>
		<link>http://wiredgorilla.com.au/2004/08/install-bfd-brute-force-detection/</link>
		<comments>http://wiredgorilla.com.au/2004/08/install-bfd-brute-force-detection/#comments</comments>
		<pubDate>Tue, 17 Aug 2004 06:35:12 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[BFD is a modular shell script for parsing applicable logs and checking for authentication failures. What is Brute Force Detection? (BFD) BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation,


No related posts.]]></description>
			<content:encoded><![CDATA[<p>BFD is a modular shell script for parsing applicable logs and checking for authentication failures.<br />
<span id="more-16"></span><br />
<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;"><br />
What is Brute Force Detection? (BFD)<br />
BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation, configuration and usage. The reason behind BFD is very simple; the fact there is little to no authentication and brute force auditing programs in the linux community that work in conjunction with a firewall or real-time facility to place bans.</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">This How-To will show you how to install BFD on your Linux Server to prevent and monitor brute force hack attempts.</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">This software like some others has requirements. You must be running APF / Advanced Policy Firewall for Brute Force Detection to work. </span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">1. Login to your server via SSH as Root.</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">2. Type: <span style="color: red;">wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">3. Type: <span style="color: red;">tar -xvzf bfd-current.tar.gz</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">4. Type: <span style="color: red;">cd bfd*</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">5. Now let&#8217;s install BFD onto the server.<br />
Type: <span style="color: red;">./install.sh</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">:: You Should See ::<br />
.: BFD installed</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">Install path: /usr/local/bfd<br />
Config path: /usr/local/bfd/conf.bfd<br />
Executable path: /usr/local/sbin/bfd</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">6. Now we need to edit the configuration file, and set some options.<br />
Don&#8217;t worry the BFD Configuration isn&#8217;t hard to edit or understand!<br />
Type: <span style="color: red;">pico -w /usr/local/bfd/conf.bfd</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">7. Now we need to find the line to edit:</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">Press: <span style="color: red;">CTRL-W</span><br />
Type: <span style="color: red;">ALERT_USR<br />
Change ALERT_USR=&#8221;0&#8243; TO ALERT_USR=&#8221;1&#8243; </span>&lt;<br />
Right below that we need to change the email:<br />
Change EMAIL_USR=&#8221;root&#8221; TO EMAIL_USR=&#8221;you@yoursite.com&#8221;</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">8. That wasn&#8217;t to bad let&#8217;s save and exit the file<br />
Press: CTRL-X then type Y then hit enter</span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">9. Now we have to prevent locking yourself out of the server.<br />
Type: <span style="color: red;">pico -w /usr/local/bfd/ignore.hosts </span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">10. Add any IP address that you want to be ignored from the rules. If your server provider is doing monitoring add their IP(s) here. Since you need these IPs open in APF as well you can copy the IPs you used in APF.<br />
Type: <span style="color: red;">pico -w /etc/apf/allow_hosts.rules</span><br />
Then scroll down to the bottom and copy those IPs (drag mouse over that&#8217;s it)<br />
Press: CTRL-X<br />
Type: <span style="color: red;">pico -w /usr/local/bfd/ignore.hosts</span></span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">Paste those IPs to the bottom. You should also add your home IP if you hadn&#8217;t done so before. If your home IP is dynamic this is not a good idea, and you should get a static IP.<br />
Press: CTRL-X then Y to save then enter. </span></p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: x-small;">11. Now lets run BDF!!!<br />
Type: <span style="color: red;">/usr/local/sbin/bfd -s</span> </span></p>
<p>Just in case if you want to enable a banned IP again to acess your server again:</p>
<p>pico /etc/apf/deny_hosts.rules and find the IP address which has been banned and simply delete it !<br />
after that ctrl + x and y and enter</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2004/08/install-bfd-brute-force-detection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Telnet Access</title>
		<link>http://wiredgorilla.com.au/2004/08/disable-telnet-access/</link>
		<comments>http://wiredgorilla.com.au/2004/08/disable-telnet-access/#comments</comments>
		<pubDate>Tue, 17 Aug 2004 06:11:04 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Techno Babble]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Telnet should be disabled, and you should use SSH. Telnet sends password in plain text, and &#8216;crackers/hackers&#8217; can obtain these passwords easily compared to SSH, and then takeover your dedicated web server. 1. Login to your dedicated server via SSH as root. 2. Type: pico -w /etc/xinetd.d/telnet 3. Change the disable = no line to


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Telnet should be disabled, and you should use SSH. Telnet sends password in plain text, and &#8216;crackers/hackers&#8217; can obtain these passwords easily compared to SSH, and then takeover your dedicated web server.<br />
<span id="more-14"></span><br />
1. Login to your dedicated server via SSH as root.</p>
<p>2. Type: pico -w /etc/xinetd.d/telnet</p>
<p>3. Change the disable = no line to<br />
disable = yes.</p>
<p>4. CTRL+X then Y then enter to save the file.</p>
<p>5. Restart xinted.<br />
Type: /etc/rc.d/init.d/xinetd restart</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2004/08/disable-telnet-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
