Linux

iptables v1.3.5: Couldn’t load match `statistic’

 

Getting error in iptables ?

use below steps to get it resolved

yum -y update

iptables -m statistic -h

modprobe -l |grep statistic

rpm -q iptables

wget http://pkgs.org/centos-5-rhel-5/centalt-x86_64/ipt_statistic-0.1-1.el5.x86_64.rpm.html

wget http://pkgs.org/centos-5-rhel-5/centalt-x86_64/ipt_statistic-0.1-1.el5.x86_64.rpm

wget http://centos.alt.ru/repository/centos/5/x86_64/centalt-release-5-3.noarch.rpm

rpm -Uvh centalt-release*rpm

 


How to mitigate DDOS ?

Getting DDOS from rival companies ?

Even we had but we do have a tachnique to mitigate its impact

Use the below IPTABLES rule on your server and it should get mitigated

A INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –set
/sbin/iptables -A INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –update –seconds 8 –hitcount 13 -j DROP

You can contact us for any assistance for any issues related to Linux.

 

Comments Off more...

Limit connection on port 80 using IPTABLES

iptables -I INPUT -p tcp –dport 80  -i eth0 -m state –state NEW -m recent  –update –seconds 60 –hitcount  5 -j DROP

This will allow only 5 connection simultanously from per IP.

This can also be to stop ddos attack on webserver.

 

 

 


How to increased /tmp space on live server ?

Looking to increase the /tmp on the linux server?

or getting frequent Mysql error due to /tmp running out of steps ?

below are the steps to increased /tmp partition,

##Stop Mysql in server##

/etc/init.d/mysql stop
###Find and kill the tailwatchd process###

pstree -p | grep tailwatchd
kill -9  < process ID>

#### Copy the /tmp to backup###

cp -prf /tmp /tmp.bak

###Set the /tmp to 2GB now###

dd if=/dev/zero of=/usr/tmpDSK bs=1024k count=2048

###Now find the size of tmp partition###

du -sch /usr/tmpDSK

### unmount /tmp partition

umount /tmp

###Format the /tmp partition###

mkfs -t ext3 /usr/tmpDSK

###Remount in secure environment###

/scripts/securetmp

###Now check size it should be 2GB###

df -h

 


enable EPEL repository on Linux

Few modules or rpm are only available in EPEL repository

To get it via yum and install you need to first enable EPEL in your  system

Below are the steps to enabled it

wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

  1. Run the rpm install command
    rpm -Uvh epel-release-5*.rpm

Configure EPEL Repository

  1. Open the EPEL repository file
    /etc/yum.repos.d/epel.repo
  2. Set priority for the EPEL repository
    Add priority=3 to the end of the [epel] section

Now you can run and install the required modules using yum

Did this like this post /help you in any ways ?

We also offer cheap managed vps solutions at Hillock Hosting.

http://hillockhosting.com

 

 


checking for SSL headers… configure: error: Cannot find ssl headers

checking for type of socket size… size_t
“checking for SSL headers… configure: error: Cannot find ssl headers”

Getting above error on installing nrpe plugin on centos ?

Use below libraries to fix it

[root@nagios nrpe-2.12]# yum install openssl-devel

Once this is installed you can go ahead and configure NRPE plugin for nagios

Comments Off more...

/usr/bin/ld: cannot find -lglut

Use below command to fix the issue of “/usr/bin/ld: cannot find -lglut”

yum install  glut-devel

once done you can carry ahead the compilation :)

Comments Off more...

vzquota : (error) quota file is corrupted

if you get error “vzquota : (error) quota file is corrupted”

Use below commands,

[root@server9 lock]# vzquota off 5000

vzquota : (error) quota file is corrupted

[root@server9 lock]# vzquota drop  5000

[root@server9 lock]# vzctl start 5000
Starting container …
Initializing quota …

Now wait for quota to get recreated :)

Comments Off more...

vzquota : (error) can’t lock quota file, some quota operations are performing for id

if you get error “vzquota : (error) can’t lock quota file, some quota operations are performing for id”

vzquota : (error) can’t lock quota file, some quota operations are performing for id 5000
vzquota on failed [7]

use below commands to check the process which has locked it

[root@server9 lock]# ps ax | grep vzctl
10400 pts/0    T      0:00 vzctl start 5000

#  kill -9 10400

Now restart VPS using vzctl restart 5000  where 5000 is the VEID :)

 

 

Comments Off more...

550 Access denied Invalid HELO name in outlook

If you’re getting the error ” 550 Access denied Invalid HELO” when sending out email in out look . Please double check your email setting to use the following

For outlook

  1. Click Tools then E-mail Accounts…
  2. Select “View or change existing e-mail accounts” and click Next
  3. Select the email account and click Change
  4. Click on “More settings”
  5. Select “Outgoing Server” tab
  6. Tick “My outgoing server (SMTP) requires authentication”
  7. Select “Use same settings as my incoming email server”
  8. Click Ok
  9. Press Next
  10. Lastly, press Finish

 

This will fix the issue and can send mails now :)

 

 

Comments Off more...

Hillock's Wiki

Unlimited Hosting Solutions
  • Categories

  • Twitter Updates

    • Calendar

      February 2012
      M T W T F S S
      « Aug    
       12345
      6789101112
      13141516171819
      20212223242526
      272829  
    • SMS Text Message

      Phone number

      Carrier

      *Standard text messaging rates may apply from your carrier*
    • © 2011 Hillock Hosting. All rights reserved
      Jarrah theme by Templates Next | Powered by WordPress