Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

I am looking for an open source firewall with country based ip blocking feature for Linux OS.

share|improve this question

closed as not constructive by AviD Oct 3 '12 at 18:57

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Hi sampath, welcome to Information Security. Please see the FAQ, and also read How to Ask - product recommendation questions are not a good fit for our site (or really any SE site...). –  AviD Oct 3 '12 at 18:57

2 Answers 2

  1. iptables
  2. Access to a geolocation database. As far as I'm aware, these all come with a fee. https://www.google.com/search?q=ip+geolocation
  3. A shell script.
share|improve this answer
1  
+1 and see this page for a sample script and free source of geo-ip data: cyberciti.biz/faq/block-entier-country-using-iptables –  Colin Pickard Oct 3 '12 at 16:58

ipinfodb.com has a free geolocation database that can be used to get IP addresses per country. There's a bash script for using this database with iptables on this page.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.