<?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>PRESOON.COM &#187; Linux</title>
	<atom:link href="http://presoon.com/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://presoon.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 20 Mar 2010 03:59:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to install CSF Firewall on virtuozzo &#8211; Cannot enter into server after CSF installation VPS</title>
		<link>http://presoon.com/blog/2010/03/14/how-to-install-csf-firewall-on-virtuozzo-cannot-enter-into-server-after-csf-installation-vps/</link>
		<comments>http://presoon.com/blog/2010/03/14/how-to-install-csf-firewall-on-virtuozzo-cannot-enter-into-server-after-csf-installation-vps/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 23:03:04 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[cannot access vps after csf installation]]></category>
		<category><![CDATA[csf in vps]]></category>
		<category><![CDATA[iptables modules]]></category>
		<category><![CDATA[virtuzzo]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=186</guid>
		<description><![CDATA[CSF is a powerful Firewall for Linux and cPanel servers are here are the steps to get it working with Virtuozzo VPS
Installation
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
After the installation you will need to customize CSF to run on VPS:
edit /etc/sysconfig/iptables and add
-A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
-A FORWARD -j [...]]]></description>
			<content:encoded><![CDATA[<p>CSF is a powerful Firewall for Linux and cPanel servers are here are the steps to get it working with Virtuozzo VPS</p>
<p><strong>Installation</strong></p>
<pre><code>rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh</code></pre>
<p><strong>After the installation you will need to customize CSF to run on VPS:</strong></p>
<p>edit /etc/sysconfig/iptables and add</p>
<pre><code>-A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
-A FORWARD -j ACCEPT -p all -s 0/0 -o venet0
-A INPUT -i venet0 -j ACCEPT
-A OUTPUT -o venet0 -j ACCEPT</code></pre>
<p>create file /etc/csf/csfpre.sh and enter all the extra rules directly into it prefixed with &#8220;iptables&#8221; so the contents of that file should look something like:</p>
<pre><code>iptables -A INPUT -i venet0 -j ACCEPT
iptables -A OUTPUT -o venet0 -j ACCEPT
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -o venet0</code></pre>
<p>edit /etc/csf/csf.conf file and add<br />
and search for</p>
<pre><code>ETH_DEVICE = ""

change to

ETH_DEVICE = "venet+"</code></pre>
<p>Restart</p>
<pre><code>/usr/sbin/csf -r</code></pre>
<p><strong>LOCKOUT ISSUES FOR CSF WHEN INSTALLED IN VPS. or  Cannot enter into server after CSF installation on VPS</strong></p>
<p>If the required IP table modules are not properly loaded to the container node, you may lockout yourself after the installation. If you have access to the main Hardware node, you can perform the following to get it up or ask your VPS provider to perform this on the Hardware (main) node.</p>
<p>Before enabling iptables on VPS, it needs to make sure that the iptables modules are enabled on the Hardware Node. In order to enable iptables modules on Hardware Node, edit /etc/sysconfig/iptables-config file on a Virtuozzo hardware node and look for the following parameter value: IPTABLES_MODULES=.  Edit it as the following.</p>
<pre><code>IPTABLES_MODULES=”ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp”</code></pre>
<p>Also edit /etc/sysconfig/vz file on a hardware node and look for the following parameter value: IPTABLES= , change it to the following.</p>
<pre><code>IPTABLES=”ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp” </code></pre>
<p>Now your Hardware node is fine. You need to enable the iptable modules to the VPS nodes.<br />
(CID &#8212; container ID. You can find the value for each node by using the command vzlist -a)</p>
<pre><code>vzctl stop CID

vzctl set CID --iptables ipt_REJECT --iptables ipt_tos --iptables ipt_TOS --iptables ipt_LOG --iptables ip_conntrack --iptables ipt_limit --iptables ipt_multiport --iptables iptable_filter --iptables iptable_mangle --iptables ipt_TCPMSS --iptables ipt_tcpmss --iptables ipt_ttl --iptables ipt_length  --iptables ipt_state --iptables iptable_nat --iptables ip_nat_ftp --save

vzctl set CID --numiptent 2000 --save

vzctl start CID</code></pre>
<p>Now try entering into your node and restart CSF. It should start working fine.</p>
<p><strong>Descriptions and Functions</strong></p>
<p>======================</p>
<p><strong>csf+lfd  works on all Linux servers on the Operating Systems listed above, with or without cPanel</strong></p>
<p>This suite of scripts provides:</p>
<ul>
<li>Straight-forward SPI iptables firewall script</li>
<li>Daemon process that checks for login authentication failures for:
<ul>
<li>Courier imap, Dovecot, uw-imap, Kerio</li>
<li>openSSH</li>
<li>cPanel, WHM, Webmail (cPanel servers only)</li>
<li>Pure-pftd, vsftpd, Proftpd</li>
<li>Password protected web pages (htpasswd)</li>
<li>Mod_security failures (v1 and v2)</li>
<li>Suhosin failures</li>
<li>Exim SMTP AUTH</li>
<li>Custom login failures with separate log file and regular expression matching</li>
</ul>
</li>
<li>POP3/IMAP login tracking to enforce logins per hour</li>
<li>SSH login notification</li>
<li>SU login notification</li>
<li>Excessive connection blocking</li>
<li>WHM  configuration interface  (cPanel servers only) or through Webmin</li>
<li>WHM iptables report log  (cPanel servers only)</li>
<li>Easy upgrade between versions from within WHM  (cPanel servers only) or through Webmin</li>
<li>Easy upgrade between versions from shell</li>
<li>A  standard Webmin Module to configure csf is included in the distribution ready to install into Webmin &#8211; csfwebmin.tgz</li>
<li>Pre-configured to work on a cPanel server with all the standard cPanel ports open (cPanel servers only)</li>
<li>Auto-configures the SSH port if it&#8217;s non-standard on installation</li>
<li>Block traffic on unused server IP addresses &#8211; helps reduce the risk to your server</li>
<li>Alert when end-user scripts sending excessive emails per hour &#8211; for identifying spamming scripts</li>
<li>Suspicious process reporting &#8211; reports potential exploits running on the server</li>
<li>Excessive  user processes reporting</li>
<li>Excessive  user process usage reporting and optional termination</li>
<li>Suspicious file reporting &#8211; reports potential exploit files in /tmp and similar directories</li>
<li>Directory and file watching &#8211; reports if a watched directory or a file changes</li>
<li>Block traffic on the <a href="http://www.dshield.org/block_list_info.php" target="_blank">DShield Block List</a> and the <a href="http://www.spamhaus.org/drop/index.lasso" target="_blank">Spamhaus DROP List</a></li>
<li>BOGON packet protection</li>
<li>Pre-configured settings for Low, Medium or High firewall security (cPanel servers only)</li>
<li>Works with multiple ethernet devices</li>
<li>Server Security Check &#8211; Performs a basic security and settings check on the server (cPanel servers only)</li>
<li>Allow Dynamic	DNS IP addresses &#8211; always allow  your IP address even if it changes whenever you connect to the internet</li>
<li>Alert sent if server load average remains high for a specified length of time</li>
<li>mod_security log reporting (if installed)</li>
<li>Email relay tracking &#8211; tracks all email sent through the server  and issues alerts for excessive usage (cPanel servers only)</li>
<li>IDS (Intrusion Detection System) &#8211; the last line of detection alerts you to changes to system and application binaries</li>
<li>SYN Flood protection</li>
<li>Ping of death protection</li>
<li>Port Scan tracking and blocking</li>
<li>Permanent <em>and</em> Temporary (with TTL) IP blocking</li>
<li>Exploit checks</li>
<li>Account modification tracking &#8211; sends alerts if an account entry is modified, e.g. if the password is changed or the login shell</li>
<li>Shared syslog aware</li>
<li><span class="style1">New in v4: </span> Messenger Service &#8211; Allows you to redirect connection requests from blocked IP addresses to preconfigured text and html pages to inform the visitor that they have been blocked in the firewall. This can be particularly useful for those with a large user base and help process support requests more efficiently</li>
<li><span class="style1">New in v4: </span> Country Code blocking &#8211; Allows you to deny or allow access by country &#8211; <a href="http://www.ipdeny.com/" target="_blank">Powered by IPDENY.COM IP database</a></li>
<li><span class="style1">New in v4: </span> Port Flooding Detection &#8211; Per IP, per Port connection flooding detection and mitigation to help block DOS attacks</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2010/03/14/how-to-install-csf-firewall-on-virtuozzo-cannot-enter-into-server-after-csf-installation-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/sbin/hotplug: no runnable /etc/hotplug/aaaa.agent is installed in /var/log/messages</title>
		<link>http://presoon.com/blog/2010/02/21/sbinhotplug-no-runnable-etchotplugaaaa-agent-is-installed-in-varlogmessages/</link>
		<comments>http://presoon.com/blog/2010/02/21/sbinhotplug-no-runnable-etchotplugaaaa-agent-is-installed-in-varlogmessages/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 06:02:57 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[avahi]]></category>
		<category><![CDATA[hotplug]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[kernel error]]></category>
		<category><![CDATA[plug and play]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=166</guid>
		<description><![CDATA[Hi guys,
You might have been facing the error getting logged in /var/log/messages. Deeper research in Google gave the result that it is the issue with the loaded Kernel.
Before going for and upgrade, just confirm the following.
Check whether the following files are present.
/lib/modules/*/modules.*map      depmod output
/proc/sys/kernel/hotplug       [...]]]></description>
			<content:encoded><![CDATA[<p>Hi guys,</p>
<p>You might have been facing the error getting logged in /var/log/messages. Deeper research in Google gave the result that it is the issue with the loaded Kernel.</p>
<p>Before going for and upgrade, just confirm the following.</p>
<p>Check whether the following files are present.</p>
<pre><code>/lib/modules/*/modules.*map      depmod output
/proc/sys/kernel/hotplug         specifies hotplug program path
/sbin/hotplug                    hotplug program (default path name)
/etc/hotplug/*                   hotplug files
/etc/hotplug/NAME.agent          hotplug subsystem-specific agents
/etc/hotplug/NAME*               subsystem-specific files, for agents
/etc/hotplug/usb/                   depmod data for user-mode drivers</code></pre>
<pre><code>chmod 755 /etc/hotplug/*.agent
check tail -f /var/log/messages</code>
</pre>
<p><strong>Now try the following before kernel upgrade.</strong></p>
<p>The issue should have been fixed by now. If the message is still coming up in /var/log/messages, you will need to go for Kernel upgrade.</p>
<p>Thank you guys..</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2010/02/21/sbinhotplug-no-runnable-etchotplugaaaa-agent-is-installed-in-varlogmessages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change Mysql database directory to another partition in cPanel. /var patition full</title>
		<link>http://presoon.com/blog/2010/01/07/how-to-change-mysql-database-directory-to-another-partition-in-cpanel-var-patition-full/</link>
		<comments>http://presoon.com/blog/2010/01/07/how-to-change-mysql-database-directory-to-another-partition-in-cpanel-var-patition-full/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 07:39:59 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[/var partition full]]></category>
		<category><![CDATA[/var/lib/mysql]]></category>
		<category><![CDATA[change mysql data directory in mysql]]></category>
		<category><![CDATA[move /var/lib/mysql to another partition]]></category>
		<category><![CDATA[separate mysql data directory]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=154</guid>
		<description><![CDATA[Hi guys,
you might have faced the issue of /var partition gettting full regularly due to database directory. If you have a larger partition with free space, then it is possible to move the database directory to the larger partition.
Here are the steps
Switch off the database server while we are moving the databases.

/etc/rc.d/init.d/mysql stop

I am considering [...]]]></description>
			<content:encoded><![CDATA[<p>Hi guys,</p>
<p>you might have faced the issue of /var partition gettting full regularly due to database directory. If you have a larger partition with free space, then it is possible to move the database directory to the larger partition.</p>
<p>Here are the steps</p>
<p>Switch off the database server while we are moving the databases.</p>
<pre>
<code>/etc/rc.d/init.d/mysql stop</code>
</pre>
<p>I am considering that I have enough space in /home partition. Here goes my new database data directory as /home/mysql</p>
<p>Now it is better to copy the database first, rather than move.</p>
<pre>
<code>cp -pr /var/lib/mysql /home
mv /var/lib/mysql /var/lib/mysql-bk</code>
</pre>
<p>We are copying the database to the new location since it is better to revert back the settings with minimum downtime, if anything goes wrong.</p>
<p>move to /tmp</p>
<pre>
<code>cd /tmp
unlink mysql.sock
ln -s /home/mysql/mysql.sock /tmp/mysql.sock</code>
</pre>
<p>Take a backup of /etc/my.cnf</p>
<p>Now edit /etc/my.cnf</p>
<pre>
<code>vi /etc/my.cnf

add the line
datadir=/home/mysql</code>
</pre>
<p>If the socket file is specified, comment it out.</p>
<p>Now move to /var/lib/mysql and create a symblink</p>
<pre>
<code>ln -s /home/mysql /var/lib/mysql</code>
</pre>
<p>(Please note that you don&#8217;t specify the socket file location in my.cnf since it causes issues with phpMyadmin)</p>
<p>For, cPanel server, edit the phpMyadmin configuration<br />
take a backup of &#8220;/usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php&#8221;</p>
<pre>
<code>edit this file /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php</code>
</pre>
<p>add the following lines. If they already exist, edit as below.<br />
(the connect_type usually exist at &#8220;tcp&#8221; change it to &#8220;socket&#8221;)</p>
<pre>
<code>$cfg['Servers'][$i]['socket'] = ‘/home/mysql/mysql.sock’;
$cfg['Servers'][$i]['connect_type'] = ’socket’;</code>
</pre>
<p>Now start the database server.</p>
<pre>
<code>/etc/rc.d/ini.d/mysql start</code>
</pre>
<p>If it starts fine, you are done. Check the database connections of your site.<br />
You can now remove the directory /var/lib/mysql-bk</p>
<p>Suggestions, questions are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2010/01/07/how-to-change-mysql-database-directory-to-another-partition-in-cpanel-var-patition-full/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Fixed] configure Ubuntu BSNL EVDO connection. Ubuntu 9.04 and 9.10 wvdial missing from Ubuntu.</title>
		<link>http://presoon.com/blog/2009/12/21/bsnl-evdo-connection-for-ubuntu-9-04-wvdial-missing-for-ubuntu/</link>
		<comments>http://presoon.com/blog/2009/12/21/bsnl-evdo-connection-for-ubuntu-9-04-wvdial-missing-for-ubuntu/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 07:22:05 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[BSNL EVDO linux]]></category>
		<category><![CDATA[Rconnect wvdial]]></category>
		<category><![CDATA[Reliance wireless internet wvdial]]></category>
		<category><![CDATA[Tata Indicom Linux Ubuntu]]></category>
		<category><![CDATA[wvdial conf missing from Ubuntu 9.04]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=147</guid>
		<description><![CDATA[Hi guys,
I am not sure why did the Ubuntu guys&#8230;left out the wvdial package in the latest distributions. In fact, most of the 3G wireless internet connection uses the PPP connection using wvdial. To install wvdial package, you need install some dependencies also.
After some research, I have found out the exact packages and the order [...]]]></description>
			<content:encoded><![CDATA[<p>Hi guys,</p>
<p>I am not sure why did the Ubuntu guys&#8230;left out the wvdial package in the latest distributions. In fact, most of the 3G wireless internet connection uses the PPP connection using wvdial. To install wvdial package, you need install some dependencies also.<br />
After some research, I have found out the exact packages and the order to install them. Here are the steps to install wvdial for Ubuntu. You need to download the packages to a thumbdrive so as to copy it to the Ubuntu machine.</p>
<p>Download the wvdial + its dependencies from the following link<a href="http://presoon.com/downloads/wvdial-ubuntu-wholepkg.tar.gz">Download</a>.</p>
<p>Copy this package to your thumb drive from the machine which has an internet connection and connect it to the Ubuntu machine.</p>
<p>Assuming that you have copied the package from your thumb drive to the location /usr/local/src of Ubuntu machine. perform the following steps in exact  order given below.</p>
<pre><code>sudo su    (type in the admin password)

cd /usr/local/src/
tar -zxvf wvdial-ubuntu-wholepkg.tar.gz
cd wvdial-ubuntu-wholepkg

dpkg -i libxplc0.3.13_0.3.13-1build1_i386.deb
dpkg -i libwvstreams4.4-base_4.4.1-0.2ubuntu2_i386.deb
dpkg -i libwvstreams4.4-extras_4.4.1-0.2ubuntu2_i386.deb
dpkg -i libuniconf4.4_4.4.1-0.2ubuntu2_i386.deb
dpkg -i wvdial_1.60.1+nmu2_i386.deb

Success!  You can run "wvdial" to connect to the internet.
(You can also change your configuration by editing /etc/wvdial.conf)
Processing triggers for man-db ...</code></pre>
<p>For BSNL EVDO users, edit the /etc/wvdial.conf file to add your username password and phone number(also uncomment the line by removing ; from the start of the directive). Also add the following line.</p>
<pre><code>Stupid Mode = 1</code></pre>
<p>to wvdial.conf file.</p>
<p>Use the command &#8220;wvdial&#8221; to connect to the internet. If the modem is not installed or not detected, you need to fix it first.</p>
<p>Please update me guys, if you need any further help.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2009/12/21/bsnl-evdo-connection-for-ubuntu-9-04-wvdial-missing-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Starting sshd:PRNG is not seeded</title>
		<link>http://presoon.com/blog/2009/03/23/starting-sshdprng-is-not-seeded/</link>
		<comments>http://presoon.com/blog/2009/03/23/starting-sshdprng-is-not-seeded/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 23:21:53 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PRNG]]></category>
		<category><![CDATA[urandom]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=83</guid>
		<description><![CDATA[You might have received this error when restarting SSHD.
#/etc/rc.d/init.d/sshd restart
Stopping sshd:                                             [...]]]></description>
			<content:encoded><![CDATA[<p>You might have received this error when restarting SSHD.</p>
<p>#/etc/rc.d/init.d/sshd restart</p>
<p>Stopping sshd:                                             [  OK  ]</p>
<p>Starting sshd:PRNG is not seeded</p>
<p>[FAILED]</p>
<p>Here is the fix.</p>
<p>cd /dev/</p>
<p>./MAKEDEV generic</p>
<p>Now try starting SSH. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2009/03/23/starting-sshdprng-is-not-seeded/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Error : tty device not owned by group &#8216;tty&#8217;</title>
		<link>http://presoon.com/blog/2009/03/20/error-tty-device-not-owned-by-group-tty/</link>
		<comments>http://presoon.com/blog/2009/03/20/error-tty-device-not-owned-by-group-tty/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 20:37:53 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[/dev]]></category>
		<category><![CDATA[tty]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=81</guid>
		<description><![CDATA[You might receive this error when your try to restart services in CPanel.
This is because the group of the tty devices are not &#8220;tty&#8221;
Change it to tty.
chgrp tty /dev/ttyp* /dev/ptyp* /dev/vcs* /dev/ptmx /dev/pts/0
as simple as that.:)
]]></description>
			<content:encoded><![CDATA[<p>You might receive this error when your try to restart services in CPanel.</p>
<p>This is because the group of the tty devices are not &#8220;tty&#8221;</p>
<p>Change it to tty.</p>
<p><em>chgrp tty /dev/ttyp* /dev/ptyp* /dev/vcs* /dev/ptmx /dev/pts/0</em></p>
<p>as simple as that.:)</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2009/03/20/error-tty-device-not-owned-by-group-tty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable ping&#8230; in Linux servers</title>
		<link>http://presoon.com/blog/2008/12/14/how-to-diable-ping-in-linux-servers/</link>
		<comments>http://presoon.com/blog/2008/12/14/how-to-diable-ping-in-linux-servers/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 07:14:26 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[ICMP]]></category>
		<category><![CDATA[ping]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=72</guid>
		<description><![CDATA[echo 1 &#62; /proc/sys/net/ipv4/icmp_echo_ignore_all
Or add the line
net.ipv4.conf.icmp_echo_ignore_all = 1
in /etc/sysclt.conf
To re-enable ping
echo 0 &#62; /proc/sys/net/ipv4/icmp_echo_ignore_all
Or add the line
net.ipv4.conf.icmp_echo_ignore_all = 0
in /etc/sysclt.conf
Alternatively, we can use IPtables to disable ping
# iptables -A INPUT -p icmp -j DROP
]]></description>
			<content:encoded><![CDATA[<p>echo 1 &gt; /proc/sys/net/ipv4/icmp_echo_ignore_all</p>
<p>Or add the line</p>
<p>net.ipv4.conf.icmp_echo_ignore_all = 1<br />
in /etc/sysclt.conf</p>
<p>To re-enable ping<br />
echo 0 &gt; /proc/sys/net/ipv4/icmp_echo_ignore_all</p>
<p>Or add the line</p>
<p>net.ipv4.conf.icmp_echo_ignore_all = 0<br />
in /etc/sysclt.conf</p>
<p>Alternatively, we can use IPtables to disable ping<br />
# iptables -A INPUT -p icmp -j DROP</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/12/14/how-to-diable-ping-in-linux-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/usr/java/jdkX.X.X_Xbin/java: not found + Install Java on Linux servers</title>
		<link>http://presoon.com/blog/2008/10/19/usrjavajdkxxx_xbinjava-not-found-install-java-on-linux-servers/</link>
		<comments>http://presoon.com/blog/2008/10/19/usrjavajdkxxx_xbinjava-not-found-install-java-on-linux-servers/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 14:50:06 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java binary path]]></category>
		<category><![CDATA[JSDK]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=70</guid>
		<description><![CDATA[In some cases, the 3rd parts scripts in server requires java to be installed. It may not work properly if the binary of java installed in the server. You need to install JavaSDK
So we present here the installation of Java in Linux server.
Its as easy as you run upcp in a Cpanel server.
Download the installation [...]]]></description>
			<content:encoded><![CDATA[<p>In some cases, the 3rd parts scripts in server requires java to be installed. It may not work properly if the binary of java installed in the server. You need to install JavaSDK</p>
<p>So we present here the installation of Java in Linux server.</p>
<p>Its as easy as you run upcp in a Cpanel server.</p>
<p>Download the installation binary from Sun&#8217;s Java site</p>
<p>J2SE for Linux <span class="external free">http://java.sun.com/j2se/1.4.2/download.html.( Download J2SE SDK)</span></p>
<p>You may need to register at the site and then they will send you the download link. Download the non-rpm binary</p>
<p><em>cd /usr/local/src/ </em></p>
<p><em>wget thebinary</em></p>
<p><em>mv j2sdk-1_4_2_18-linux-i586.bin /usr/local/</em></p>
<p><em>cd /usr/local/</em></p>
<p><em>chmod 755 j2sdk-1_4_2_18-linux-i586.bin</em></p>
<p><em>./j2sdk-1_4_2_18-linux-i586.bin</em></p>
<p>Now setup the environment variables.</p>
<p><em>JAVA_HOME=/usr/local/j2sdk1.4.2_18</em></p>
<p><em>export JAVA_HOME</em></p>
<p>Also, you need to add these in the file /etc/profile.</p>
<p><em>JAVA_HOME=/usr/local/j2sdk1.4.2_18</em></p>
<p><em>export JAVA_HOME</em></p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/10/19/usrjavajdkxxx_xbinjava-not-found-install-java-on-linux-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install BFD</title>
		<link>http://presoon.com/blog/2008/10/11/how-to-install-bfd/</link>
		<comments>http://presoon.com/blog/2008/10/11/how-to-install-bfd/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 04:06:44 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[APF]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Attacks]]></category>
		<category><![CDATA[BFD]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=68</guid>
		<description><![CDATA[What is BFD (Brute Force Detection)?

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 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is BFD (Brute Force Detection)?</strong></p>
<p><strong><br />
</strong>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. BFD is available at: <a href="http://www.rfxnetworks.com/bfd.php" target="_blank">http://www.rfxnetworks.com/bfd.php</a></p>
<p>This guide will show you how to install and configure BFD to protect your system from brute force hack attempts.</p>
<p><strong>Requirements:</strong><br />
- You MUST have APF Firewall Installed before installing BFD &#8211; it works with APF and requires some APF files to operate.<br />
- Root SSH access to your server</p>
<p><strong></strong><strong><br />
</strong>Login to your server through SSH and su to the root user.</p>
<p><strong>1. </strong><em>cd /usr/local/src/</em>.</p>
<p><!-- COPYRIGHT MIDDLE ART --></p>
<div class="whitetext">Article provided by WebHostGear.com</div>
<div id="beacon_53" style="position: absolute; left: 0px; top: 0px; visibility: hidden;">&lt;a href=&#8217;http://a.wavepointmedia.net/adclick.php?n=a263378f&#8217; target=&#8217;_blank&#8217;&gt;&lt;img src=&#8217;http://a.wavepointmedia.net/adview.php?what=zone:14&amp;amp;n=a263378f&#8217; border=&#8217;0&#8242; alt=&#8221;&gt;&lt;/a&gt;</div>
<p><noscript></noscript><strong>2.</strong> <em>wget </em><a href="http://www.rfxnetworks.com/downloads/bfd-current.tar.gz"><em>http://www.rfxnetworks.com/downloads/bfd-current.tar.gz</em></a></p>
<p><strong>3. </strong><span style="color: #003366;"><em>tar -xvzf bfd-current.tar.gz</em></p>
<p><strong>4.</strong> <em>cd bfd-*</p>
<p></em><strong>5. </strong>Run the install file: <em>./install.sh<br />
</em>You will receive a message saying it has been installed</p>
<p>.: BFD installed<br />
Install path:    /usr/local/bfd<br />
Config path:     /usr/local/bfd/conf.bfd<br />
Executable path: /usr/local/sbin/bfd</p>
<p><strong>6.</strong> Edit the configuration file: <em>vi /usr/local/bfd/conf.bfd</em></p>
<p><strong>7. </strong>Enable brute force hack attempt alerts:</p>
<p>Find: <em>EMAIL_USR=&#8221;root&#8221;</em> CHANGE TO: <em>EMAIL_USR=&#8221;your@yourdomain.com&#8221; </em></p>
<p>Save the changes<em></em></p>
<p><strong>8. </strong>Prevent locking yourself out!<br />
<em>vi /usr/local/bfd/ignore.hosts</em> and add your own trusted IPs</span><span style="color: #003366;"><em><br />
</em>Save the changes<em></em></p>
<p><strong>9.</strong> Run the program!<br />
<em>/usr/local/sbin/bfd -s</em></p>
<p><strong>10.</strong> Customize your applicatoins brute force configuration<br />
Check out the <strong>rules</strong> directory in your <em>/usr/local/bfd</em></p>
<p>Here you&#8217;ll find all kinds of pre-made rules for popular services such as Apache, and ProFTPD w00t!<br />
If you have any clue about shell scripting you can customize them or create new rules for enhanced brute force detection and prevent attacks.</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/10/11/how-to-install-bfd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: Error 40</title>
		<link>http://presoon.com/blog/2008/05/14/top-error-while-loading-shared-libraries-libncursesso4-cannot-open-shared-object-file-error-40/</link>
		<comments>http://presoon.com/blog/2008/05/14/top-error-while-loading-shared-libraries-libncursesso4-cannot-open-shared-object-file-error-40/#comments</comments>
		<pubDate>Tue, 13 May 2008 22:14:43 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[top]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=53</guid>
		<description><![CDATA[This error is received when top command is executed.
top
top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: Error 40
Fix.
locate libncurses.so.5
lib/libncurses.so.5
/usr/lib/libncurses.so.5
/usr/lib/libncurses.so.5.5
create symblinks
ln -s /lib/libncurses.so.5 /lib/libncurses.so.4
ln -s /usr/lib/libncurses.so.5 /usr/lib/libncurses.so.4
the location may be different. Just create symblink from libncurses.so.4 to libncurses.so.5
load the configuration
ldconfig
]]></description>
			<content:encoded><![CDATA[<p>This error is received when top command is executed.</p>
<p>top<br />
top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: Error 40</p>
<p>Fix.</p>
<p><em>locate libncurses.so.5</em></p>
<p>lib/libncurses.so.5<br />
/usr/lib/libncurses.so.5<br />
/usr/lib/libncurses.so.5.5</p>
<p>create symblinks<br />
<em>ln -s /lib/libncurses.so.5 /lib/libncurses.so.4</em><br />
<em>ln -s /usr/lib/libncurses.so.5 /usr/lib/libncurses.so.4</em></p>
<p>the location may be different. Just create symblink from libncurses.so.4 to libncurses.so.5</p>
<p>load the configuration<br />
<em>ldconfig</em></p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/05/14/top-error-while-loading-shared-libraries-libncursesso4-cannot-open-shared-object-file-error-40/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
