This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.
| « | May 2008 | » | ||||
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Install Mailscanner MRTG
Email with attachments from command line
Easy Mailscanner + Clam Antivirus + SpamAssassin *Updated 5/9/2003*
Set up Tripwire on RedHat
Chkrootkit
Use SFTP (Secure FTP via SSH2) instead of FTP
OpenSSH public key login (no password)
Easy CURL 7.10.4 w/SSL
APF Firewall 0.9.4-7
Antidos via APF Firewall
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 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.
PREREQUISITES
1) MRTG *MUST* be installed (HOW-TO)
2) Mailscanner *MUST* be installed (I use gpans MS/SA/CM HOW-TO, but there is a MS Only HOW-TO too)
INSTRUCTIONS
cd ~
wget http://umn.dl.sourceforge.net/sourc...rtg-0.05.tar.gz
tar -xzvf mailscanner-mrtg-0.05.tar.gz
cd mailscanner-mrtg-0.05
cp mailscanner-mrtg.conf /etc/MailScanner/
cp mailscanner-mrtg.cfg /etc/mrtg/
cp mailscanner-mrtg /usr/sbin/
cp mailscanner-mrtg.include /etc/httpd/conf/
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bk
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 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.
Simple text emails:
You can send simple emails by using the already installed sendmail program with the following command at the prompt:
echo "Simple, small body Text goes here" | mail -s "The Subject goes here" user@domain.com
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:
mail -s "The Subject goes here" user@domain.com < text_file
Disadvantage: the email will be sent using header From: root@host.domain.com
(More)
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
Clam Antivirus 0.60
SpamAssassin 2.55
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.
This package does not use f-prot as you need a commercial license for use in a business environment.
(More)
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
# /etc/tripwire/twinstall.sh
---------------------
Clean the policy file
Go over to /etc/tripwire, and clean out the policy file with this handy script:
---------------------
# cat > ./cleantw.pl
#!/usr/bin/perl
while (<>){
#look at the line, and check for a line that can be
# Construed as a file name
CASE:{
( m|(^s*)(/[/w._-]+)(s+->.*)| ) and do {
print $1;
print "#" unless (-e $2);
print "$2$3n";
last;
};
print $_;
}
};
^D
#
---------------------
(More)
Installing CHKROOTKIT
(Version 0.42b Sep 20 2003)
SSH as admin to your server. DO NOT use telnet
#Change to root
su -
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 connect to your box using SSH2 to download/ upload files rather than FTP.
b. How to block port 21 (the default FTP port) which you don't need anymore.
c. How to uninstall and remove the FTP server from your box (if you don't need it anymore).
Why you should NOT use normal FTP
Most people use normal unsecure FTP do upload and download files to their servers using an FTP client from home.
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.
(More)
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 local shell (on your machine as your normal user) you must generate your keys.
(More)
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
Webppliance Pro 3.5
cPanel 6
Plesk 5.0
These are also Modernbill compatible on all above panel types.
(More)
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 server from access
wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz
tar -xvzf apf-current.tar.gz
cd apf*
./install.sh
pico -w /etc/apf/conf.apf
RESV_DNS="1"
All SYSCTL options should be set to 1 EXCEPT for
SYSCTL_OVERFLOW="0"
SYSCTL_SYNCOOKIES="0"
USE_DS="1"
USE_AD="1"
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 and you have your own IP listed in the "allow_hosts.rules" file so you can'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.
And to be even more safe, lets set DEVEL_MODE to "1" (on) and we need to setup USE_AD to enable the use of antidos, so find and edit these:
pico -w /etc/apf/conf.apf
DEVEL_MODE="1"
USE_AD="1"
apf -r
Now APF will quit in 5 minutes. Don't forget to put DEVEL_MODE back when everything is OK!
(More)
How to automatically ban abusive ip's using fail2ban
Originally from Ensim 4.0; similar steps had to be taken after the upgrade to 4.0.2; I would assume the same follows until python 2.3 is included [it may already be; corrections welcome].
Fail2Ban scans log files like /var/log/pwdfail or /var/log/apache/error_log and bans IP that makes too many password failures. It updates firewall rules to reject the IP address.
(More)
Ensim
I'm not going to handle Ensim again since gpan made a nice Howto on this issue and even created
rpms for your usage all information can be found here.
After installing it you can also do the proftpd.conf tweak but you have todo pico -w /etc/proftpd.conf
note:
1. that i can't give any support on the rpm made by gpan, so that will have to go through him.
2. Mouse is against upgrading your ProFTPd on Ensim when you run a up to date 3.1.x and 3.5.x
Plesk
Nighthawk just said to me that this is actually a bad idea for Plesk.
Nighthawk has years of experience with Plesk so i fully support what he's saying about Plesk whatsoever .
So your officially warned by me and NightHawk so dont do this howto on your system.
You will destroy it otherwise but you can do the proftpd.conf tweak without a problem, so just skip most of this how-to and usage pico -w /etc/proftpd.conf instead just like Ensim.
What is tcpdump?
Tcpdump prints out what traffic is going inbound/outbound including headers.
Why should i usage tcpdump?
tcpdump is nice to monitor your network.
Download:
Redhat 9:
wget ftp://rpmfind.net/linux/redhat/9/en....7.2-1.i386.rpm
Redhat 8:
wget ftp://rpmfind.net/linux/redhat/upda....8.0.3.i386.rpm
We've put together some of the more frequently used SSH commands or linux shell commands, and organized them by name so you can easily find a command, their description and how to use it. This guide will continue to be updated and should not be considered a complete list of SSH commands or linux shell commands, but commands, we found, often used. If you would like to add to this guide, please email us and let us know. (More)
Updated for latest kernel (RH 7.3):
2.4.20-24.7
This is the way I did it - I went to 2.4.20-18.7 first, then went to 2.4.20-20.7. (in any case I am running 2.4.20-20.9 which is the latest for RH 9 - this How-To assumes you are running RH 7.3, but the steps are the same).
This section has 2 parts:
If you are running a kernel that is OLDER THAN 2.4.20-18.7 run PART A first, then PART B.
If you are already running 2.4.20-18.7, go straight to Part B.
(More)
December 2005
November 2005
September 2005
Apache [4]

CentOS [1]

Cpanel [13]

DNS [1]

Ensim [3]

Fedora [1]

Mail [3]

Plesk [3]

RedHat [5]

Sales [4]

Security [6]

SQL [1]

SSH [3]

SSL [1]

Streaming audio [1]

System [10]

Webppliance [1]

Boonic Net
Apple
Audio y Video
Bloogo
Boonic Argentina
Boonic Brasil
Boonic Business
Boonic Castellano
Boonic English
Cámaras Digitales
Celulares
Cine - Música
Computadoras
Hoteles Argentina
Ipod Brasil
Ipod en Castellano
Juegos Flash
Letras gratis
Mega Notebooks
PlayStation
Software
Letras de Canciones
Diccionario Ciencia
Hoteles Salta
Hoteles Jujuy