December 5, 2014
Find Trojan dan Spam Scripts
October 30, 2014
August 27, 2014
December 10, 2013
Domain Control Panel
duoserversindonesia.com
http://domcenter.duoserversindonesia.com/
http://domainpanel.duoserversindonesia.com
Indonitahost/lancarhost
http://indonitahost.myorderbox.com
October 28, 2011
login webmail Internal Server Error User is over quota
cPanel show this message:
login webmail Internal Server Error User is over quota
but disk space is not full
cd /var/cpanel/overquota/
ls cpusername
if found, delete it
November 13, 2009
Detect DDOS Attack in Linux
This is a simply command in Linux to check the no. of connection opened per IP.
/bin/netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -nr |more
Detect size of transfer
iftop -i interface
Auto block DDOS IP ((D)DoS-Deflate)
http://deflate.medialayer.com/
mod_evasive
http://www.eth0.us/mod_evasive
September 24, 2009
Upgrade Linux kernel howto
Q. How do I upgrade Linux kernel? I would like to upgrade kernel w/o compiling from source code i.e. binary upgrade. How do I perform the actual upgrade of the kernel in Linux?
A. You need to compile kernel only if
=> You need custom made kernel for specific task such as embedded kernel
=> You need to apply specific patch to Linux
Upgrade of the kernel in Red Hat enterprise Linux version <= 4.x
If your system is registered with Red Hat Network (RHN), then you can use the up2date command as follows:
# up2date -f kernel
For SMP kernel (multi core or multiple CPU) use command:
# up2date -f kernel-smp
Upgrade of the kernel in Fedora Linux / CentOS / RHEL 5
Use yum command to upgrade kernel:
# yum update kernel
If you have downloaded RPM file use rpm command:
# rpm -ivh kernel*
Upgrade of the kernel in Debian or Ubuntu Linux
Use apt-get command. First find your kernel version:
$ uname -r
Next find available kernel images:
$ apt-cache search kernel-image
Now install kernel by explicitly specifying version number:
# apt-get install kernel-image-x.x.x-xx
OR
$ sudo apt-get install kernel-image-x.x.x-xx
http://www.cyberciti.biz/faq/linux-kernel-upgrade-howto/
August 16, 2009
R=lookuphost defer (-1): lowest numbered MX record points to local host
If you are testing an email problem and see this error:
R=lookuphost defer (-1): lowest numbered MX record points to local host
This means the domain name is not listed in /etc/localdomains
You generally can fix this by running /scripts/mailperm
If not, you should check /var/cpanel/users/USERNAME and make sure there is a DNS line in for this domain name and it is not along the lines of XDNS
Example
root@server8 [~]# mail -v test@server.com Subject: test test . Cc: LOG: MAIN <= root@server.server8.com U=root P=local S=391 root@server8 [~]# delivering 1K2CMu-0004PY-F4 LOG: MAIN lowest numbered MX record points to local host: server.com LOG: MAIN == test@server.com R=lookuphost defer (-1): lowest numbered MX record points to local host LOG: MAIN Frozen
source: http://wiki.cpaneldirect.net/wiki/index.php/R%3Dlookuphost_defer_%28-1%29:_lowest_numbered_MX_record_points_to_local_host
June 12, 2009
Backup MX Servers
A Backup MX Server is a mail server that will store (spool) your incoming email if your primary mail server becomes unavailable. A mail server can become unavailable to receive incoming mail for a number of reasons. A few examples are:
- Hardware or software failure
- Very busy and unable to receive new incoming connections, or emails
- Network connection is down or saturated
- Network routing issues can also cause your mail server to become unavailable
Case 1 – No Backup MX
If you do not have a Backup MX Server, the following conditions may occur:
- Email will be bounced (Returned to Sender)
- Your (inbound) email will cause a backup in the originating mail server’s spool
- Service Timeout; Depending on the Retry attempts by the originating mail server, your mailboxes may never receive their incoming email
- Users do not understand bounce messages; To most users, bounce messages are unreadable, so when they can’t send an email, they do not try to resend.
Case 2 – With a Backup MX
How Email works when a Backup MX Server is involved:
- User sends an email to ‘user@example.com’ (a mailbox hosted by your Server)
- Their mail server looks up the MX Records for ‘example.com’ and finds two:
- IP: x.x.x.x Weight: 10
- IP: y.y.y.y Weight: 20
- Their mail server first attempts to connect to: x.x.x.x
- Connection fails, which could be caused by any of the above conditions)
- They try to connect to the secondary MX record: y.y.y.y
- They successfully connect to this server.
- Email transmission begins, and the Backup MX Server receives the email into its spool.
- Since there are no existing local domains on this server, this backup server will stores this email in its spool.
- Based off of the Retry Attempts, backup server will continue to try and make connections to your Primary Mail Server.
- Backup server will only make 4 retry attempts. It is recommended that you set the last attempt to a longer timeframe, i.e., 24 hours (1440 minutes)
- This way backup server does not send a Bounce Message to the originator saying that it could not deliver the message, before your Primary Server is back online.
- If your Primary Mail Server comes back online before the final Retry Attempt, you can reset the Retry Counts on all messages in the spool. This will force the Backup MX Server to try forwarding all existing mail in the spool back to your Primary Mail Server.
Configuring a Backup MX Server
- Add a placeholder domain (called “example.com”) to open up the port to listen on.
- Configure backup server by adding the IP addresses to which delivery should be allowed.
- In general settings, change the delivery retry times to 10, 10, 10, and 1440.
- In DNS, add secondary MX records pointing to the new server’s IP. Set the preference value higher than the main MX record.
May 1, 2009
Show User Process
ps -aux | grep user| cut -c 9-14
eval ps ax|grep "user"|grep -iv "grep"| awk '{print $1}'