
is used two times, most likely from two filter rules) and has 3 entries (i.e. It shows that the list named "ipfilter" is loaded to a certain memory address, is active, has reference count 2 (i.e. The output looks something like this:Ġx8218a4a0, active 1, refcnt 2, 3 entries You can list the iplists currently loaded with the command "spd showiplists". You can switch off the dumping by setting "spd gset fwlog 0". To re-load the block lists on demand use "spd reload -iplist".īlocked packets will be dumped to text file FWLOG.TXT like all other firewalled packets. This can take some short time, so it is only done when cFosSpeed is loaded or on demand. Since the lists are so big, they have to be read into memory from disk and compiled. Using too many and/or inappropriate lists may seriously degrade. The process of reloading them will, for a short time, allocate three times as much. Warning: pgl may block your complete network/internet access after you installing PeerGuardian. We worked with lists that needed 2mb of memory. Each line with an IP-range needs 8 bytes. The block lists can be quite big and consume a lot of memory. This is the Emule format:įrom-address - to-address Īnd this is the Protowall/Peerguardian format: However, this rule is not active by default, since no IP block list file is set up.Ĭurrently two IP-range file-formats are supported. This iplist is used by default to filter packets to the drop queue, i.e. This will read both files and make them available as iplist named 'ipfilter'. You can put this section in user.ini, so it will not be overwritten with the next cFosSpeed update. When compiling the lists, duplicate entries are removed and the whole list is sorted and optimized. You can have more than one list with different names and each list can be made up of more than one file. 'listname' is used to filter for the IP-addresses listed in 'filename'. The section contains lines in the format "listname=filename". These block lists are not supplied with cFosSpeed. In the section in settings.ini or user.ini you must specify the iplist names with the corresponding IP block list files that contain the IP-ranges to be blocked. The default name used in settings.ini is "ipfilter". The -s-iplist and -d-iplist filter accept the iplist name as second parameter. s-iplist matches the source IP address against a given list, -d-iplist the destination IP address. They are already set by default in settings.ini. We call those lists "iplists".ĬFosSpeed supports these iplists through two filter expressions: -s-iplist and -d-iplist. All traffic to or from one of the listed addresses is blocked. In order to filter for huge amounts of IP-ranges, cFosSpeed has support for IP-range files like ipfilter.dat the same way IP-Blockers like Protowall and Peerguradian support them. I would like if somebody could make it working, the version reference on sourceforge. + def next3(self): #how to call this for "ranges" times? + raise PGException(_("Unexpected end of file")) Raise PGException(_("Invalid version") + " %d" % ver) +# Incrementally reads PeerGuardian blocklists v1, v2 and v3.ĭef _init_(self, -36,9 +36,33 = self.fd.read(1) # Incrementally reads PeerGuardian blocklists v1 and v2.

Code: Select all diff -ruN deluge-1.3.11-old/deluge/plugins/blocklist/blocklist/peerguardian.py deluge-1.3.11-new/deluge/plugins/blocklist/blocklist/peerguardian.py
