Page 1 of 1

QoS: Typo in bittorrent.pat

Posted: Mon Jun 03, 2013 10:41 am
by ericwong
I noticed there is a bug fix here for bittorrent.pat which is not implemented in the bittorrent.pat in the latest Gargoyle build.
The bittorrent filter is missing a "pipe": The subpattern

get /scrape\?info_hash=get /announce\?info_hash=

needs a pipe before the second "get"

get /scrape\?info_hash=|get /announce\?info_hash=
http://l7-filter.clearfoundation.com/tr ... .php?id=12

Anyone have any idea what this fix might do?
I hope it will help to identify more Bittorrent traffic correctly :)

Re: QoS: Typo in bittorrent.pat

Posted: Tue Jun 04, 2013 9:52 am
by jorgemiguel4
It's a OR condition, so router will look for:
get /scrape\?info_hash=
OR
get /announce\?info_hash=

If one matches, it assumes that's a bittorrent packet.

Re: QoS: Typo in bittorrent.pat

Posted: Wed Jun 05, 2013 7:33 am
by pbix
I have no idea what this "fix" might do but l7 pattern matching is in general not reliable. The l7-filter site http://l7-filter.clearfoundation.com/do ... t#archives has largely fallen silent in recent years because of lack of interest.

While one developer has made changes to the patterns in the svn as recently as 2011 there have been no official releases of l7-filter since 2009. OpenWRT uses the official releases of such upstream packages and until/if there is an official release that contains the latest stuff there will be nothing new in l7-filter land.

Gargoyle users interested in trying new pattern files can copy them into the l7-filter directory on their routers.