Linux-Tip News

We are proud to present Linux-Tip Europe. This page is designed to provide the Linux users community (not only in Europe) with news and articles that are of interest to them. It works by allowing members of the community to submit news and articles relating to Linux hardware and software. This same community can then decide what tips should be promoted based on what they consider to be the most important or interesting to the community by voting stories up and down. Stories that receive enough votes are promoted to the Linux-Tip Europe homepage. Bookmark and Share
 
Home
Tip: Blocking IP address of any country with iptables Print E-mail
Thursday, 19 February 2009
This short article shows you how to automatically create iptables rules to block all connection from one country or more. The blocklist is create with an API I wrote and you can use wget to update the blocklist monthly. The API to get the IP addresses to block. First you need to know the code (ISO 3166 format) of the country you would like to block.

Once you have the country code, you can now get the list at the following url (Afghanistan and Argentina in this example). If your browser show the data on a single line, simply view the page source code :


Read more at Marc's Linux howtos

 

 
< Prev   Next >

Virus Info Feed

Alexa Traffic Stats

Sedo - Domains kaufen und verkaufen das Projekt linux-tip.eu steht zum Verkauf Besucherstatistiken von linux-tip.eu etracker® Web-Controlling statt Logfile-Analyse
Urlaub Spanien