<?xml version="1.0" encoding="iso-8859-1"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en"> 
<title>Booservers - All about dedicated servers</title> 
<link rel="alternate" type="text/html" href="http://www.booservers.com" /> 
 
<modified>2005-12-15T21:55:06Z</modified> 
<tagline></tagline> 
<generator url="http://www.plogworld.net/" version="1.0.1">pLog</generator> 
 
<copyright>Copyright (c) Luigi Ramone</copyright> 
  
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:42</id>
 <title>Install Mailscanner MRTG </title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/42_install_mailscanner_mrtg_.html" /> 
  
 <modified>2005-12-15T21:55:06</modified> 
 <issued>2005-12-15T21:55:06</issued> 
 <created>2005-12-15T21:55:06Z</created> 
 <summary type="text/plain"> This will install Mailscanner MRTG on your system. I have tested it on Ensim 3.1.10 and Ensim 3.5.17. Others have also done this on CPanel, but make sure you make the change noted...   Regular, I ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
System 
Mail 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;This will install Mailscanner MRTG on your system. I have tested it on Ensim 3.1.10 and Ensim 3.5.17. Others have also done this on CPanel, but make sure you make the change noted... &lt;/p&gt;&lt;p&gt;Regular, I am not responsible for your box/you are doing this at YOUR OWN RISK... It should not screw anything up, but you are ultimately responsible if it does. I will help out as much as I can, but I am not a genius.&lt;/p&gt;&lt;p&gt;PREREQUISITES&lt;br /&gt;1) MRTG *MUST* be installed (HOW-TO)&lt;br /&gt;2) Mailscanner *MUST* be installed (I use gpans MS/SA/CM HOW-TO, but there is a MS Only HOW-TO too)&lt;/p&gt;&lt;p&gt;INSTRUCTIONS&lt;br /&gt;cd ~&lt;br /&gt;wget &lt;a href=&quot;http://umn.dl.sourceforge.net/sourc...rtg-0.05.tar.gz&quot;&gt;http://umn.dl.sourceforge.net/sourc...rtg-0.05.tar.gz&lt;/a&gt;&lt;br /&gt;tar -xzvf mailscanner-mrtg-0.05.tar.gz&lt;br /&gt;cd mailscanner-mrtg-0.05&lt;br /&gt;cp mailscanner-mrtg.conf /etc/MailScanner/&lt;br /&gt;cp mailscanner-mrtg.cfg /etc/mrtg/&lt;br /&gt;cp mailscanner-mrtg /usr/sbin/&lt;br /&gt;cp mailscanner-mrtg.include /etc/httpd/conf/&lt;br /&gt;cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bk&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;For CPanel Users&lt;br /&gt;mkdir /usr/local/apache/htdocs/mailscanner-mrtg&lt;br /&gt;cp web/* /usr/local/apache/htdocs/mailscanner-mrtg/&lt;br /&gt;pico -w /etc/MailScanner/mailscanner-mrtg.conf&lt;br /&gt;Find the two lines that start with:&lt;br /&gt;Incoming Queue Dir =&lt;br /&gt;Outgoing Queue Dir =&lt;br /&gt;and change it to look like this:&lt;br /&gt;Incoming Queue Dir = /var/spool/exim_incoming/input/&lt;br /&gt;Outgoing Queue Dir = /var/spool/exim/input/&lt;/p&gt;&lt;p&gt;&lt;br /&gt;For Ensim/Red Hat/Fedora Users&lt;br /&gt;mkdir /var/www/html/mailscanner-mrtg&lt;br /&gt;cp web/* /var/www/html/mailscanner-mrtg/&lt;/p&gt;&lt;p /&gt;&lt;p&gt;Continued... FOR ALL USERS&lt;br /&gt;pico -w /etc/httpd/conf/httpd.conf&lt;br /&gt;Add this line to the very bottom&lt;br /&gt;Include /etc/httpd/conf/mailscanner-mrtg.include&lt;br /&gt;Ctrl + X to quit, y to save&lt;/p&gt;&lt;p&gt;Run this command 3 times. Ignore the errors and wait, it takes a few seconds each time.&lt;br /&gt;mrtg /etc/mrtg/mailscanner-mrtg.cfg&lt;br /&gt;-- IGNORE THE ERRORS (They are normal) --&lt;/p&gt;&lt;p&gt;service httpd restart&lt;br /&gt;If this fails, check that you copied the file mailscanner-mrtg.include to the /etc/httpd/conf folder. Also recheck that you added the Include line above. If all else fails comment out the Include line and post your errors. DO NOT CONTINUE until httpd restarts successfully.&lt;/p&gt;&lt;p&gt;pico -w /etc/crontab&lt;br /&gt;Add this line to the bottom of the file&lt;br /&gt;0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mailscanner-mrtg.cfg &amp;gt;&amp;gt; /dev/null&lt;br /&gt;Ctrl + X to quit, y to save&lt;/p&gt;&lt;p&gt;Go to &lt;a href=&quot;http://hostname.domain.com/mailscanner-mrtg&quot;&gt;http://hostname.domain.com/mailscanner-mrtg&lt;/a&gt;&lt;/p&gt; 
</content> 
</entry> 
 
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:41</id>
 <title>Email with attachments from command line</title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/41_email_with_attachments_from_command_line.html" /> 
  
 <modified>2005-12-15T21:53:40</modified> 
 <issued>2005-12-15T21:53:40</issued> 
 <created>2005-12-15T21:53:40Z</created> 
 <summary type="text/plain"> Sending emails from command line I’ll describe possible ways to send emails from the command line. Of course there are much nicer ways to do it, but you may be in the situation (such as the one ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
Mail 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;Sending emails from command line&lt;br /&gt;I’ll describe possible ways to send emails from the command line. Of course there are much nicer ways to do it, but you may be in the situation (such as the one that drove me to do a deeper research and come out with this solution) and will need an easy and fast way to send mails from the prompt. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;Simple text emails:&lt;br /&gt;You can send simple emails by using the already installed sendmail program with the following command at the prompt:&lt;/p&gt;&lt;p&gt;echo &amp;quot;Simple, small body Text goes here&amp;quot; | mail -s &amp;quot;The Subject goes here&amp;quot; &lt;a href=&quot;mailto:user@domain.com&quot;&gt;user@domain.com&lt;/a&gt; &lt;/p&gt;&lt;p&gt;If you have already typed a message in a text file, then import the text into the body of the email you are sending by using command:&lt;/p&gt;&lt;p&gt;mail -s &amp;quot;The Subject goes here&amp;quot; &lt;a href=&quot;mailto:user@domain.com&quot;&gt;user@domain.com&lt;/a&gt; &amp;lt; text_file &lt;/p&gt;&lt;p&gt;Disadvantage: the email will be sent using header From: &lt;a href=&quot;mailto:root@host.domain.com&quot;&gt;root@host.domain.com&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;Advanced emails with attachments:&lt;br /&gt;If you need to send emails containing attachments, then I’ll recommend you to use an additional program not included on the standard Linux distributions, since there it were no way I could find a way to use the build in tools to do it.&lt;br /&gt;This is a mature software, very well documented and with constant development to keep up to date and using most possible features we’ll need.&lt;br /&gt;Program: Email&lt;br /&gt;Version: 2.2.2&lt;br /&gt;WebSite: &lt;a href=&quot;http://email.cleancode.org/&quot;&gt;http://email.cleancode.org/&lt;/a&gt; &lt;/p&gt;&lt;p&gt;As root:&lt;br /&gt;Create a temp folder to download the source:&lt;br /&gt;mkdir email &lt;br /&gt;cd email &lt;br /&gt;wget &lt;a href=&quot;http://email.cleancode.org/download/email-2.2.2.tar.gz&quot;&gt;http://email.cleancode.org/download/email-2.2.2.tar.gz&lt;/a&gt; &lt;br /&gt;tar –zxvf email-2.2.2.tar.gz &lt;br /&gt;cd email-2.2.2 &lt;/p&gt;&lt;p&gt;Run the following commands to have it installed:&lt;br /&gt;./configure &lt;/p&gt;&lt;p&gt;Create the installation file:&lt;br /&gt;make &lt;/p&gt;&lt;p&gt;Run the installation:&lt;br /&gt;su -c &#039;make install&#039; &lt;/p&gt;&lt;p&gt;At the end you’ll get the program installed with:&lt;br /&gt;Binary directory: /usr/local/bin&lt;br /&gt;Email Files /usr/local/etc/email&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Edit the configuration file:&lt;br /&gt;You can select to send email by SMTP or by sendmail.&lt;br /&gt;I personally use sendmail for easiness.&lt;br /&gt;pico -w /usr/local/etc/email/email.conf &lt;/p&gt;&lt;p&gt;&lt;br /&gt;For sendmail:&lt;br /&gt;Comment out lines: (add # at the beginning of the line)&lt;br /&gt;#SMTP_SERVER = &#039;127.0.0.1&#039;&lt;br /&gt;#SMTP_PORT = &#039;25&#039;&lt;/p&gt;&lt;p&gt;Uncomment line: (remove # from the beginning of the line)&lt;br /&gt;SENDMAIL_BIN = &#039;/usr/lib/sendmail -t -i&#039;&lt;/p&gt;&lt;p&gt;Set sender personal info with something like:&lt;br /&gt;MY_NAME = &#039;System Administrator&#039;&lt;br /&gt;MY_EMAIL = &lt;a href=&quot;mailto:&#039;info@domain.com&#039;&quot;&gt;&#039;info@domain.com&#039;&lt;/a&gt;&lt;br /&gt;REPLY_TO = &lt;a href=&quot;mailto:&#039;info@domain.com&#039;&quot;&gt;&#039;info@domain.com&#039;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Exit and save&lt;br /&gt;Ctrl x &lt;br /&gt;y &lt;/p&gt;&lt;p&gt;&lt;br /&gt;For SMTP:&lt;br /&gt;You got the idea, just fill out SMTP variables with proper info.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Edit the signature file:&lt;br /&gt;pico -w /usr/local/etc/email/email.sig &lt;/p&gt;&lt;p&gt;Set it as appropriate with relevant info.&lt;br /&gt;I’d recommend removing line: (to keep system privacy)&lt;br /&gt;On System: %h&lt;/p&gt;&lt;p&gt;Exit and save&lt;br /&gt;Ctrl x &lt;br /&gt;y &lt;/p&gt;&lt;p&gt;System installed and configured.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Some usage example:&lt;br /&gt;Let say you are using Mailsacanner with ClamAV, and a valid attachment was removed, then a customer contacted you with the email MailScanner sent him, including the file name and info and the path were the attachment was quarantined:&lt;br /&gt;It’ll read something like:&lt;/p&gt;&lt;p&gt;...&lt;br /&gt;The original e-mail attachment &amp;quot;file_name.zip&amp;quot;&lt;br /&gt;… …&lt;br /&gt;Note to Help Desk: Look on the E-MailSystem MailScanner in /var/spool/MailScanner/quarantine/20040730 (message i6UKnWp02396)&lt;br /&gt;…&lt;/p&gt;&lt;p&gt;With that info will do:&lt;br /&gt;cd /var/spool/MailScanner/quarantine/20040730/i6UKnWp02396 &lt;/p&gt;&lt;p&gt;Verify the mentioned file exists:&lt;br /&gt;ls &lt;br /&gt;decompressed_file_name.pdf file_name.zip&lt;/p&gt;&lt;p&gt;Execute the email command to send the attachment:&lt;br /&gt;email -s &amp;quot;Attachment&amp;quot; -a file_name.zip &lt;a href=&quot;mailto:user@domain.com&quot;&gt;user@domain.com&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Info: -s = Subject -a = Attachment&lt;/p&gt;&lt;p&gt;For the email body, the system default editor will open up, usually vi&lt;br /&gt;Type in whatever message you want to tell:&lt;br /&gt;To start typing:&lt;br /&gt;Shift a&lt;/p&gt;&lt;p&gt;Dear customer:&lt;br /&gt;Find attached the removed file.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;To finish typing press:&lt;br /&gt;[ESC] &lt;br /&gt;To quit vi type:&lt;br /&gt;:exit &lt;/p&gt;&lt;p&gt;As soon as vi exists, the email will be sent, and will give you a nice progress bar.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Read the README file for more usage options and tweaks.&lt;br /&gt;pico /path/to/download/folder/email-2.2.2/README &lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.integrese.com/&quot;&gt;http://www.integrese.com/&lt;/a&gt;&lt;/p&gt; 
</content> 
</entry> 
 
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:40</id>
 <title>Easy Mailscanner + Clam Antivirus + SpamAssassin *Updated 5/9/2003*</title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/40_easy_mailscanner__clam_antivirus__spamassassin_updated_592003.html" /> 
  
 <modified>2005-12-15T21:52:15</modified> 
 <issued>2005-12-15T21:52:15</issued> 
 <created>2005-12-15T21:52:15Z</created> 
 <summary type="text/plain"> We have put together the following package which will install Mailscanner, Clam Antivirus and SpamAssassin on your Ensim 3.1, or Ensim Pro 3.5 server.  This package installs: Mailscanner 4.22 ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
Mail 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;We have put together the following package which will install Mailscanner, Clam Antivirus and SpamAssassin on your Ensim 3.1, or Ensim Pro 3.5 server.&lt;/p&gt;&lt;p&gt;This package installs:&lt;br /&gt;Mailscanner 4.22&lt;br /&gt;Clam Antivirus 0.60 &lt;br /&gt;SpamAssassin 2.55&lt;/p&gt;&lt;p&gt;&lt;br /&gt;We have tested it on upgrades from 4.11 + Mailscanner versions without issues. If you have an older Mailscanner install, we would recommend uninstalling it first and deleting the /etc/MailScanner folder before running this package.&lt;/p&gt;&lt;p&gt;This package does not use f-prot as you need a commercial license for use in a business environment.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;Installation:&lt;/p&gt;&lt;p&gt;1) Make sure you are su root (or -)&lt;/p&gt;&lt;p&gt;2) Download the appropriate installer to a folder on your server, then install it&lt;/p&gt;&lt;p&gt;Ensim Pro 3.5.x&lt;/p&gt;&lt;p&gt;wget &lt;a href=&quot;http://download.cheetaweb.com/mails...it-3.5.0.tar.gz&quot;&gt;http://download.cheetaweb.com/mails...it-3.5.0.tar.gz&lt;/a&gt;&lt;br /&gt;tar -zxvf mailscanner-kit-3.5.0.tar.gz&lt;br /&gt;cd mailscanner-kit-3.5.0&lt;br /&gt;./mailscanner-clamav-spamassassin-3.5.0.sh&lt;/p&gt;&lt;p&gt;Ensim 3.1.x&lt;br /&gt;wget &lt;a href=&quot;http://download.cheetaweb.com/mails...t-0.2.72.tar.gz&quot;&gt;http://download.cheetaweb.com/mails...t-0.2.72.tar.gz&lt;/a&gt;&lt;br /&gt;tar -zxvf mailscanner-kit-0.2.72.tar.gz&lt;br /&gt;cd mailscanner-kit-0.2&lt;br /&gt;./mailscanner-ensim-0.2.sh&lt;/p&gt;&lt;p&gt;3) You will need to configure MailScanner as described&lt;/p&gt;&lt;p&gt;service sendmail stop&lt;br /&gt;chkconfig --del sendmail&lt;br /&gt;chkconfig --level 2345 MailScanner on&lt;br /&gt;service MailScanner start&lt;/p&gt;&lt;p&gt;*NOTE 1* For Ensim 3.1 installs, this package requires that you be running a perl 5.6.0 environment.&lt;/p&gt;&lt;p&gt;*NOTE 2 * If your /home partition is mounted separately from /, you will need to change the the Incoming Queue to the following after installation, or Mailscanner will not run: &lt;/p&gt;&lt;p&gt;Incoming Queue Dir = /var/spool/mqueue.in&lt;/p&gt;&lt;p&gt;You will also need to edit /etc/cron.d/mqueuecron to run more frequently, i.e. &lt;/p&gt;&lt;p&gt;*/10 * * * * root /usr/lib/opcenter/virtualhosting/MailQueueCleaner&lt;/p&gt;&lt;p&gt;*NOTE 3* SpamAssassin is configured to only tag emails by default. You will need to reconfigure the delivery preferences in MailScanner.conf if you wish it to delete, bounce or otherwise remove the messages that have been tagged as spam.&lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.cheetaweb.com/&quot;&gt;http://www.cheetaweb.com/&lt;/a&gt;&lt;/p&gt; 
</content> 
</entry> 
 
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:39</id>
 <title>Set up Tripwire on RedHat</title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/39_set_up_tripwire_on_redhat.html" /> 
  
 <modified>2005-12-15T21:45:38</modified> 
 <issued>2005-12-15T21:45:38</issued> 
 <created>2005-12-15T21:45:38Z</created> 
 <summary type="text/plain"> Install tripwire  It's installed by default, but if it isn't, grab your RedHat disks, and install it:  ---------------------  # rpm -ihv /mnt/cdrom/RedHat/RPMS/tripwire-2.3.1-5.i386.rpm # ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
RedHat 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;Install tripwire&lt;/p&gt;&lt;p&gt;It&#039;s installed by default, but if it isn&#039;t, grab your RedHat disks, and install it:&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt;# rpm -ihv /mnt/cdrom/RedHat/RPMS/tripwire-2.3.1-5.i386.rpm&lt;br /&gt;# /etc/tripwire/twinstall.sh&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt;Clean the policy file&lt;br /&gt;Go over to /etc/tripwire, and clean out the policy file with this handy script:&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt;# cat &amp;gt; ./cleantw.pl&lt;br /&gt;#!/usr/bin/perl&lt;/p&gt;&lt;p&gt;while (&amp;lt;&amp;gt;){&lt;br /&gt;#look at the line, and check for a line that can be&lt;br /&gt;    # Construed as a file name&lt;br /&gt;  CASE:{&lt;br /&gt;      ( m|(^s*)(/[/w._-]+)(s+-&amp;gt;.*)| ) and do {&lt;br /&gt;          print $1;&lt;br /&gt;          print &amp;quot;#&amp;quot; unless (-e $2);&lt;br /&gt;          print &amp;quot;$2$3n&amp;quot;;&lt;br /&gt;          last;&lt;br /&gt;      };&lt;/p&gt;&lt;p&gt;      print $_;&lt;br /&gt;  }&lt;br /&gt;};&lt;br /&gt;^D&lt;br /&gt;#&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p /&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;Now clean out the crap in the sample policy file they have.&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt; # perl cleantw.pl &amp;lt; twpol.txt &amp;gt; cleanedpol.txt&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt;Edit the file. You&#039;ll need to change the hostname that is defined somewhere around the 65th line to match what comes out of the &#039;hostname&#039; command. You&#039;ll also need to change some of the parameters for things that are monitored (Log rotating changes inodes for a given filename).&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt; /var/run -&amp;gt; $(SEC_INVARIANT)&lt;br /&gt; /var/log -&amp;gt; $(SEC_INVARIANT)&lt;br /&gt; /var/tty[1-8] -&amp;gt; $(SEC_INVARIANT)&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt;Finishing up&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt;# /usr/sbin/twadmin -m P cleanedpol.txt&lt;br /&gt;# /usr/sbin/tripwire --init&lt;/p&gt;&lt;p&gt;---------------------&lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.afonsoconsulting.com/&quot;&gt;http://www.afonsoconsulting.com/&lt;/a&gt;&lt;/p&gt; 
</content> 
</entry> 
 
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:38</id>
 <title>Chkrootkit</title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/38_chkrootkit.html" /> 
  
 <modified>2005-12-15T21:43:05</modified> 
 <issued>2005-12-15T21:43:05</issued> 
 <created>2005-12-15T21:43:05Z</created> 
 <summary type="text/plain"> Installing CHKROOTKIT   (Version 0.42b Sep 20 2003)  SSH as admin to your server. DO NOT use telnet  #Change to root su -      
 
    #Type the following wget ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
Security 
System 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;Installing CHKROOTKIT &lt;/p&gt;&lt;p&gt;(Version 0.42b Sep 20 2003)&lt;/p&gt;&lt;p&gt;SSH as admin to your server. DO NOT use telnet&lt;/p&gt;&lt;p&gt;#Change to root&lt;br /&gt;su -&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;#Type the following&lt;br /&gt;wget &lt;a href=&quot;ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz&quot;&gt;ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz&lt;/a&gt;&lt;/p&gt;&lt;p&gt;#Unpack the tarball using the command &lt;br /&gt;tar xvzf chkrootkit.tar.gz &lt;/p&gt;&lt;p&gt;#Change to the directory it created&lt;br /&gt;cd chkrootkit*&lt;/p&gt;&lt;p&gt;#Compile by typing&lt;br /&gt;make sense &lt;/p&gt;&lt;p&gt;#To use chkrootkit, just type the command&lt;br /&gt;./chkrootkit &lt;/p&gt;&lt;p&gt;#Everything it outputs should be &#039;not found&#039; or &#039;not infected&#039;... &lt;/p&gt;&lt;p&gt;#Now, &lt;br /&gt;cd .. &lt;br /&gt;#Then remove the .gz file&lt;br /&gt;rm chkrootkit.tar.gz &lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.cheetaweb.com/&quot;&gt;http://www.cheetaweb.com/&lt;/a&gt;&lt;/p&gt; 
</content> 
</entry> 
 
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:37</id>
 <title>Use SFTP (Secure FTP via SSH2) instead of FTP</title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/37_use_sftp_secure_ftp_via_ssh2_instead_of_ftp.html" /> 
  
 <modified>2005-12-15T21:41:52</modified> 
 <issued>2005-12-15T21:41:52</issued> 
 <created>2005-12-15T21:41:52Z</created> 
 <summary type="text/plain"> NOTE: If you have SSH set up on your server, your server is ready to be an SFTP server.  SFTP uses SSH.   What does this How-To show you?  a. How to install, setup and use an SFTP client to ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
System 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;NOTE: If you have SSH set up on your server, your server is ready to be an SFTP server.  SFTP uses SSH.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;What does this How-To show you?&lt;/p&gt;&lt;p&gt;a. How to install, setup and use an SFTP client to connect to your box using SSH2 to download/ upload files rather than FTP.&lt;/p&gt;&lt;p&gt;b. How to block port 21 (the default FTP port) which you don&#039;t need anymore.&lt;/p&gt;&lt;p&gt;c. How to uninstall and remove the FTP server from your box (if you don&#039;t need it anymore).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Why you should NOT use normal FTP&lt;/p&gt;&lt;p&gt;Most people use normal unsecure FTP do upload and download files to their servers using an FTP client from home.&lt;/p&gt;&lt;p&gt;The problem with this is that YOUR USERNAME AND PASSWORD are sent in PLAIN TEXT - a hacker can easily get this information and use it to gain access to your server.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;What is secure FTP or SFTP?&lt;p&gt;SFTP basically removes the need to use FTP, and instead uses SSH to connect to your server to upload or download files. Choose SSH2 to connect (as you should anyway with your SSH client) and your connection will be secure.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;What are the advantages of SFTP?&lt;/p&gt;&lt;p&gt;a. Your username and passwords are secure.&lt;/p&gt;&lt;p&gt;b. You can disable the FTP server - ftpd (proftpd or pure-ftpd) - on your server which should reduce server overhead. SFTP uses SSH to transfer files, not FTP.&lt;/p&gt;&lt;p&gt;c. You can block port 21 with your firewall. One less port to worry about.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Let&#039;s begin... &lt;/p&gt;&lt;p&gt;1. Download and install an SFTP client on your home computer.&lt;/p&gt;&lt;p&gt;You can use WS-FTP Pro, or CuteFTP Pro, which has SFTP built-in. I prefer to use a free open-source one called Filezilla which you can download and install here:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://sourceforge.net/project/show...lease_id=183014&quot;&gt;http://sourceforge.net/project/show...lease_id=183014&lt;/a&gt;&lt;/p&gt;&lt;p&gt;NOTE: Filezilla uses part of PUTTY to work, so you may need to install PUTTY on your computer too.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;2. Set up your SFTP client.&lt;/p&gt;&lt;p&gt;If you are using Filezilla:&lt;/p&gt;&lt;p&gt;a. Open the program.&lt;br /&gt;b. Click on Edit.&lt;br /&gt;c. Click on Settings.&lt;br /&gt;d. Open Connection tree.&lt;br /&gt;e. Click on SFTP settings.&lt;br /&gt;f. Leave Use Compression as default.&lt;br /&gt;g. Choose to Use SSH2 (a more secure SSH connection).&lt;br /&gt;h. Click OK.&lt;/p&gt;&lt;p&gt;i. Click on File.&lt;br /&gt;j. Click on File Manager.&lt;br /&gt;k. Click on New Site.&lt;br /&gt;l. Enter your server SSH IP address in Host.&lt;br /&gt;m. Choose SSH2 for ServerType - the port number should be 22.&lt;br /&gt;n. Change the port number if you have a custom one for SSH.&lt;br /&gt;o. Choose Normal for LogonType.&lt;br /&gt;p. Enter your SSH username and password.&lt;br /&gt;q. Click on Save and Exit.&lt;/p&gt;&lt;p&gt;Done! Try connecting to your server now via SSH2 using your SFTP client by clicking on the connect icon on the toolbar (most left). It should work. If it doesn&#039;t, check your Host SSH IP address again, Port number, Username and Password. Remember, it&#039;s the same settings as your SSH client (e.g. PUTTY).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;3. Block port 21 (the default FTP port) in your server using your favorite firewall.&lt;/p&gt;&lt;p&gt;If you are using APF 0.91:&lt;/p&gt;&lt;p&gt;Login using SSH as root and edit the apf config file by running this command:&lt;/p&gt;&lt;p&gt;pico -w /etc/apf/conf.apf&lt;/p&gt;&lt;p&gt;Find:&lt;/p&gt;&lt;p&gt;IG_TCP_CPORTS=&amp;quot;&lt;/p&gt;&lt;p&gt;and remove 21 from the list.&lt;/p&gt;&lt;p&gt;Then find:&lt;/p&gt;&lt;p&gt;EG_TCP_CPORTS=&amp;quot;&lt;/p&gt;&lt;p&gt;and remove 21 from the list.&lt;/p&gt;&lt;p&gt;Then find:&lt;/p&gt;&lt;p&gt;EG_UDP_CPORTS=&amp;quot;&lt;/p&gt;&lt;p&gt;and remove 21 from the list as well.&lt;/p&gt;&lt;p&gt;This will prevent port 21 from ever being used.&lt;/p&gt;&lt;p&gt;Don&#039;t forget to restart apf after this by running this command:&lt;/p&gt;&lt;p&gt;service apf restart&lt;/p&gt;&lt;p&gt;&lt;br /&gt;4. Remove the FTP server from your box by uninstalling FTP.&lt;/p&gt;&lt;p&gt;Login using SSH as root.&lt;/p&gt;&lt;p&gt;Find out what FTP server software you are using by running either commands:&lt;/p&gt;&lt;p&gt;service proftpd status&lt;/p&gt;&lt;p&gt;OR&lt;/p&gt;&lt;p&gt;service pure-ftpd status&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Then find out which RPM version of the software you are using by running either commands:&lt;/p&gt;&lt;p&gt;If you&#039;re using ProFTP run this:&lt;/p&gt;&lt;p&gt;rpm -qa | grep proftpd&lt;/p&gt;&lt;p&gt;Cut and paste the rpm name into your Notepad - you&#039;ll need it.&lt;/p&gt;&lt;p&gt;OR if you&#039;re using PureFTP run this:&lt;/p&gt;&lt;p&gt;rpm -qa | grep pure-ftpd&lt;/p&gt;&lt;p&gt;Cut and paste the rpm name somewhere.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Then run this command to uninstall FTP:&lt;/p&gt;&lt;p&gt;rpm -e (full rpm name)&lt;/p&gt;&lt;p&gt;Done!&lt;/p&gt;&lt;p&gt;Check to make sure if the FTP client has been uninstalled successfully by running this again:&lt;/p&gt;&lt;p&gt;service proftpd status&lt;/p&gt;&lt;p&gt;OR&lt;/p&gt;&lt;p&gt;service pure-ftpd status&lt;/p&gt; 
</content> 
</entry> 
 
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:36</id>
 <title>OpenSSH public key login (no password)</title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/36_openssh_public_key_login_no_password.html" /> 
  
 <modified>2005-12-15T21:37:41</modified> 
 <issued>2005-12-15T21:37:41</issued> 
 <created>2005-12-15T21:37:41Z</created> 
 <summary type="text/plain"> How to connect to your linux server using OpenSSH and public keys.  This is for OpenSSH2 protocol only !  Ok, here we go....  To generate keys on a linux desktop / workstation :  First, in a ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
SSH 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;How to connect to your linux server using OpenSSH and public keys.&lt;/p&gt;&lt;p&gt;This is for OpenSSH2 protocol only !&lt;/p&gt;&lt;p&gt;Ok, here we go....&lt;/p&gt;&lt;p&gt;To generate keys on a linux desktop / workstation :&lt;/p&gt;&lt;p&gt;First, in a local shell (on your machine as your normal user) you must generate your keys.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;ssh-keygen -q -t rsa -f $HOME/.ssh/id_rsa -C your_key_name_here&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;(replace your_key_name_here with your key name ;-) can be anything, just no spaces )&lt;br /&gt;You will be prompted for a passphrase, enter a sentence at least 10 or 15 words long that you will remember !&lt;br /&gt;&lt;br /&gt;You will be prompted again, re-enter the passphrase&lt;br /&gt;&lt;br /&gt;You then go back to the shell prompt.&lt;br /&gt;&lt;br /&gt;now you can go to ~/.ssh/ and see the files there :&lt;br /&gt;&lt;br /&gt;id_rsa&lt;br /&gt;id_rsa.pub&lt;br /&gt;known_hosts&lt;br /&gt;&lt;br /&gt;the id_rsa.pub is your public key.&lt;br /&gt;&lt;br /&gt;There are agents that can enter your passphrase for you automatically&lt;br /&gt;Check out &lt;a href=&quot;http://www.gentoo.org/proj/en/keychain.xml&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#22229c&quot;&gt;http://www.gentoo.org/proj/en/keychain.xml&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;or read this Redhat document fully&lt;br /&gt;&lt;a href=&quot;http://www.redhat.com/docs/manuals/...ent-config.html&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#22229c&quot;&gt;http://www.redhat.com/docs/manuals/...ent-config.html&lt;/font&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;###########################################&lt;br /&gt;&lt;br /&gt;To generate keys on a Windows desktop / workstation :&lt;br /&gt;&lt;br /&gt;Get puTTY from &lt;a href=&quot;http://www.chiark.greenend.org.uk/~...y/download.html&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#22229c&quot;&gt;http://www.chiark.greenend.org.uk/~...y/download.html&lt;/font&gt;&lt;/a&gt; &lt;br /&gt;Make sure you get the .exe files for puTTY, puttygen and pageant and also get the puttydoc.zip Unzip puttydoc and read the howtos in there as to generating your keys and using pageant. &lt;br /&gt;Then use the putty generated public key in the server side section of my howto.&lt;br /&gt;&lt;br /&gt;###########################################&lt;br /&gt;&lt;br /&gt;To install the public key on the server (either generated by puttygen or ssh-keygen)&lt;br /&gt;&lt;br /&gt;Log in as admin on the server.&lt;br /&gt;&lt;br /&gt;While still in /home/admin &lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;mkdir .ssh&lt;br /&gt;chmod 700 .ssh&lt;br /&gt;cd .ssh&lt;br /&gt;vi authorized_keys2&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;hit i then add &lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;ssh-rsa&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;followed by a space, then paste in your public key &lt;/p&gt;&lt;p&gt;( tip: vi the id_rsa.pub on your local machine and copy the contents, including the name at the end that you gave it , but be careful not to get any line breaks when you copy, it should be just one line)&lt;/p&gt;&lt;p&gt;Now hit Esc, then hit :wq to save and exit&lt;/p&gt;&lt;p&gt;then&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;chmod 600 authorized_keys2&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;now su - to root&lt;br /&gt;enter&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;service sshd restart&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;Then logout from the server.&lt;/p&gt;&lt;p&gt;Log back in in the usual way, but now you will be asked for the passphrase.&lt;/p&gt;&lt;p&gt;Seems silly, but bear in mind that you are not sending the passphrase out over the net, it all takes place on your machine.&lt;/p&gt;&lt;p&gt;If you want to limit the connection for this key to your own hostname / ip address (client machine or for server to server) just add &lt;/p&gt;&lt;p&gt;host=xxx.xxx.xxx.xxx&lt;/p&gt;&lt;p&gt;before the ssh-rsa in authorized_keys2 , remembering to leave a space before ssh-rsa&lt;/p&gt;&lt;p&gt;(the x&#039;s being your ip or just enter your hostname if its real !)&lt;/p&gt;&lt;p&gt;ie &lt;/p&gt;&lt;p&gt;host=192.168.10.1 ssh-rsa pasteyourkeyhereexamplekeytextexamplekeytext your_key_name&lt;/p&gt;&lt;p&gt;&lt;br /&gt;It&#039;s done :-)&lt;/p&gt;&lt;p&gt;If you specify dsa in the keygen you will generate a DSA key, just remember to change rsa to dsa everywhere in this how to, except in the authorized_keys2 file where it should be ssh-dss&lt;/p&gt;&lt;p&gt;This howto should work for any linux servers with a reasonably current version of OpenSSH installed, and assuming that you haven&#039;t changed the authorization config to prevent key logins.&lt;/p&gt;&lt;p&gt;If the key login fails, you will still be able to use your password as normal ;-)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;To disable password based logins :&lt;/p&gt;&lt;p&gt;Once you have the keys generated, set up on the server and you have tested the system, you can disable keyboard based logins.&lt;/p&gt;&lt;p&gt;This ensures that only the public key holders can ssh into the server.&lt;/p&gt;&lt;p&gt;ssh into the server as admin then,&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;su -&lt;br /&gt;vi /etc/ssh/sshd_config&lt;br /&gt;/#PasswordAuthentication&lt;br /&gt;i&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;remove the # (uncomment the line) and change yes to no&lt;/p&gt;&lt;p&gt;hit Esc&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;:wq&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;then restart sshd&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;service sshd restart&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p /&gt; 
</content> 
</entry> 
 
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:35</id>
 <title>Easy CURL 7.10.4 w/SSL </title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/35_easy_curl_7104_wssl_.html" /> 
  
 <modified>2005-12-15T21:35:04</modified> 
 <issued>2005-12-15T21:35:04</issued> 
 <created>2005-12-15T21:35:04Z</created> 
 <summary type="text/plain"> We've put together these RPM's for libcurl 7.10.2 with SSL support. They upgrade over the stock RH ones. Installation is via rpm -Uvh  Applicability (RH 7.2 / 7.3 required) :  Webppliance 3.1 ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
Cpanel 
RedHat 
Ensim 
Plesk 
Webppliance 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;We&#039;ve put together these RPM&#039;s for libcurl 7.10.2 with SSL support. They upgrade over the stock RH ones. Installation is via rpm -Uvh&lt;/p&gt;&lt;p&gt;Applicability (RH 7.2 / 7.3 required) :&lt;/p&gt;&lt;p&gt;Webppliance 3.1&lt;br /&gt;Webppliance Pro 3.5&lt;br /&gt;cPanel 6&lt;br /&gt;Plesk 5.0 &lt;/p&gt;&lt;p&gt;These are also Modernbill compatible on all above panel types.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;Downloadables:&lt;/p&gt;&lt;p&gt;curl-7.10.4-1.i386.rpm&lt;br /&gt;curl-devel-7.10.4-1.i386.rpm&lt;/p&gt;&lt;p&gt;MD5 Checksums&lt;/p&gt;&lt;p&gt;37a04f7db8c34fddbb309d067d16a453 curl-7.10.4-1.i386.rpm&lt;br /&gt;e09253b7c227573f4e5b10d3987f433b curl-devel-7.10.4-1.i386.rpm&lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.cheetaweb.com/&quot;&gt;http://www.cheetaweb.com/&lt;/a&gt;&lt;/p&gt; 
</content> 
</entry> 
 
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:34</id>
 <title>APF Firewall 0.9.4-7</title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/34_apf_firewall_094-7.html" /> 
  
 <modified>2005-12-15T21:32:07</modified> 
 <issued>2005-12-15T21:32:07</issued> 
 <created>2005-12-15T21:32:07Z</created> 
 <summary type="text/plain"> Just thought I'd update the howto's for APF.  Type ifconfig  Find out if it’s using eth0 or eth1.  Usually its eth0 but if its not, change it in conf.apf or you’ll be completely blocking the ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
Cpanel 
Security 
Plesk 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;Just thought I&#039;d update the howto&#039;s for APF.&lt;/p&gt;&lt;p&gt;Type ifconfig&lt;/p&gt;&lt;p&gt;Find out if it’s using eth0 or eth1.&lt;/p&gt;&lt;p&gt;Usually its eth0 but if its not, change it in conf.apf or you’ll be completely blocking the server from access&lt;/p&gt;&lt;p&gt;wget &lt;a href=&quot;http://www.rfxnetworks.com/downloads/apf-current.tar.gz&quot;&gt;http://www.rfxnetworks.com/downloads/apf-current.tar.gz&lt;/a&gt;&lt;/p&gt;&lt;p&gt;tar -xvzf apf-current.tar.gz&lt;br /&gt;cd apf*&lt;br /&gt;./install.sh&lt;br /&gt;pico -w /etc/apf/conf.apf&lt;/p&gt;&lt;p&gt;RESV_DNS=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;All SYSCTL options should be set to 1 EXCEPT for&lt;br /&gt;SYSCTL_OVERFLOW=&amp;quot;0&amp;quot;&lt;br /&gt;SYSCTL_SYNCOOKIES=&amp;quot;0&amp;quot;&lt;/p&gt;&lt;p&gt;USE_DS=&amp;quot;1&amp;quot;&lt;br /&gt;USE_AD=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;FOR PLESK:&lt;p&gt;IG_TCP_CPORTS=&amp;quot;20,21,22,25,53,80,110,143,443,465,993,995,8443&amp;quot;&lt;br /&gt;IG_UDP_CPORTS=&amp;quot;37,53,873&amp;quot;&lt;/p&gt;&lt;p&gt;EGF=&amp;quot;1&amp;quot;&lt;br /&gt;EG_TCP_CPORTS=&amp;quot;20,21,22,25,53,37,43,80,113,443,465,873&amp;quot;&lt;br /&gt;EG_UDP_CPORTS=&amp;quot;53,873&amp;quot;&lt;/p&gt;&lt;p&gt;For CPANEL:&lt;/p&gt;&lt;p&gt;IG_TCP_CPORTS=&amp;quot;20,21,22,25,53,80,110,143,443,993,995,2082,2083,20 86,2087,2095,2096&amp;quot;&lt;br /&gt;IG_UDP_CPORTS=&amp;quot;37,53,873&amp;quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;EGF=&amp;quot;1&amp;quot;&lt;br /&gt;EG_TCP_CPORTS=&amp;quot;20,21,22,25,37,53,43,80,113,443,465,873,2087,2089&amp;quot;&lt;br /&gt;EG_UDP_CPORTS=&amp;quot;53,873&amp;quot;&lt;/p&gt;&lt;p&gt;apf –s to start firewall.&lt;/p&gt;&lt;p&gt;If you are not kicked out of SSH and you can type commands after it loads, that means it’s installed correctly.&lt;/p&gt;&lt;p&gt;pico -w /etc/apf/ad/conf.antidos&lt;/p&gt;&lt;p&gt;LP_KLOG=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;USR_ALERT=&amp;quot;1&amp;quot;&lt;br /&gt;USER = “root”&lt;br /&gt;ARIN_ALERT=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;pico -w /etc/apf/conf.apf&lt;/p&gt;&lt;p&gt;change DEVM to 0&lt;/p&gt;&lt;p&gt;apf -r&lt;/p&gt; 
</content> 
</entry> 
 
 <entry> 
 <id>tag:post:www.booservers.com,2005-12-15:33</id>
 <title>Antidos via APF Firewall</title> 
 <link rel="alternate" type="text/html" href="http://www.booservers.com/archivo/33_antidos_via_apf_firewall.html" /> 
  
 <modified>2005-12-15T21:30:45</modified> 
 <issued>2005-12-15T21:30:45</issued> 
 <created>2005-12-15T21:30:45Z</created> 
 <summary type="text/plain"> Antidos is a really nice feature of the APF firewall, but it's not automatically turned on when you install and run APF.  First you probably want to make sure APF is running nicely for a few days ...</summary> 
 <author> 
  
 <name>Luigi Ramone</name> 
 <url>http://www.booservers.com</url> 
 <email>info@boonic.com</email> 
</author> 
<dc:subject>
Security 
</dc:subject> 
 <content type="text/html" mode="escaped" xml:lang="en" xml:base="http://www.booservers.com"> 
 &lt;p&gt;Antidos is a really nice feature of the APF firewall, but it&#039;s not automatically turned on when you install and run APF.&lt;/p&gt;&lt;p&gt;First you probably want to make sure APF is running nicely for a few days and you have your own IP listed in the &amp;quot;allow_hosts.rules&amp;quot; file so you can&#039;t lock yourself out. You also want to understand how to access the EV1 remote console (from your EV1 account manager), just in case you do lock yourself out.&lt;/p&gt;&lt;p&gt;And to be even more safe, lets set DEVEL_MODE to &amp;quot;1&amp;quot; (on) and we need to setup USE_AD to enable the use of antidos, so find and edit these:&lt;/p&gt;&lt;p&gt;pico -w /etc/apf/conf.apf&lt;/p&gt;&lt;p&gt;DEVEL_MODE=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;USE_AD=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;apf -r&lt;/p&gt;&lt;p&gt;Now APF will quit in 5 minutes. Don&#039;t forget to put DEVEL_MODE back when everything is OK!&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;Your server will not be firewalled after 5 minutes! If you are under attack right now this might not be such a good thing to disable.&lt;/p&gt;&lt;p&gt;If you installed APF with the normal installer most of the settings for antidos should be OK. We only need to change a few things, find and change these:&lt;/p&gt;&lt;p&gt;pico -w /etc/apf/ad/conf.antidos&lt;/p&gt;&lt;p&gt;LP_KLOG=&amp;quot;1&amp;quot;&lt;br /&gt;IPT_BL=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;USR_ALERT=&amp;quot;1&amp;quot;&lt;br /&gt;USER = “root”&lt;br /&gt;ARIN_ALERT=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;You can test run it manually (it&#039;s just a shell script):&lt;/p&gt;&lt;p&gt;/etc/apf/ad/antidos -a&lt;/p&gt;&lt;p&gt;It doesn&#039;t say anything if it liked the config file and your system, and if you ran it for the first time, you will find it created a blank log file at:&lt;/p&gt;&lt;p&gt;/var/log/apfados_log&lt;/p&gt;&lt;p&gt;You need to have antidos set to run via cron. If you have &amp;quot;crontab -e&amp;quot; all set up you can use that to set it up. Some panels let you edit the root cron job file from the panel.&lt;/p&gt;&lt;p&gt;This is a critical setup point, if not done, antidos will simply not operate.&lt;/p&gt;&lt;p&gt;Here&#039;s an example line, I added this to my root crontab:&lt;/p&gt;&lt;p&gt;*/2 * * * * /etc/apf/ad/antidos -a &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;/p&gt;&lt;p&gt;This will run antidos every two minutes. The author of antidos doesn&#039;t recommend running it once a minute as it may cause a bottleneck for itself and the CPU. Likewise running it beyond a period of once every 5 minutes is not recommended either, for obvious reasons.&lt;/p&gt;&lt;p&gt;You can check to see if it&#039;s being run with something like this:&lt;/p&gt;&lt;p&gt;tail -30 /var/log/cron&lt;/p&gt;&lt;p&gt;Now restart apf again:&lt;/p&gt;&lt;p&gt;apf -r&lt;/p&gt;&lt;p&gt;Try to access a few of your sites and if you are not locked out and happy with everything you can set DEVEL_MODE to &amp;quot;0&amp;quot; (off) :&lt;/p&gt;&lt;p&gt;pico -w /etc/apf/conf.apf&lt;/p&gt;&lt;p&gt;DEVEL_MODE=&amp;quot;0&amp;quot;&lt;/p&gt;&lt;p&gt;apf -r&lt;/p&gt;&lt;p&gt;&lt;br /&gt;At this point it would be nice to test to see if it actually works, I leave that up to you to figure out how or maybe someone else can post some ideas. I would be very careful, you don&#039;t want to DOS the wrong server.&lt;/p&gt;&lt;p&gt;If for some reason you find out it&#039;s locking the wrong people out and want to turn it off, take this line out of root cron:&lt;/p&gt;&lt;p&gt;*/2 * * * * /etc/apf/ad/antidos -a &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;/p&gt;&lt;p&gt;And blank out this file:&lt;/p&gt;&lt;p&gt;/etc/apf/ad/ad.rules&lt;/p&gt;&lt;p&gt;You can look in the log file to see what went wrong:&lt;/p&gt;&lt;p&gt;/etc/apf/ad/apfados_log&lt;/p&gt;&lt;p&gt;And don&#039;t forget to restart apf:&lt;/p&gt;&lt;p&gt;apf -r&lt;/p&gt;&lt;p&gt;&lt;br /&gt;For more info on the settings, see the doc files at:&lt;br /&gt;&lt;a href=&quot;http://rfxnetworks.com/apf.php&quot;&gt;http://rfxnetworks.com/apf.php&lt;/a&gt;&lt;/p&gt; 
</content> 
</entry> 
 
</feed>