<?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>Diadem Tech Weblogs &#187; Linux</title>
	<atom:link href="http://www.diademblogs.com/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.diademblogs.com</link>
	<description>Tutorials, tips and howtos for web hosting and open source web development</description>
	<lastBuildDate>Mon, 17 Oct 2011 12:28:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Auto shutdown script for Xen VMs on XenServer</title>
		<link>http://www.diademblogs.com/linux/auto-shutdown-script-for-xen-vms-on-xenserver</link>
		<comments>http://www.diademblogs.com/linux/auto-shutdown-script-for-xen-vms-on-xenserver#comments</comments>
		<pubDate>Mon, 05 Sep 2011 07:07:16 +0000</pubDate>
		<dc:creator>hriday</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[autoshutdown]]></category>
		<category><![CDATA[xen server]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=1287</guid>
		<description><![CDATA[In case of a scheduled maintenance which requires your Xen VMs to be shutdown on your Xen server when you are not available, the following script should can be put to use: Create a script as allvmshutdown.sh with 755 permissions and add the list of VMs as in the example script: #!/bin/bash xe vm-shutdown vm=VM1 [...]]]></description>
			<content:encoded><![CDATA[<p>In  case of a scheduled maintenance which requires your Xen VMs to be shutdown  on your Xen server when you are not available, the following script should can be put to  use:</p>
<p>Create a script as allvmshutdown.sh with 755 permissions and add the list of VMs as in the example script:</p>
<p><em>#!/bin/bash<br />
xe vm-shutdown vm=VM1<br />
xe vm-shutdown vm=</em><em>VM2</em><br />
<em> xe vm-shutdown vm=</em><em>VM3</em><br />
<em> xe vm-shutdown vm=</em><em>VM4</em><br />
<em> xe vm-shutdown vm=</em><em>VM5</em><br />
<em> xe vm-shutdown vm=</em><em>VM6</em><br />
<em> xe vm-shutdown vm=</em><em>VM7</em><br />
<em> xe vm-shutdown vm=</em><em>VM8</em><br />
<em> xe vm-shutdown vm=</em><em>VM9</em><br />
<em> xe vm-shutdown vm=</em><em>VM10</em></p>
<p><em></em>To get a list of VMs on the server, run the command <strong>#xe vm-list</strong> from the command line, which will list the VMs hosted on your Xen host.</p>
<p>Now you just need to add a cron entry to schedule this job.   For example, to run script at 02:00 am on Sunday:</p>
<p><strong>crontab -e<br />
*   02 *    *    0           /scripts/allvmshutdown.sh</strong></p>
<p>Note: Do ensure that the script is commented or removed from the crontab, after the maintenance has been completed to prevent this script from recurring.</p>
Note: There is a rating embedded within this post, please visit this post to rate it.
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/auto-shutdown-script-for-xen-vms-on-xenserver/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating ICICI Payment Gateway in Linux with Plesk or Cpanel</title>
		<link>http://www.diademblogs.com/linux/icici-payment-gateway-integration</link>
		<comments>http://www.diademblogs.com/linux/icici-payment-gateway-integration#comments</comments>
		<pubDate>Thu, 05 May 2011 04:52:16 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[ICICI PG in cPanel]]></category>
		<category><![CDATA[ICICI PG in Linux]]></category>
		<category><![CDATA[ICICI PG in Plesk]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=1048</guid>
		<description><![CDATA[After multiple attempts we have finally being successful in integrating the ICICI Bank online payment gateway in our Linux severs with Plesk and cPanel. Below are the steps that may help you in configuring the same on your server. Configuration for PLesk 1. Download the SFA files from the ICICI merchant area and extract on [...]]]></description>
			<content:encoded><![CDATA[<p>After multiple attempts we have finally being successful in integrating the ICICI Bank online payment gateway in our Linux severs with Plesk and cPanel. Below are the steps that may help you in configuring the same on your server.</p>
<h3>Configuration for PLesk</h3>
<div id="_mcePaste"><strong>1.</strong> Download the SFA files from the ICICI merchant area and extract on the webserver under ICICI folder.</div>
<div>Extract the sfa.jar file in “SFA_Dependencies” and edit the sfa.properties file with the following entries:</div>
<blockquote>
<div id="_mcePaste">verbose=true</div>
<div id="_mcePaste">Key.Directory=/var/www/key</div>
<div id="_mcePaste">OS.Type=UNIX</div>
<div id="_mcePaste">traceLog=/var/log/tomcat5/icici.log</div>
</blockquote>
<div><strong>2. </strong>Copy the ICICI JAR files from “SFA_Dependencies” folder to the following folders</div>
<div>
<ul>
<li>JAR Files to copy: cryptix32.jar, jcert.jar, jnet.jar, jsse.jar, servlet.jar, sfa.jar</li>
<li>Copied jar files to  /usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/ from /var/www/vhosts/domainname.com/httpdocs/ICICI/SFA_Dependencies [run this stape after installation of JavaBridge]</li>
<li>Reset permissions to these files to tomcat:tomcat under the lib folder</li>
<li>Also copy the jar files to /usr/share/tomcat5/common/lib folder</li>
<li>Change the owned and group of copied files as per the existing folder owner (Optional and ensure having 777 permissions on the above folder).</li>
</ul>
</div>
<div><strong>3.</strong> Download JavaBridge from below URL</div>
<div id="_mcePaste">
<ul>
<li># wget http://sourceforge.net/projects/php-java-bridge/files/Binary%20package/php-java-bridge_6.2.1/php-java-bridge_6.2.1_documentation.zip/download</li>
</ul>
</div>
<div id="_mcePaste">Install JavaBridge with the following steps:</div>
<div id="_mcePaste">
<ul>
<li>Unzip the php-java-bridge_6.1.2.1_documentation.zip</li>
<li># java -classpath JavaBridge.war TestInstallation</li>
<li># cp JavaBridge.war /var/lib/tomcat5/webapps/.</li>
<li># service tomcat5 restart</li>
<li>Test the installation at http://plesk02.diadem-tech.com:8080/JavaBridge</li>
</ul>
</div>
<div id="_mcePaste">Reference URLs:</div>
<div id="_mcePaste">
<ul>
<li>http://php-java-bridge.sourceforge.net/pjb/tomcat6.php</li>
<li>http://php-java-bridge.sourceforge.net/pjb/installation.php</li>
</ul>
</div>
<div><strong>4. </strong>Edit the file /var/lib/tomcat5/webapps/JavaBridge/WEB-INF/cgi/php.ini with below lines.</div>
<blockquote>
<div>;; -*- mode: Scheme; tab-width:4 -*-</div>
<div id="_mcePaste">;; A simple php.ini</div>
<div id="_mcePaste">;; extension_dir is this &#8220;cgi&#8221; directory</div>
<div id="_mcePaste">extension_dir=.</div>
<div id="_mcePaste">;; include php libraries from these directories</div>
<div id="_mcePaste">include_path=.:/usr/share/pear</div>
<div id="_mcePaste">java.classpath = /usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/cryptix32.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jcert.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jnet.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jsse.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/servlet.jar;/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/sfa.jar;</div>
</blockquote>
<div><strong>5. </strong>Edit /root/.bash_profile to set CLASSPATH as env variable and add the below lines.</div>
<blockquote>
<div id="_mcePaste">include_path=.:/usr/share/pear</div>
<div>CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/cryptix32.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jnet.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/servlet.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/sfa.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jcert.jar;</div>
<div id="_mcePaste">CLASSPATH=$CLASSPATH:/usr/share/tomcat5/webapps/JavaBridge/WEB-INF/lib/jsse.jar;</div>
<div id="_mcePaste">export include_path</div>
<div id="_mcePaste">export CLASSPATH</div>
</blockquote>
<div>Run the following commands from shell:</div>
<div id="_mcePaste">
<ul>
<li>#. .bash_profile to set the environment variable.</li>
<li># env to check the environment variables.</li>
<li># service tomcat5 restart – Tomcat restart</li>
</ul>
</div>
<div><strong>6.</strong> Configure Tomcat to use SUN Java</div>
<div id="_mcePaste">
<ul>
<li># vim /etc/sysconfig/tomcat5</li>
</ul>
</div>
<div id="_mcePaste" style="padding-left: 30px;">Comment the existing JAVA_HOME and add the below line</div>
<div id="_mcePaste" style="padding-left: 30px;">JAVA_HOME=&#8221;/usr/java/jdk1.6.0_20/&#8221; (The JDK version will change as per the installed version)</div>
<div style="padding-left: 30px;">Restart Tomcat</div>
<div id="_mcePaste">
<ul>
<li># touch /var/log/tomcat5/icici.log</li>
<li># chown tomcat.tomcat /var/log/tomcat5/icici.log</li>
</ul>
</div>
<div id="_mcePaste"><strong>7. </strong>Stop Apache and Tomcat and then copy the following key files to the /var/www/key directory:</div>
<div id="_mcePaste">
<ul>
<li>0000XXXX.key</li>
<li>intermediate.cer</li>
<li> payseal.icicibank-chain-bundle.cer</li>
</ul>
</div>
<div id="_mcePaste" style="padding-left: 30px;">The .cer files can be found under the cert_bundle folder provided by ICICI. The key file also needs to be downloaded from the merchant admin site or provided by ICICI.</div>
<div id="_mcePaste">
<ul>
<li>Start Apache and Tomcat.</li>
</ul>
</div>
<div style="padding-left: 30px;">Run the following keyrestore command from the /var/www/key folder:</div>
<blockquote>
<div id="_mcePaste"># keytool -import -alias pgIntermediateCA -file ./intermediate.cer -keystore /usr/java/jdk1.6.0_12/jre/lib/security/cacerts -storepass changeit</div>
<div id="_mcePaste">This might give an error like keytool error: gnu.javax.crypto.keyring.MalformedKeyringException: incorrect magic which can be ignored.</div>
</blockquote>
<div><strong>8. </strong>Update the TestSSL.php page and change the response URL and use the updated file:</div>
<blockquote>
<div id="_mcePaste">$oMerchant-&gt;setMerchantDetails(&#8220;0000XXXX&#8221;,&#8221;0000XXXX&#8221;,&#8221;0000XXXX&#8221;,&#8221;193.545.34.33&#8243;,rand().&#8221;",&#8221;Ord123&#8243;,&#8221;http://10.10.10.147:8756/SFAResponse.php&#8221;,&#8221;POST&#8221;,&#8221;INR&#8221;,&#8221;INV123&#8243;,&#8221;req.Preauthorization&#8221;,&#8221;100&#8243;,&#8221;",&#8221;Ext1&#8243;,&#8221;true&#8221;,&#8221;Ext3&#8243;,&#8221;Ext4&#8243;,&#8221;Ext5&#8243;);</div>
<div id="_mcePaste">Also in SFAResponse.php and “./Sfa/PostLibPHP.php” file on line 2 would also change from</div>
<div id="_mcePaste">&#8216; require_once(&#8220;java/Java.php&#8221;);&#8217; to &#8216; require_once(&#8220;java/Java.inc&#8221;);&#8217;</div>
</blockquote>
<div id="_mcePaste">Test the TestSSL and Testjava pages</div>
<div id="_mcePaste">
<ul>
<li>http://domainname.com/ICICI/SFAClient/TestPages/testjava.php</li>
<li>http://domainname.com/ICICI/SFAClient/TestPages/TestSsl.php</li>
</ul>
</div>
<div id="_mcePaste">Hopefully the above links would work and the error output log can be checked at:</div>
<div id="_mcePaste">
<ul>
<li># tail –v –f /var/www/vhosts/pgtest.domainname.com/statistics/logs/error.log</li>
</ul>
<h3>cPanel configuration</h3>
<div>
<div>For cPanel you need to install Tomcat and FastCGI module in PHP to run ICICI PG, below are the steps.</div>
<div><strong>1.</strong> Login WHM with root user</div>
<div><strong>2.</strong> In the Main page  click on Software and then EasyApache (Apache Update)</div>
<div><strong>3. </strong>Go through each step as follows.</div>
<div style="padding-left: 30px;">a)	Click “Start customizing based on profile”</div>
<div style="padding-left: 30px;">b)	Select Apache Version – Click Next to proceed with the current version.</div>
<div style="padding-left: 30px;">c)	Select PHP Major Version – Click Next to proceed with the current version.</div>
<div style="padding-left: 30px;">d)	Select PHP Minor version – Click Next to proceed with the current version.</div>
<div style="padding-left: 30px;">e)	Short option list – Click “Exhaustive Options List” to view full options.</div>
<div style="padding-left: 30px;">Exhaustive Options List – From here you can select the PHP modules you needed</div>
<div style="padding-left: 30px;">Select mod_fcgid (FCGI module for Apache), FCGI and Tomcat (you can also select other PHP module for future requirement e.g. GD, SOAP, curl, Zend, Zlib, Zip bizip, MySQLi )</div>
<div style="padding-left: 30px;">f)	Click “Save &amp; Build” to start apache-php compilation.</div>
<div><strong>4. </strong>Once the compilation over you can verify the installed PHP modules using the following command.</div>
<blockquote>
<div># php –m</div>
</blockquote>
<div>And Tomcat from the URL: <strong>http://server ip:8080</strong></div>
<div><strong>5. </strong>After the installation of Tomcat defines the following important environment variables in /root/.bash_profile</div>
<blockquote>
<div>CATALINA_HOME=/usr/local/jakarta/tomcat</div>
<div>CATALINA_BASE=/usr/local/jakarta/tomcat</div>
<div>JAVA_HOME=/usr/local/jdk/</div>
<div>export CATALINA_HOME CATALINA_BASE JAVA_HOME</div>
</blockquote>
<div>Now run “#. .bash_profile” command from shell to set the environment variable.</div>
<div>All done now start the ICICI Payment Gateway Integration same as Plesk steps. Only the tomcat path is different i.e.<strong> /usr/local/jakarta/tomcat</strong>.</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/icici-payment-gateway-integration/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSF/LFD firewall installation guide for Plesk</title>
		<link>http://www.diademblogs.com/linux/csflfd-installation-for-plesk</link>
		<comments>http://www.diademblogs.com/linux/csflfd-installation-for-plesk#comments</comments>
		<pubDate>Mon, 25 Apr 2011 06:33:33 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[CSF/LFD]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[server security]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=1245</guid>
		<description><![CDATA[Config Server Firewall (csf) and Login Failure Daemon (lfd) is a robust firewall solution having Stateful Packet Inspection (SPI), Login/Intrusion Detection and Security application for Linux servers. Although it is more compatible with CPanel we have been able to use the same for the Plesk hosting control panel also and it is running fine. Please [...]]]></description>
			<content:encoded><![CDATA[<p>Config Server Firewall (csf) and Login Failure Daemon (lfd) is a robust firewall solution having Stateful Packet Inspection (SPI), Login/Intrusion Detection and Security application for Linux servers. Although it is more compatible with CPanel we have been able to use the same for the Plesk hosting control panel also and it is running fine. Please visit the below link for more information.</p>
<p><a href="http://www.configserver.com" target="_blank">http://www.configserver.com</a></p>
<p>I have listed the installation steps for CSF / LFD.Login to your server with ‘root’ user and issue below commands :</p>
<p>Change directory to either /root or /usr/local/src , which ever you normally use for such installations</p>
<blockquote><p># cd /usr/local/src</p></blockquote>
<p>[Remove any old source that might be present]</p>
<p>Download and untar the source for installation</p>
<blockquote><p># wget http://www.configserver.com/free/csf.tgz<br />
# tar -xzf csf.tgz</p></blockquote>
<p>Run installation script</p>
<blockquote><p># cd csf<br />
# sh install.sh</p></blockquote>
<p>Once the installation complete, you can run the below scripts provided by vendor to check if your server/vps has required iptables modules available :</p>
<blockquote><p># perl /etc/csf/csftest.pl</p></blockquote>
<p>CSF provides the script to remove the other popular combination I talked about above i.e. apf/bfd, The below script will remove apf/bfd from your server/vps.</p>
<blockquote><p># sh /etc/csf/remove_apf_bfd.sh</p></blockquote>
<p>Common setting for incoming/outgoing TCP/IP and UDP connection.</p>
<blockquote><p>ETH_DEVICE = &#8220;eth1&#8243;</p>
<p>ETH_DEVICE_SKIP = &#8220;eth0&#8243;</p>
<p># Allow incoming TCP ports<br />
TCP_IN = &#8220;20,21,25,53,80,106,110,111,143,443,465,587,865,873,993,995,8443,8880&#8243;</p>
<p># Allow outgoing TCP ports<br />
TCP_OUT = &#8220;20,21,22,25,80,110,443,43,873,8443&#8243;</p>
<p># Allow incoming UDP ports<br />
UDP_IN = &#8220;53,111,123,230,631,859,862,2109,5353&#8243;</p>
<p># Allow outgoing UDP ports<br />
# To allow outgoing traceroute add 33434:33523 to this list<br />
UDP_OUT = &#8220;20,21,53,113,123,2109&#8243;</p>
<p># Allow incoming PING<br />
ICMP_IN = &#8220;1&#8243;</p>
<p># Set the per IP address incoming ICMP packet rate<br />
# To disable rate limiting set to &#8220;0&#8243;<br />
ICMP_IN_RATE = &#8220;0&#8243;</p>
<p># Allow outgoing PING<br />
ICMP_OUT = &#8220;1&#8243;</p>
<p># Set the per IP address outgoing ICMP packet rate<br />
# To disable rate limiting set to &#8220;0&#8243;<br />
ICMP_OUT_RATE = &#8220;0&#8243;</p>
<p># Enable login failure detection daemon (lfd).<br />
LF_DAEMON = &#8220;1&#8243;</p></blockquote>
<p>For allowing Qmail in CSF alter below setting(s)</p>
<blockquote><p>SMTP_BLOCK = &#8220;1&#8243;<br />
SMTP_ALLOWLOCAL = &#8220;1&#8243;<br />
SMTP_PORTS = &#8220;25,587&#8243;<br />
SMTP_ALLOWUSER = &#8220;qmaild,qmaill,qmailp,qmailq,qmailr,qmails&#8221;<br />
SMTP_ALLOWGROUP = &#8220;qmail,nofiles,mail,mailman&#8221;</p></blockquote>
<p>Set CSF/LFD reporting FROM/TO ID as below [**** Need to set for Plesk]</p>
<blockquote><p>LF_ALERT_TO = &#8220;supportteam@diadem.co.in&#8221;<br />
LF_ALERT_FROM = &#8220;csf_LFD@diadem.co.in&#8221;</p></blockquote>
<p>Allowing third party block list checking</p>
<blockquote><p># Enable IP range blocking using the DShield Block List at<br />
LF_DSHIELD = &#8220;86400&#8243;</p>
<p># Enable IP range blocking using the Spamhaus DROP List at<br />
LF_SPAMHAUS = &#8220;86400&#8243;</p>
<p># Enable IP range blocking using the BOGON List at<br />
LF_BOGON = &#8220;86400&#8243;</p></blockquote>
<p>Now Add the LFD ignore list for qmail/plesk mail user/process in csf.pignore file.</p>
<blockquote><p># vim /etc/csf/csf.pignore</p>
<p>#### Custom for Plesk ####<br />
user:admin<br />
exe:/var/qmail/bin/qmail-smtpd<br />
exe:/usr/bin/imapd<br />
exe:/var/qmail/bin/qmail-queue<br />
exe:/usr/bin/pop3d<br />
exe:/var/qmail/bin/qmail-send<br />
cmd:qmail-send<br />
cmd:/usr/bin/pop3d Maildir<br />
cmd:/var/qmail/bin/qmail-queue<br />
cmd:/var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true<br />
cmd:/usr/bin/imapd Maildir<br />
exe:/var/qmail/bin/qmail-rspawn<br />
cmd:qmail-rspawn<br />
exe:/var/qmail/bin/qmail-clean<br />
cmd:qmail-clean<br />
exe:/usr/sbin/clamd<br />
cmd:clamd<br />
exe:/var/qmail/bin/splogger<br />
cmd:splogger qmail<br />
exe:/var/qmail/bin/qmail-remote.moved<br />
user:qmaill<br />
user:popuser<br />
user:qmaild<br />
user:qmails<br />
user:qmailr<br />
user:qmailq<br />
user:qscand<br />
exe:/usr/sbin/avahi-daemon<br />
user:avahi<br />
exe:/usr/local/sbin/zabbix_agentd<br />
cmd:/usr/local/sbin/zabbix_agentd<br />
user:zabbix<br />
exe:/usr/bin/sw-engine-cgi<br />
cmd:/usr/bin/sw-engine-cgi<br />
user:sso<br />
exe:/usr/sbin/sw-cp-serverd<br />
cmd:/usr/sbin/sw-cp-serverd -f /etc/sw-cp-server/config<br />
user:sw-cp-server<br />
exe:/usr/bin/sw-engine-cgi<br />
cmd:/usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm<br />
user:psaadm<br />
exe:/usr/libexec/mysqld<br />
cmd:/usr/libexec/mysqld &#8211;basedir=/usr &#8211;datadir=/var/lib/mysql &#8211;user=mysql &#8211;pid-file=/var/run/mysqld/mysqld.pid &#8211;skip-external-locking &#8211;socket=/var/lib/mysql/mysql.sock<br />
user:mysql<br />
exe:/usr/libexec/hald-addon-acpi<br />
exe:/usr/sbin/hald<br />
cmd:hald<br />
user:haldaemon<br />
exe:/usr/bin/postgres<br />
user:postgres<br />
exe:/sbin/portmap<br />
cmd:portmap<br />
user:rpc<br />
exe:/usr/bin/xfs<br />
cmd:xfs -droppriv -daemon<br />
user:xfs<br />
exe:/usr/bin/python<br />
cmd:/usr/bin/python /usr/lib/mailman/bin/qrunner &#8211;runner=VirginRunner:0:1 -s<br />
user:mailman<br />
exe:/usr/java/jdk1.6.0_20/bin/java<br />
user:tomcat</p></blockquote>
<p>Note: You may need to add few more process/user as per your requirement.</p>
<p><strong>Now start the CSF</strong></p>
<blockquote><p># csf -s</p></blockquote>
<p><strong>Restart LFD</strong></p>
<blockquote><p># service lfd restart</p></blockquote>
<p>Installation is done, now check the website, mail  and other services(s) and disable TESTING mode and restart CSF/LFD</p>
<blockquote><p># csf -r<br />
# service lfd restart</p></blockquote>
<p>I will list below some of very common commands you will need to use/manage csf firewall :</p>
<p><strong>Enabling the firewall</strong></p>
<blockquote><p># csf –enable OR<br />
# csf -e</p></blockquote>
<p><strong>Disabling the firewall</strong></p>
<blockquote><p># csf –disable<br />
# csf -x</p></blockquote>
<p><strong>Starting firewall / applying rules</strong></p>
<blockquote><p># csf –start<br />
# csf -s</p></blockquote>
<p><strong>Stopping firewall / flushing rules</strong></p>
<blockquote><p># csf –stop<br />
# csf -f</p></blockquote>
<p><strong>Adding an IP in firewall</strong></p>
<blockquote><p># csf -d 2.3.4.5 “Reason for blocking the IP”<br />
# csf –deny 2.3.4.5 “Reason for blocking the IP”<br />
where 2.3.4.5 is the IP you want to block.</p></blockquote>
<p><strong>Removing IP from deny list</strong></p>
<blockquote><p># csf -dr 2.3.4.5</p></blockquote>
Note: There is a rating embedded within this post, please visit this post to rate it.
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/csflfd-installation-for-plesk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vmware Zimbra &#8211; The open source messaging alternative to Google Apps and MS Exchange</title>
		<link>http://www.diademblogs.com/linux/vmware-zimbra-the-open-source-messaging-alternative-to-google-apps-and-ms-exchange</link>
		<comments>http://www.diademblogs.com/linux/vmware-zimbra-the-open-source-messaging-alternative-to-google-apps-and-ms-exchange#comments</comments>
		<pubDate>Fri, 18 Feb 2011 13:28:01 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail Service]]></category>
		<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[Plesk to Zimbra]]></category>
		<category><![CDATA[Zimbra 7]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=935</guid>
		<description><![CDATA[Zimbra Collaboration Server (www.zimbra.com) is a fully featured open source messaging and collaboration application that supports email messaging,  group calendars, blackberry sync and other features using an advanced Ajax web interface that enables tool tips, drag-and-drop items, advanced searching capabilities and right-click menus in the UI. The software consists of both client and server components. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.diademblogs.com/wp-content/uploads/2010/05/zimbra_logo.png"><img class="size-full wp-image-1231 alignleft" title="Vmware Zimbra " src="http://www.diademblogs.com/wp-content/uploads/2010/05/zimbra_logo.png" alt="" width="250" height="125" /></a></p>
<p>Zimbra Collaboration Server (<a href="http://www.zimbra.com">www.zimbra.com</a>) is a fully featured open source messaging and collaboration application that supports email messaging,  group calendars, blackberry sync and other features using an advanced Ajax web interface that enables tool tips, drag-and-drop items, advanced searching capabilities and right-click menus in the UI. The software consists of both client and server components. Two versions of Zimbra are available: an open-source version, and a commercially supported version (&#8220;Zimbra Network&#8221;) with closed-source components such as a proprietary connector to Outlook for calendar synchronization. Zimbra has been bought over from Yahoo by Vmware and they have recently released ver 7 of the Zimbra Open source and Network editions on their website.</p>
<p>The Zimbra Server uses several open source projects e.g. Postfix, MySQL, OpenLDAP, Apache Tomcat (replaced by Jetty since 5.0), ClamAV, SpamAssassin, AMaViS and Amavisd-new, DSPAM, Aspell, etc. It exposes an Application programming interface (API) to all its functionality and also is an IMAP and POP3 server. The server runs on many distributions of Linux as well as on Mac OS X.</p>
<p>Zimbra can synchronize mail, contacts, and calendar items with open-source mail clients such as Novell Evolution and also with proprietary clients such as Microsoft Outlook and Apple Mail, but only through proprietary connectors available exclusively in the commercially supported version (&#8220;Zimbra Network Edition&#8221;). Zimbra also provides native two-way sync to many mobile devices (Nokia Eseries, BlackBerry, Windows Mobile, iPhone with 2.0 software).</p>
<p>Zimbra can be an ideal mail server for your organization if you are having more than 50 users and if your users require the advanced collobaration features which a groupware can offer (calendaring, shared folders, appointment tracking, web based UI, etc.). As it has full POP3 and IMAP support alongwith a robust spam filter (it segregates the suspected spam mails in a junk folder so that users can review the mails and mark the false positive mails as &#8216;not junk&#8217;), its very useful at organisations who want to stomp out spam mail but need the option to verify the mails which have been tagged as spam (akin to most web based email services). We have successfully implemented Zimbra for several of our clients in a virtualised environemnt and  it works well with just 2 GB RAM and Multicore processor for upto 100 users.</p>
<p><strong>We have also recently migrated one of our client&#8217;s 12 GB mail box to the Zimbra Server with a single script as given below.</strong></p>
<p>To migrate the mails, first you need to create all your mailboxes in zimbra server.</p>
<p>And after that move all your messages from Plesk Server to Zimbra server in a same folder structure.</p>
<p>To backup from Plesk server follow the steps.</p>
<blockquote><p># cd /var/qmail/mailnames/<br />
# tar -zcvf /your/path/domain.tgz domain.com</p></blockquote>
<p>Now move the backup file (domain.tgz) to Zimbra server with SCP or Samba share (or any other method) which ever is available. Go to the path where you have copied the backup file and extract the backup file.</p>
<blockquote><p># cd /your/path<br />
# tar -zxvf domain.tgz</p></blockquote>
<p>It will look like something as below when you list the extracted folder.</p>
<blockquote><p>domain.com/user1<br />
domain.com/user2</p></blockquote>
<p>Now copy the below script in domain folder as &#8216;mailexport.sh&#8217; and grant execution permission and run the script. It will add all your mails from Inbox and other custom folder to Zimbra server mailbox.</p>
<blockquote><p>#!/bin/bash<br />
#<br />
# Maildir to Zimbra import<br />
# Drop in your user root and run as superuser.<br />
#</p>
<p>domain=&#8221;domain.com&#8221; # change to your domain!</p>
<p>for user in `ls -d1 */|sed s/\\\///`<br />
do<br />
echo<br />
echo &#8220;User $user&#8221;<br />
echo<br />
#<br />
#<br />
find $user -maxdepth 10 -type d -name cur | while read line;<br />
do<br />
folder=`echo ${line}|cut -f3 -d&#8221;/&#8221;|sed s/\\\.//`<br />
line2=`echo ${line/%cur/new}`<br />
echo &#8220;FOLDER $folder&#8221;<br />
if [ "$folder" = "cur" ]<br />
then<br />
/opt/zimbra/bin/zmmailbox -z -m $user@$domain addMessage Inbox $PWD/$user/Maildir/cur<br />
/opt/zimbra/bin/zmmailbox -z -m $user@$domain addMessage Inbox $PWD/$user/Maildir/new<br />
else<br />
if [ "$folder" != "Sent" ] &amp;&amp; [ "$folder" != "Drafts" ] &amp;&amp; [ "$folder" != "Junk" ] &amp;&amp; [ "$folder" != "Trash" ]<br />
then<br />
/opt/zimbra/bin/zmmailbox -z -m $user@$domain createFolder &#8220;/$folder&#8221;<br />
fi<br />
/opt/zimbra/bin/zmmailbox -z -m $user@$domain addMessage &#8220;/$folder&#8221; &#8220;${PWD}/${line}&#8221;<br />
/opt/zimbra/bin/zmmailbox -z -m $user@$domain addMessage &#8220;/$folder&#8221; &#8220;${PWD}/${line2}&#8221;<br />
fi<br />
done</p>
<p>done</p></blockquote>
<p>All done now you can get your old mails within the Zimbra server. If you are looking at an alternative messaging alternative to either Google Apps, MS Exchange or simply need a more robust messaging solution, the Zimbra collaboration suite (open source or network editions) could be a suitable solution to meet your needs.</p>
Note: There is a rating embedded within this post, please visit this post to rate it.
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/vmware-zimbra-the-open-source-messaging-alternative-to-google-apps-and-ms-exchange/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Email and server security features on Diadem servers</title>
		<link>http://www.diademblogs.com/linux/email-and-server-security-features-with-diadem-servers</link>
		<comments>http://www.diademblogs.com/linux/email-and-server-security-features-with-diadem-servers#comments</comments>
		<pubDate>Thu, 14 Oct 2010 05:44:58 +0000</pubDate>
		<dc:creator>anirban</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[email security]]></category>
		<category><![CDATA[server security]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=730</guid>
		<description><![CDATA[At Diadem, We have all our servers located in the world's leading datacenter which has a very secure environment with various levels of physical and hardware based protection to keep your data safe from different attacks and vulnerabilities.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><strong>Diagram of Various Tiers of security in datacenter network and at server level </strong></p>
<p style="text-align: center;">
<p style="text-align: center;"><img class="size-full wp-image-750 alignnone" src="http://www.diademblogs.com/wp-content/uploads/2009/09/security.png" alt="security" width="539" height="686" /></p>
<p style="text-align: center;"><strong><br />
</strong></p>
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: justify; padding-left: 30px;">At Diadem Technologies we take extreme precaution and safeguard of our mailing services to ensure continuous and reliable availability of our mailing services to our clients. We have all our servers located in the world&#8217;s leading datacenter which has a very secure environment with various levels of physical and hardware based protection to keep your data safe from different attacks and vulnerabilities. The servers have multi core Xeon processers and have <a title="Raid 10" href="http://www.diadem.co.in/web-hosting/raid-hosting-services.html" target="_blank"><span style="text-decoration: underline;">RAID10</span></a> array of HDDs for complete  data redundancy so that a hard disk crash would not affect the server operations and would not result in any loss of data on the server.</p>
<p style="text-align: justify; padding-left: 30px;">The servers are restricted to be accessed via the Public network so that no unauthorized access to the servers can be made. We use a secure encrypted <span style="text-decoration: underline;"><a href="http://compnetworking.about.com/od/vpn/a/what_is_a_vpn.htm" target="_blank">VPN</a> </span>(virtual private network) connection that connects to the private backend network and hence the servers are only accessible to the legitimate admin users at our end.</p>
<p style="text-align: justify; padding-left: 30px;">For network level protection we have in place perimeter hardware firewalls by CISCO systems to block external threats along with CISCO GUARD DDOS (<a href="http://www.cert.org/homeusers/ddos.html" target="_blank"><span style="text-decoration: underline;">Distributed Denial of service</span></a>) and <a href="http://www.cisco.com/en/US/products/sw/secursw/ps2113/index.html" target="_blank"><span style="text-decoration: underline;">CISCO Tipping point IPS </span></a>(Intrusion prevention system). <span style="text-decoration: underline;"><a href="http://www.cisco.com/en/US/products/ps5888/index.html" target="_blank">CISCO GUARD</a> </span>DDOS protects from requests that make a computer resource unavailable to its intended users and brings down the server to halt. CISCO Tipping point IPS is an advanced Intrusion prevention system that is used extensively in critical networks to monitor network and/or system activities for malicious or unwanted behavior and can react, in real-time, to block or prevent those activities. Network-based IPS, for example, will operate in-line to monitor all network traffic for malicious code or attacks. When an attack is detected, it can drop the offending packets while still allowing all other traffic to pass.</p>
<p style="text-align: justify; padding-left: 30px;">After passing through the various levels of security mentioned above we have more additional security features on the physical server for protecting the server /server applications and the inbound and outbound mails.</p>
<ul>
<li>At the server we have robust software based firewalls that have been customized to add another level of security in the server.</li>
<li>We have SMTP connection tracking system to check all the connections that are being made to the server for sending or receiving mails. At this level various parameters of a mail are checked like if the IP of the sender is blacklisted in any third party Anti SPAM website, if the sender has a valid mail server, if the reverse DNS of the sender email server is valid.</li>
<li>We have enabled <a href="http://projects.puremagic.com/greylisting/" target="_blank"><span style="text-decoration: underline;">greylisting</span></a> on the server to cut down on SPAM mails before they can enter the server. We have advanced content filtering along with anti spam software, antivirus, malware and anti root kit signatures that are updated regularly to block emerging threats immediately.</li>
<li>Once the mail is scanned with the above filters, we implement a new and unique technique to authorize defined servers only to server your emails through the use of SPF records. Any other servers would not be able to send or receive any mail on behalf of your domain. This will cut down spoofing of your emails.</li>
<li>At the last stage we have SMTP authentication enabled that allows mails to be relayed through our servers only for those who are intended to send mails hence reducing the unwanted relaying of mails.</li>
</ul>
<p><strong>The above illustration highlights our commitment to ensure that we provide our clients with the best of breed technologies to ensure spam free, virus free, efficient and continuous availability of our mailing services for their operations.</strong></p>
<p><em>If you are interested in knowing more about our web hosting services and plan details, you can look us up at <a href="http://www.diadem.co.in" target="_self"> www.diadem.co.in</a>. </em></p>
Note: There is a rating embedded within this post, please visit this post to rate it.
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/email-and-server-security-features-with-diadem-servers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some useful Linux shell commands</title>
		<link>http://www.diademblogs.com/linux/some-useful-linux-shell-commands</link>
		<comments>http://www.diademblogs.com/linux/some-useful-linux-shell-commands#comments</comments>
		<pubDate>Mon, 13 Sep 2010 06:01:49 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Commands]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=974</guid>
		<description><![CDATA[Some useful commands in Linux (applicable for RedHat Enterprise Linux, Fedora and CentOS) for regular server admin activities.]]></description>
			<content:encoded><![CDATA[<p>Below are some useful commands in Linux (applicable for RedHat Enterprise Linux, Fedora and CentOS) for regular server admin activities.</p>
<ul>
<li>To find a word string in the files under a folder(s).</li>
</ul>
<blockquote><p># find . | xargs grep &#8216;your-string&#8217; -sl</p></blockquote>
<ul>
<li>To get the disk usages for the individual sub-directory run:</li>
</ul>
<blockquote><p># ls -d /your/path/* | xargs du -sH</p></blockquote>
<ul>
<li>Replace a word string with another word string in all files in a folder.</li>
</ul>
<blockquote><p>Using ‘sed’ command:<br />
# sed -i &#8216;s/ string1/ string2/g&#8217; *.html</p>
<p>Using ‘find’ command:<br />
# find ./ -type f -exec sed -i ’s/string1/string2/’ {} \;</p></blockquote>
<ul>
<li>When you deleting huge number of files in a folder, you might receive an error like <strong>“/bin/rm: Argument list too long”</strong>, do this instead “rm -rf&#8221; command:</li>
</ul>
<blockquote><p># find . -name &#8216;*.ext&#8217; | xargs rm</p></blockquote>
<ul>
<li>If you want to delete 20 days older files in folder, you can use the find command as below for your job.</li>
</ul>
<blockquote><p>This commands to list the files older than 20 days:<br />
# find /path/folder1 -mtime +20 -type f -exec ls -d1 {} \;</p>
<p>Delete the files older than 20 days:<br />
# find /path/folder1 -mtime +20 -type f -exec rm -rf {} \;<br />
OR<br />
# find /path/folder1 -mtime +20 -type f -ok rm -rf {} \;</p></blockquote>
<p style="padding-left: 30px;">You can change the older days count by increasing or decreasing the number and the file or folder by specify the “-type d” for folder.</p>
<ul>
<li>Changing File or folder permission for multiple files and folder with the command<br />
<strong>chmod -R 777 /path/folder1/*</strong> is a risky affair, if you miss the path of folder or file the command would applicable to the root (/) folder and that can result a some wrong permission in system file/folder which leads a vulnerable system. Instead of using the “chmod” command directly, you can use it with find command for a safer modification.</li>
</ul>
<blockquote><p>For folders permission:<br />
# find . -type d -exec chmod 555 {} \;</p>
<p>For files permission:<br />
# find . -type f -exec chmod 444 {} \;</p></blockquote>
<p style="padding-left: 30px;">These are the most frequently used commands in Linux for day to day activities, thank you for your visit and please feel free to share any additional linux commands which you find useful <img src='http://www.diademblogs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p style="padding-left: 30px;">Note: There is a rating embedded within this post, please visit this post to rate it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/some-useful-linux-shell-commands/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>64 bit Linux Hosting – Now Available</title>
		<link>http://www.diademblogs.com/linux/64-bit-linux-hosting</link>
		<comments>http://www.diademblogs.com/linux/64-bit-linux-hosting#comments</comments>
		<pubDate>Wed, 02 Jun 2010 09:16:31 +0000</pubDate>
		<dc:creator>hriday</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=950</guid>
		<description><![CDATA[Keeping in view the ever growing needs of our clients for faster and higher performance web hosting servers, we have recently provisioned our first 64 bit Linux Web Hosting Server which is deployed with the 64-bit RHEL 5 Enterprise OS. 64 bit web servers are a significant step up in computer architecture and deliver higher [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.diademblogs.com/wp-content/uploads/2010/06/64-bit-linux-hosting.jpg"><img class="alignleft size-full wp-image-955" title="64 bit linux hosting" src="http://www.diademblogs.com/wp-content/uploads/2010/06/64-bit-linux-hosting.jpg" alt="" width="296" height="199" /></a>Keeping in view the ever growing needs of our clients for faster and higher performance web hosting servers, we have recently provisioned our first 64 bit Linux Web Hosting Server which is deployed with the <strong><a title="64 bit rhel 5" href="http://www.redhat.com/rhel/server/" target="_blank">64-bit RHEL 5 Enterprise OS</a>. </strong></p>
<p>64 bit web servers are a significant step up in computer architecture and deliver higher performance, security and reliability of hosted web applications on such servers.  Here is the hardware configuration of our new 64 bit Linux (RHEL 5) server:</p>
<ul>
<li>Quad Core Intel Xeon 5520 Processor</li>
<li>6 GB DDR 1333 Registered RAM</li>
<li>64 bit RHEL 5 OS and applications</li>
<li>Raptor 300 GB 10K RPM HDDs</li>
<li>RAID 10 Disk Array</li>
<li>Plesk 9.5 Control Panel</li>
</ul>
<p>This shiny new 64 bit server is ready to host your website and unleash the power of the 64 bit computing platform for your website, email and hosted apps. You can view our <strong><a title="64 bit linux hosting" href="http://www.diadem.co.in/linux-hosting/compare-linux-hosting-plans.html" target="_self">64-bit Linux Hosting Plans</a></strong> online get in touch with us for any queries on our plan features.</p>
<p><em>Reference: <a title="learn more about 64 bit " href="http://en.wikipedia.org/wiki/64-bit" target="_blank">Wikipedia – 64 bit</a></em></p>
<p>Note: There is a rating embedded within this post, please visit this post to rate it.<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/64-bit-linux-hosting/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>http port 80 redirection</title>
		<link>http://www.diademblogs.com/linux/http-port-80-redirection</link>
		<comments>http://www.diademblogs.com/linux/http-port-80-redirection#comments</comments>
		<pubDate>Sat, 20 Mar 2010 05:43:59 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[http port 80 redirection]]></category>
		<category><![CDATA[http redirection]]></category>
		<category><![CDATA[port 80 redirection]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=839</guid>
		<description><![CDATA[If you want to redirect all incoming TCP traffic on port 80 to a custom port say 8089 on the local machine, then xinetd is a good option. Xinetd, the Extended Internet Daemon, is an open-source super-server  daemon which runs on many Unix-like  systems and manages Internet-based connectivity. Follow the below steps redirect to the [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to redirect all incoming TCP traffic on port 80 to a custom port say 8089 on the local machine, then xinetd is a good option. Xinetd, the <em><strong>Extended Internet Daemon</strong></em>, is an open-source super-server  daemon which runs on many Unix-like  systems and manages Internet-based connectivity.</p>
<p>Follow the below steps redirect to the 80 port.</p>
<p>Login to your Linux server as super user i.e. &#8216;root&#8217;.</p>
<p>Create a file under <em>/etc/xinetd.d/</em> folder as <em>http_redirector</em></p>
<blockquote><p># vi /etc/xinetd.d/http_redirector</p></blockquote>
<p>Now add the following entries in the files.</p>
<blockquote><p>service http_redirector<br />
{<br />
type = UNLISTED<br />
disable = no<br />
socket_type = stream<br />
protocol = tcp<br />
user = root<br />
wait = no<br />
port = 80<br />
redirect = 127.0.0.1 8089<br />
log_type = FILE /tmp/httpredirector.log<br />
}</p></blockquote>
<p>Restart the <em>xinetd </em>service.</p>
<blockquote><p># service xinetd restart</p></blockquote>
<p>That&#8217;s all you are done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/http-port-80-redirection/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to hide Apache and PHP Versions from remote users</title>
		<link>http://www.diademblogs.com/linux/how-to-hide-apache-and-php-versions-from-remote-users</link>
		<comments>http://www.diademblogs.com/linux/how-to-hide-apache-and-php-versions-from-remote-users#comments</comments>
		<pubDate>Sun, 01 Nov 2009 10:22:28 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[Hide Apache Information]]></category>
		<category><![CDATA[Hide PHP Version]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=595</guid>
		<description><![CDATA[Hide Apache Information To hide the information, add/change the following two apache directives in Apache configuration file /etc/httpd/conf/httpd.conf ServerTokens ProductOnly ServerSignature Off Now you need to restart your web server using the following command # service httpd restart Now the output for apache header looks like below Server: Apache Hide PHP Version in Apache from [...]]]></description>
			<content:encoded><![CDATA[<h4><em>Hide Apache Information</em></h4>
<p>To hide the information, add/change the following two apache directives in Apache configuration file /etc/httpd/conf/httpd.conf</p>
<blockquote><p><strong>ServerTokens ProductOnly<br />
ServerSignature Off</strong></p></blockquote>
<p>Now you need to restart your web server using the following command</p>
<blockquote><p><strong># service httpd restart</strong></p></blockquote>
<p>Now the output for apache header looks like below</p>
<blockquote><p><em><strong>Server: Apache</strong></em></p></blockquote>
<h4><em>Hide PHP Version in Apache from remote user’s requests</em></h4>
<p>In your <em><strong>php.ini</strong></em> (the typical path is <em><strong>/etc/php.ini)</strong></em> locate the line containing “expose_php = On” and set it to Off:</p>
<blockquote><p><strong>expose_php = Off</strong></p></blockquote>
<p>Now you need to restart your web server using the following command</p>
<blockquote><p><strong># service httpd restart</strong></p></blockquote>
<p>After making this change PHP will no longer add its signature to the web server header. Though, this step in itself will not make your server more secure, it will prevent remote hosts to easily see that you have PHP installed on the system and what version of Apache you are running on your web server.</p>
Note: There is a rating embedded within this post, please visit this post to rate it.
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/how-to-hide-apache-and-php-versions-from-remote-users/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternate SMTP port through Plesk for Linux</title>
		<link>http://www.diademblogs.com/linux/alternate-smtp-port</link>
		<comments>http://www.diademblogs.com/linux/alternate-smtp-port#comments</comments>
		<pubDate>Sat, 12 Sep 2009 04:20:58 +0000</pubDate>
		<dc:creator>ankur</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk Control Panel]]></category>
		<category><![CDATA[Alternative port in qmail]]></category>
		<category><![CDATA[Alternative SMTP port in Linux Plesk]]></category>

		<guid isPermaLink="false">http://www.diademblogs.com/?p=518</guid>
		<description><![CDATA[Nowadays, quite a few ISPs block port# 25 which is the default SMTP port for relaying email for security purposes, so you need to configure an alternative port for SMTP connection. Use instructions below to configure an additional alternate SMTP port in a Plesk Server running in Redhat Enterprise Linux Version 4/5 or CentOS version [...]]]></description>
			<content:encoded><![CDATA[<p>Nowadays, quite a few ISPs block port# 25 which is the default SMTP port for relaying email for security purposes, so you need to configure an alternative port for SMTP connection.</p>
<p>Use instructions below to configure an additional alternate SMTP port in a Plesk Server running in Redhat Enterprise Linux Version 4/5 or CentOS version 5 in Qmail  Server.</p>
<p>Choose any unused port and add it to the /etc/services file, for example:</p>
<blockquote><p>smtp_alt        8425/tcp        mail            # Alternate SMTP Port<br />
smtp_alt        8425/udp        mail            # Alternate SMTP Port (optional)</p></blockquote>
<p>Make a copy of /etc/xinetd.d/smtp_psa to /etc/xinetd.d/smtp_psa_alt and correct service line within new file:</p>
<blockquote><p>service smtp_alt</p></blockquote>
<p>Below is a sample of smtp_psa_alt file.</p>
<blockquote><p><span style="color: #333399;">service smtp_alt<br />
{<br />
socket_type     = stream<br />
protocol        = tcp<br />
wait            = no<br />
disable         = no<br />
user            = root<br />
instances       = UNLIMITED<br />
server          = /var/qmail/bin/tcp-env<br />
server_args     = -Rt0 /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var<br />
/qmail/bin/cmd5checkpw /var/qmail/bin/true<br />
}</span></p></blockquote>
<p>Restart xinetd and Qmail</p>
<blockquote><p>service xinetd restart<br />
service qmail restart</p></blockquote>
<p>SMTP connections will be accepted on the both standard and 8025 ports. You may also need to reconfigure Horde IMP (webmail) settings so it uses the alternative SMTP port too. This can be done editing the following file in Horde webmail:</p>
<p><strong><em>/etc/psa-horde/imp/servers.php</em></strong> file under <strong><em>smtpport </em></strong>parameter for both IMAP and POP3 servers.</p>
Note: There is a rating embedded within this post, please visit this post to rate it.
]]></content:encoded>
			<wfw:commentRss>http://www.diademblogs.com/linux/alternate-smtp-port/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

