I neen help, well really I need a script that parses
this file (
mirror) and adds these ip's or ip ranges to be rejected to/by IPTABLES?
Any Help?
Here's a bit of what's inside:
002.001.000.085 - 002.001.000.085 , 000 , Fake File servers AP2P
003.001.000.060 - 003.001.000.060 , 000 , Fake File servers AP2P
003.001.000.251 - 003.001.000.251 , 000 , Fake File servers AP2P
004.000.038.034 - 004.000.038.036 , 000 , s0.micromend.bbnplanet.net AP2P
004.000.038.042 - 004.000.038.052 , 000 , s0.wbcsanfran.bbnplanet.net AP2P
004.000.038.058 - 004.000.038.060 , 000 , s0.verizonlegaldpt.bbnplanet.net AP2P
004.000.038.074 - 004.000.038.080 , 000 , s0.bdai12.bbnplanet.net AP2P
004.000.038.086 - 004.000.038.088 , 000 , s0.wennersf.bbplanet.net AP2P
004.000.038.114 - 004.000.038.120 , 000 , multilink1.cityofsm.bbnplanet.net AP2P
004.000.038.254 - 004.000.038.255 , 000 , multilink0.art3.bbnplanet.net AP2P
004.000.159.038 - 004.000.159.040 , 000 , s0.leo3.bbnplanet.net(lawenforcement online) AP2P
004.000.181.086 - 004.000.181.088 , 000 , s0.CR2.bbnplanet.net AP2P
004.000.242.066 - 004.000.242.080 , 000 , s0.animationtech.bbnplanet.net AP2P
I't could be somenthing like:
New line?, do I find a valid IP here? IP-range?, then a coma?, then 000?, ok then add it to IPTABLBES to be DROPED, end of line? then.....
New line?, do I find a valid IP here? IP-Range?, then a coma?, then 000?, ok then add it to IPTABLBES to be DROPED, end of line? then.....
More or less like this?
Thanks! It would help a lot...