• Home
  • Contact
  • Log in
 
« The China+Google KerfuffleEnd Of The Semester »

IPTables Blocking Of Countries

01/07/10

Permalink 06:00:12 pm, by stjeanp Email , 70 words   English (US) latin1
Categories: Computers

IPTables Blocking Of Countries

I've been hacking around with this for a while now and have it in a workable state.  It's a script that grabs the latest netblocks for the configured countries from IPDeny.com and loads them in to IPTables rules.  It's perl and depends on you having the IPTables::IPv4 module installed, but it's fast and just blocking China and Korea has cut way down on my spam and intrusion attempts.

 

 

Attachments:

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)