Hi Rene, hi folks! rene marhold wrote:
. . . <snip> last night i found an list on ripe where to see all countries and ther ip ranges http://www.ripe.net/ripencc/mem-services/general/allocs4.html with an awk script i cut out everything but ips
I don't know how you would deny (see subject) a _whole country_ -- for (maybe I'm wrong) there are only /some/ IP-Adresses (~spaces) shown, that are "...allocated by local internet registries..." (I'm quite sure, that there aren't _all_ IP-Adresses/Ranges ...)
. . . <snip> other question, someone now how to expand 212.30/19 with awk to an complete ip like 212.30.0.0/19 into an whole list?? . . . <snip>
There are (too) many documents everywhere, to see how IP works! As I understand your question right -- a (very, very) short description: 212.xxx.xxx.xxx means it's a 'Class-C'-Network (IP-Range from 192.x.x.x to 224.x.x.x) /19 means that there are _19_ bits for the net & the remaining for the hosts \_____________/ | ·--> if you suppose, that 'normally' for a 'Class-C'-Net the netmask is /24 you'll realize that /19 is a 'shorten' netmask! In this case (see above) /many/ 'Class-C'-Adresses are collected to 'one' (WELCOME to the wonderful world of SUBNETTING & SUPERNETTING <g>!) At this point, you're entering the *heavy*(?) part of IP-Adressing! Back to your question: the IP-Adress-range for /Guernsey Telecoms/ is from 212.30.0.0 = 'Network'-Adress to 212.30.31.255 = 'Broadcast'-Adress (for this net!) with the max. No. of hosts = 8190 (adresses) IMHO the list is a (really) good starting for denying a complete 'provider' -- if you will do so! Not more! If you are spammed by clients -->> you can 'nuke' the _provider_ not a complete country! HTH (???) CU -- best greetings from Solingen /GERMANY Dieter Hürten