???????IP???????
??????????????????IP??????????????IP?????????????????????????????????к??????????????????????????????????????????????????????????????IP?????????IP???С?
???????????????iblocklist.com?????????????????????в??????????????????????汾??P2P?????
??????????????????????iblocklist2ipset????Python????????P2P???????????????IP????
???????????????????pip???ο????????????pip????
?????????????????iblocklist2ipset??
????$ sudo pip install iblocklist2ipset
???????Щ???а???Fedora?????????????У?
????$ sudo python-pip install iblocklist2ipset
?????????iblocklist.com?????κ????P2P?б??URL??????”level1″?б????

???????URL????????????С?
????$ iblocklist2ipset generate
????--ipset banthis "http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz"
????> banthis.txt
???????????????????????????????banthis.txt??????????????????????????????Щ??
????create banthis hash:net family inet hashsize 131072 maxelem 237302
????add banthis 1.2.4.0/24
????add banthis 1.2.8.0/24
????add banthis 1.9.75.8/32
????add banthis 1.9.96.105/32
????add banthis 1.9.102.251/32
????add banthis 1.9.189.65/32
????add banthis 1.16.0.0/14
????????????????ipset??????????????????
????$ sudo ipset restore -f banthis.txt
?????????????????????IP????
????$ sudo ipset list banthis
??????д??????????“level1”????????237??000?????ε?IP?б?????????????IP??????????IP???????
?????????????iptables????????????Щ??????
???????
????????????У?????????????????????ipset?????β??????IP?????????????????????iblocklist2ipset???????????????????????IP?????б??????Щ??ipset??????????????????????????iptables????ú?????ipset??????????????????????????

??????????????????????