How to use iptables to rate-limit packet storms

Network Probes are part and parcel of being on the Internet, some of them are just “port probes”, some are more malicious, being a constant stream of attempts to login to a service, either way Linux provides a way to limit or ‘throttle’ the rate of these undesirable connections and TCP sessions to your servers, through the IP Tables ‘Limit’ module.

Here’s a quick list of iptables commands that you can load to restrict connections to (say) a POP3 Mail Server port and please contact us if you’d like more information or help with setting up some Rate Limiting on your Network Presence server (VPS or Colo).

1) Confirm your iptables has the ‘limit’ module available by getting it loaded to list its ‘help’ command list with:

iptables -m connlimit --help

If that errors, then you may not (yet) have the Connection Limit module installed to your iptables and please check your Linux distribution’s Repositories to install the module (it’s available for most Linux Distributions).

Do note that the following rules do also require the ‘Connection Tracking’ (conntrack) iptables module as well.

2) The methodology is to load limit logging and drop rules to the top of the INPUT chain, viz:

iptables -I INPUT 1 -p tcp -m tcp --dport 110 --syn -m connlimit --connlimit-above 3 -j LOG --log-prefix RATELIMIT_POP3
iptables -I INPUT 2 -p tcp -m tcp --dport 110 --syn -m connlimit --connlimit-above 3 -j DROP

The above will limit new connections to the POP3 server port (110) and over-rate connections will be logged with a ‘tag’ of “RATELIMIT_POP3” (so they can be easily identified) and then those new connection packets will be dropped.

If you’d like more information or help on loading IP Tables rules and rate limits, please feel free to contact us.

FYI and regards,
Richard.

Posted in Network Presence | Tagged , , | 1 Comment

Weekly Tweets for 2012-06-10

  • All VPS Plans at Network Presence include the following listed features. http://t.co/n6PJPaTG #NetPres #cloud #
  • All our VPS Plans have IPv6 available. http://t.co/n6PJPaTG #IPv6 #NetPres #
  • 4th June '12 AM Primary Link OK. Apologies for any service interruption. HT @netpresops #
  • 4th June '12 AM RT @netpresops: Affected network is being routed to 2nd'ary links. Primary Link will resume shortly. Please standby.. #
  • Issues noted via @netpresops. Please call if concerned & remediation underway. #NetPres #
  • Interesting ZDNet Australia "Twisted Wire" podcast re: Australia's Cloud & NZ potential. http://t.co/a8P77STH #

Powered by Twitter Tools

Posted in Tweets | Comments Off on Weekly Tweets for 2012-06-10

All VPS Plans at Network Prese…

All VPS Plans at Network Presence include the following listed features. http://t.co/n6PJPaTG #NetPres #cloud

Posted in Network Presence, Tweets | Tagged | Comments Off on All VPS Plans at Network Prese…

1GB RAM, dual CPU and fast Disk VPS for under $20/month

Our new “Value” VPS Plans are selling well and did you know that you can combine our “Value VPS #1” Plan with our “Double your RAM” offer to get a fast VPS with 1GB of RAM, dual CPUs and fast Disk for under $20 / month?

You can and here’s how to do it:

1) Signup and pay your first month’s subscription for one of our “Value VPS #1” Plan at http://netpr.es/value1

2) In our subsequent email contact, you’ll be advised that any VPS Order with over 500MB of RAM will get its RAM doubled, nothing you need to do.

3) Enjoy your fantastic value and fast VPS that costs under $20 / month!

Nice and easy with great “bang per buck” for your Australian VPS, that’s the way we do it at Network Presence.

Posted in Network Presence, Sales | Tagged , | Comments Off on 1GB RAM, dual CPU and fast Disk VPS for under $20/month

SSL Certificate and its install included in our Managed VPS Plans

Our Managed VPS Plans are popular and with more and more websites wanting SSL, we’re now including the purchase of an SSL Certificate for your first SSL site (renewed each year) with any of our Managed VPS Plans, and of course the installation and setup of that SSL Cert to your site running on your VPS.

This provides you with a cost-effective and ready-to-go fully capable web site hosting platform, in the form of a supported and fast VPS by Network Presence.

We love providing customised VPS features and plans, so if our listed VPS Plans don’t quite suit your requirements, then please do contact us to ask for a quote to suit you.

Regards,
Richard.

Posted in Network Presence, Sales | Tagged , , , | 2 Comments

All our VPS Plans have IPv6 av…

All our VPS Plans have IPv6 available. http://t.co/n6PJPaTG #IPv6 #NetPres

Posted in Tweets | Comments Off on All our VPS Plans have IPv6 av…

4th June ’12 AM Primary Link O…

4th June ’12 AM Primary Link OK. Apologies for any service interruption. HT @netpresops

Posted in Tweets | Comments Off on 4th June ’12 AM Primary Link O…

Issues noted via @netpresops. …

Issues noted via @netpresops. Please call if concerned & remediation underway. #NetPres

Posted in Tweets | Comments Off on Issues noted via @netpresops. …

Interesting ZDNet Australia “T…

Interesting ZDNet Australia “Twisted Wire” podcast re: Australia’s Cloud & NZ potential. http://t.co/a8P77STH

Posted in Tweets | Comments Off on Interesting ZDNet Australia “T…

Weekly Tweets for 2012-06-03

Powered by Twitter Tools

Posted in Tweets | Comments Off on Weekly Tweets for 2012-06-03