![]() |
quick and dirty perl peerguardian to phex IP block list converter it's not polished at all and frankly I don't know if it's even importing the entirety of the massive peerguardian list, but I made it and figured maybe some others would use it too. Don't blame me if anything bad happens, this program was written hastily for my own use. It WILL NOT warn you if you attempt to overwrite an existing file! The only potentially dangerous line is the one where you set the output file path. GET IT RIGHT! For this reason i'm leaving it without a file path prompt, hoping that people smart enough to edit the line of code will be smart enough not to overwrite their files. This program is also not smart enough to keep your existing rules so you will have to redo them. For those adventurous enough to try it, just place the code into a file(.pl extension on windows), set the paths, and run it from DOS prompt(assuming Perl is installed). Linux users will need to put in the shebang line cuz i'm too lazy to. I tried to comment as best I could but the programming is still hackish and kinda hard to understand. Theres also a good chance I created a couple syntax errors while transferring it to the forum. Perhaps a good future Phex feature(haha that rhymes) would be to support importing peerguardian block lists? I would probably do it but I can't program C :(. Code: open (FROM,'C:/documents and settings/bob/desktop/list.p2p');#change this to the path of the exported peerguardian list |
Great work thanks... Phex currently compiles its security rules from bluetack.co.uk. It merges ranges from the following lists: Hijacked IP Blocks IANA Reserved Level 1 Blocklist Spyware List Not sure how much overlapping it has with peerguardian. Here is the file that shoes the complete blocked ranges used: http://svn.sourceforge.net/viewvc/ph...fg?view=markup BTW: You can remove the lower part of your script which adds "the default rules that came set on my phex". They are only used to store the trigger count across Phex sessions. Phex will still add its default rules when you remove these lines. The only thing you loose is the trigger count, which is only used for display/user information purpose. Also note that Phex handles type 2 (ip/mask) slightly more performant then type 3 (ranges) addresses. It could make a difference on large lists. |
All times are GMT -7. The time now is 06:04 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2020 Gnutella Forums.
All Rights Reserved.