Monthly Archives: December 2009
Qmail whitelist IP from RBL checks
In hsphere you can whitelist an IP from RBL checks by using the following: Edit/Create the file: /hsphere/local/var/vpopmail/etc/tcp.smtp Add the following: #whitelist IP addresses $IP1:allow,RBLSMTPD=”” $IP2:allow,RBLSMTPD=”” Then: Recompile via Command Line option cd /hsphere/local/var/vpopmail/etc/ /hsphere/shared/bin/tcprules tcp.smtp.cdb tcp.smtp.tmp < tcp.smtp
Number of connections from an IP
We have seen a huge increase in individual servers/IP’s attempting to flood a server or brute force a particular account. Here’s a great way to check the number of connections being made from each IP that is connected to your server: netstat -an|awk ‘{print $5}’|cut -d “:” -f1|sort|uniq -c|sort -n We will post an automated …
DSM password protect folder
The Alabanza system uses the DSM and a custom control panel. Here’s how to password protect a folder in their system: You cannot password protect specific files, instead you must password protect an entire folder and then any files within it are automatically password protected. For example – here’s your folder structure: /home/user/domain-www the domain-www …
critical_create No space left on device
Recently we attempted to restart apache on a client’s server and we received the following error: critical_create(): semget() failed: No space left on device Although the error hinted at a disk space issue it actually had nothing to do with the available disk space. To resolve this you have two options: 1.) You could reboot …
Restrict SSH access by IP
The best way to restrict SSH access by IP is by using the server’s hosts.allow and hosts.deny file. First open the /etc/hosts.allow file and add the IP’s you would like to allow: Format – one IP per line: SSHD: $IP #Reason Example: SSHD: 1.1.1.1 #Client 1 The hosts.allow file will have to be updated in …
Linux version
Try logging into the server via SSH and then running: cat /etc/issue
IP classes defined
Here’s a simple chart that explains the various IP classes and the difference between /32, /24, /16 77.217.66.0/32 = 77.217.66.0 through 77.217.66.0 [1 IP – Single IP] 77.217.66.0/31 = 77.217.66.0 through 77.217.66.1 [2 IPs] 77.217.66.0/30 = 77.217.66.0 through 77.217.66.3 [4 IPs] 77.217.66.0/29 = 77.217.66.0 through 77.217.66.7 [8 IPs] 77.217.66.0/28 = 77.217.66.0 through 77.217.66.15 [16 IPs] …
Linux set hostname
First login to the server via SSH. Then run: hostname $servername Update the hosts file – Look for the primary IP of the server. Follow the same format and replace the old hostname with the new hostname on the same line as the primary IP. vi /etc/hosts Update your network file with the new hostname: …
Protect /home from prying eyes
Disable directory indexing
The easiest way to disable directory indexing is to update/create a .htaccess. Add the following to a .htaccess file within your primary web folder: Options -Indexes
- English Support
- 24/7 x 365
- Branded Support
- Reduced Overhead
- Linux Experts
- Friendly Staff