<?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>Bloggy Bloggy My Blog &#187; apf</title>
	<atom:link href="http://www.myblog.bloggybloggy.com/tag/apf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myblog.bloggybloggy.com</link>
	<description>Bloggy Bloggy is a Portal to my College Life as it Happens and other cool stuff.</description>
	<lastBuildDate>Mon, 31 Oct 2011 20:42:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing LxAdmin on Centos 5.1 with APF firewall</title>
		<link>http://www.myblog.bloggybloggy.com/installing-lxadmin-on-centos-with-apf-firewall-19-05-2008/</link>
		<comments>http://www.myblog.bloggybloggy.com/installing-lxadmin-on-centos-with-apf-firewall-19-05-2008/#comments</comments>
		<pubDate>Tue, 20 May 2008 02:38:07 +0000</pubDate>
		<dc:creator>Sumeet</dc:creator>
				<category><![CDATA[Webmastering]]></category>
		<category><![CDATA[apf]]></category>
		<category><![CDATA[apf on lxadmin]]></category>
		<category><![CDATA[lxadmin]]></category>

		<guid isPermaLink="false">http://www.myblog.bloggybloggy.com/?p=44</guid>
		<description><![CDATA[Hi,
So i got a server from kevworks.net last night for an amazingly low price (its a dual core, 2gig ram with 500 gig space and 10mbps unmetered ) and so i decided to use it for my main hosting backup portal. It did not come with any control panel so decided to install the free [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>So i got a server from kevworks.net last night for an amazingly low price (its a dual core, 2gig ram with 500 gig space and 10mbps unmetered ) and so i decided to use it for my main hosting backup portal. It did not come with any control panel so decided to install the free version of Lxadmin on the same. Ran into like bunch of troubles (trust me i would have kept going and going and finally screwed up the server is i did not google up the problems it was showing me) . So to make it easy for you to install lxadmin on your fresh centos 5.1 box here are the steps/instructions.</p>
<p>1. First of all make sure selinuxis disabled (found out this was my root of all problems). TO disable selinux do this :</p>
<p><span id="more-44"></span></p>
<p>In Fedora Core and RedHat Enterprise, edit <span class="inlinecode">/etc/selinux/config</span> and you will see some lines like this:</p>
<pre><span><span class="code"># This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
<strong>SELINUX=enforcing</strong>
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.

Just change </span></span><span class="inlinecode">SELINUX=enforcing</span> to <span class="inlinecode">SELINUX=disable</span>, and you're done. Reboot if you want to prove it.
For others here is where i got the above from : http://www.crypt.gen.nz/selinux/disable_selinux.html

2. Now you are pretty much set, just run these commands and you should have lxadmin installed on your linux box.</pre>
<p><strong> Command</strong></p>
<p><strong>wget http://download.lxlabs.com/download/lxadmin/production/lxadmin-install-master.sh</strong></p>
<p><strong>sh ./lxadmin-install-master.sh</strong></p>
<p>You will presented with a question/menu from yum/up2date, on which you can press &lt;Enter&gt;</p>
<table style="height: 10px;" border="1" cellspacing="0" cellpadding="2" width="128">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
<p>Lxadmin will install:</p>
<ol>
<li> Web server:
<ul>
<li> apache</li>
<li> pure-ftp</li>
<li> awstats</li>
</ul>
</li>
<li> Mail server:
<ul>
<li> qmail</li>
<li> courier (imap pop)</li>
<li> webmail</li>
<li> httpd (for webmail)</li>
</ul>
</li>
<li> Nameserver:
<ul>
<li> bind</li>
</ul>
<ul>
<li> bind-chroot</li>
</ul>
</li>
<li> Database Server:
<ul>
<li> mysql-server</li>
</ul>
<ul>
<li> postgresql</li>
</ul>
</li>
</ol>
<p>Once lxadmin is installed, you can connect to &#8216;http://machine-name:7778&#8242;, and you will be presented with a login screen &#8211; the password would be &#8216;admin&#8217;. Once you login, Lxadmin will explicitly force you to change the password to something other than &#8216;admin&#8217;.</p>
<p>More instructions can be had from lxadmin site itself : http://lxlabs.com/software/lxadmin/install/</p>
<p>3. Now installing APF (firewall ) .</p>
<p>Visit http://www.rfxnetworks.com/apf.php for instructions and details. But his is how you install it :</p>
<p>wget</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;" dir="ltr">http://www.rfxnetworks.com/downloads/apf-current.tar.gz</pre>
</div>
<p>a. tar -xvzf apf-current.tar.gz</p>
<p>b. cd apf-0.9.6-2/ or whatever the latest version is.</p>
<p>c. Run the install file: ./install.sh<br />
You will receive a message saying it has been installed</p>
<p>Installing APF 0.9.6-2: Completed.</p>
<p>Installation Details:<br />
Install path: /etc/apf/<br />
Config path: /etc/apf/conf.apf<br />
Executable path: /usr/local/sbin/apf<br />
AntiDos install path: /etc/apf/ad/<br />
AntiDos config path: /etc/apf/ad/conf.antidos<br />
DShield Client Parser: /etc/apf/extras/dshield/</p>
<p>Other Details:<br />
Listening TCP ports: 1,21,22,25,53,80,110,111,143,443,465,993,995,7776,  7777,7778, 7779,3306<br />
Listening UDP ports: 53,55880<br />
Note: These ports are not auto-configured; they are simply presented for information purposes. You must manually configure all port options.</p>
<p><strong>d. Lets configure the firewall: pico /etc/apf/conf.apf (or nano /etc/apf/conf.apf)</strong><br />
We will go over the general configuration to get your firewall running. This isn&#8217;t a complete detailed guide of every feature the firewall has. Look through the README and the configuration for an explanation of each feature.</p>
<p>This stage aka d. Stage is very important. Although you setup and open port 7777,7778 and 7779 you might still be locked out of your Lxadmin admin panel. Why ? Well because APF has port 7778 Blocked by default. To fix that locate this line :</p>
<p>BLK_P2P_PORTS=&#8221;1214,2323,4660_4678,6257,6699,6346,6347,6881_6889,6346,7778&#8243; &lt;&lt; See the port 7778 . Remove it and you are all set. To edit config file i use nano /etc/apf/config.apf command. And to locate that line hit Ctrl+w key and enter text BLK_P2P_PORTS in the search field.</p>
<p>For configuring apf firewall and stuff please google up some more help.<strong> But Lxadmin by default installation of APF will not work as APF has port 7778 Blocked by default.</strong></p>
<p>So hopefully by now your lxadmin is all setup and running on your box with the added security of the wonderful APF firewall. Not sure if CSF firewall is compatible with Lxadmin yet, might give it a try or something later .</p>
<p>If you need to reset your mysql password (which lxadmin setups for root user)  , use following commands :</p>
<pre> cd /usr/local/lxlabs/lxadmin/httpdocs/
 lphp.exe ../bin/common/misc/reset-<span class="st1">mysql</span>-<span class="st0">root</span>-password.php

You might need to run this command first, as above file by default does not exists as .php extension but has .phps extension.
So run this command if about command gives your file not found error.

cp /usr/local/lxlabs/lxadmin/bin/common/misc/reset-mysql-root-password.phps /usr/local/lxlabs/lxadmin/bin/common/misc/reset-mysql-root-password.php

That should reset your root password to null. And you can reinstall lxadmin again if you want.</pre>
<p>Enjoy your free Lxadmin Panel !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myblog.bloggybloggy.com/installing-lxadmin-on-centos-with-apf-firewall-19-05-2008/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

