<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Implementing Torrent Blocking with Layer7]]></title><description><![CDATA[<p dir="auto">I'm trying to implement bit torrent blocking with the help of Layer 7, to no avail.</p>
<p dir="auto">What I've done so far:-</p>
<p dir="auto">Created a L7 group, added a rule for bittorrent - action - block.</p>
<p dir="auto">I've created a rule in Floating table on the lan interface, action: pass, direction: any, protocol tcp/udp, source: any, dest: any, Layer 7: aforementioned L7 group.</p>
<p dir="auto">This does not seem to function - uploads seem slow for the torrents, but I do not know if this is a coincidence or not.</p>
<p dir="auto">I've tried clearing the state table as well as adding http to the rule and testing, with no results.</p>
<p dir="auto">I'm unsure what else to try? Is it a case that it's doing a fair job of blocking uploads, or is it just not working at all?</p>
<p dir="auto">As another route, I tried the traffic shaping wizard (multi-lan, single-wan), setup p2p catch all and gave it 2%. The trouble is that this seemed to apply to all traffic - including HTTP.</p>
]]></description><link>https://forum.netgate.com/topic/39070/implementing-torrent-blocking-with-layer7</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 23:56:40 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/39070.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Nov 2011 12:23:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Implementing Torrent Blocking with Layer7 on Sat, 12 Nov 2011 12:36:41 GMT]]></title><description><![CDATA[<p dir="auto">In other threads there were discussions about only allowing ports which are in general only used for legal traffic (http,https,pop3,…) and the same for traffic shaper.<br />
Giving high priority to "legal" traffic and only low priority for "unknown" traffic.</p>
<p dir="auto">This will not block torrent at all but perhaps slow down it.</p>
<p dir="auto">For blocking other downloads I am using squid and squidguard and blocking <em>torrent</em> in URL and the well known filehoster as rapidshare, uploaded.to and so on.</p>
<p dir="auto">There are some (free) blacklists for squidguard but they are blocking oftem more than I just want to.<br />
You can give it a try of course!</p>
<p dir="auto"><a href="http://www.shallalist.de/" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.shallalist.de/</a><br />
<a href="http://urlblacklist.com/" target="_blank" rel="noopener noreferrer nofollow ugc">http://urlblacklist.com/</a></p>
]]></description><link>https://forum.netgate.com/post/304144</link><guid isPermaLink="true">https://forum.netgate.com/post/304144</guid><dc:creator><![CDATA[Nachtfalke]]></dc:creator><pubDate>Sat, 12 Nov 2011 12:36:41 GMT</pubDate></item><item><title><![CDATA[Reply to Implementing Torrent Blocking with Layer7 on Sat, 12 Nov 2011 01:45:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I do indeed remember.</p>
<p dir="auto">That is interesting.</p>
<p dir="auto">Have you looked in to any other solutions for Torrent blocking? P2P catchall doesn't seem to be working for me, and appears to have a fairly serious impact on HTTP throughput.</p>
<p dir="auto">Is there perhaps a squid blacklist for known torrent-sites and trackers?</p>
]]></description><link>https://forum.netgate.com/post/304112</link><guid isPermaLink="true">https://forum.netgate.com/post/304112</guid><dc:creator><![CDATA[mikeh]]></dc:creator><pubDate>Sat, 12 Nov 2011 01:45:13 GMT</pubDate></item><item><title><![CDATA[Reply to Implementing Torrent Blocking with Layer7 on Fri, 11 Nov 2011 18:07:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">we talked on IRC some hours ago.</p>
<p dir="auto">I did a new test on my system with blocking http traffic on layer7. This is what I did:</p>
<p dir="auto">1. FIREWALL -&gt; Traffic Shaper -&gt; Layer7<br />
2. Create Layer7 rule<br />
3. Enable<br />
protocol: http<br />
structure: action<br />
behaviour: block<br />
4. Save</p>
<p dir="auto">Create a firewall rule on LAN tab on top of all other rules with protocol TCP/UDP and then scroll down to advanced options and select the layer7 container you created for http blocking.<br />
No need for floating rules!</p>
<p dir="auto">This is working for me. Test with:</p>
<p dir="auto">http://www.google.de<br />
and<br />
https://www.google.de</p>
<p dir="auto">The same way I configured traffic shaper for bittorrent but it is not working.<br />
As I said on IRC this depends how the bittorrent client establishes connection. Often it is encrypted and so the layer7 filters could not work.</p>
]]></description><link>https://forum.netgate.com/post/304056</link><guid isPermaLink="true">https://forum.netgate.com/post/304056</guid><dc:creator><![CDATA[Nachtfalke]]></dc:creator><pubDate>Fri, 11 Nov 2011 18:07:29 GMT</pubDate></item></channel></rss>