The Network People Support Forums

Mail::Toaster => General Questions => Topic started by: D3s7 on October 24, 2006, 06:51:32 AM

Title: Black lists - Country of origin
Post by: D3s7 on October 24, 2006, 06:51:32 AM
I apologize if I'm missing a simple solution to this problem but what I am attempting to do is to block out email that is coming in from specific or better all but specific countries of origin.

One of the services that I have for my personal email has this capability and I'm assuming they do it by originating IP.

Is there a blacklist service or add on to the blacklist packages that allows this functionality?

Even on a crude method, is there a list of IP's to lookup that I can just add to the FW to keep them from connecting?

Any info would be appreciated

Thank you

Title: Re: Black lists - Country of origin
Post by: matt on October 24, 2006, 02:32:11 PM
there are firewalls expressly or this purpose.

You can also use something like Geo::IP to look up the country, but you'd have a little work on your hands to get that integrated.
Title: Re: Black lists - Country of origin
Post by: D3s7 on November 09, 2006, 10:43:34 AM
Thanks... I somewhat figured that be the answer but was holding hope there was something I was missing :)
Title: Re: Black lists - Country of origin
Post by: twa on November 11, 2006, 04:09:45 AM
Just to follow up:

There's a DNS zone called countries.nerd.dk which supposedly lists all the world's IP addresses by country. Just put the ISO country code in front of the zone name and use it for whatever you want. I'm using it to whitelist Norwegian IP-addresses (long story) in the smtp run file.

Examples:

China: cn.countries.nerd.dk
Romania: ro.countries.nerd.dk
Korea: kr.countries.nerd.dk

And so on and so on. This zone's been up for a couple of years without service interruption.