LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-24-2012, 07:11 AM   #1
mail2ganesh.cse
Member
 
Registered: Apr 2012
Posts: 65

Rep: Reputation: Disabled
Unhappy How to block the torrent downloads on Squid


i want to block the torrent downloads totally in my squid server,

Pls help to sort this
 
Old 04-24-2012, 07:17 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
why don't you google?
http://serverfault.com/questions/115...loads-by-squid
 
Old 04-24-2012, 07:29 AM   #3
mail2ganesh.cse
Member
 
Registered: Apr 2012
Posts: 65

Original Poster
Rep: Reputation: Disabled
i tried it, but still being downloading and also i have Forigate 110C hardware Firewall,, and i don know how to block on that....
 
Old 04-24-2012, 10:16 AM   #4
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Rep: Reputation: 31
even if you block downloads with a .torrent extension you can still use torrent applications, you're going to want to look into blocking common ports associated with various torrent applications like vuze or transmission

but even then you can set those apps to use any port number...correct me if im wrong on this
 
Old 04-24-2012, 10:18 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by mail2ganesh.cse View Post
i want to block the torrent downloads totally in my squid server,
Pls help to sort this
Spell out your words. And the short answer is, you DON'T block torrents via Squid. Squid is an HTTP proxy server...torrent's do NOT run on that port, so they can't be BLOCKED by that. Putting "linux block bittorrent downloads" into Google pulls up lots, as does searching this very site, since this has been asked (and answered) many times:
http://serverfault.com/questions/270...-p2p-protocols

You need an L7 filter. Squid can block the .torrent file types, but that's pointless. All anyone has to do is copy the URL into any bittorrent downloader, and download away.
Quote:
Originally Posted by mail2ganesh.cse
i tried it, but still being downloading and also i have Forigate 110C hardware Firewall,, and i don know how to block on that....
If you have that firewall, then why don't you learn how to use it??? You've got it, along with the manuals and access to their tech support. Trying to implement another solution, because you don't want to learn the one you have seems a bit wasteful.
 
1 members found this post helpful.
Old 04-24-2012, 03:41 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Might need a layer 7+ firewall.

Opps, didn't notice that was posted already.

Last edited by jefro; 04-25-2012 at 03:15 PM.
 
Old 04-27-2012, 02:05 AM   #7
mail2ganesh.cse
Member
 
Registered: Apr 2012
Posts: 65

Original Poster
Rep: Reputation: Disabled
thanks all.. i tried using the acl coding to block the torrent downloads in squid......
its working over my coporate.. thanks to Linux technology...
 
Old 04-27-2012, 03:56 AM   #8
mail2ganesh.cse
Member
 
Registered: Apr 2012
Posts: 65

Original Poster
Rep: Reputation: Disabled
Dear all,,

We don't need the 7+ filter to block the torrent downloads on squid.....

we can do it in acl itsef... i did it and its working now on my corporate office, hence No one is not able to download the torrents.... even i blocked the ultra surf in acl itself... so tottally they are under our Linux Technology..
 
Old 04-27-2012, 02:49 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by mail2ganesh.cse View Post
Dear all,,

We don't need the 7+ filter to block the torrent downloads on squid.....

we can do it in acl itsef... i did it and its working now on my corporate office, hence No one is not able to download the torrents.... even i blocked the ultra surf in acl itself... so tottally they are under our Linux Technology..
No, you can't. What you blocked was the torrent FILE TYPES and/or a few torrent sites. Get a URL to a torrent, and paste it into your torrent downloader, and watch it work.
 
1 members found this post helpful.
Old 04-29-2012, 09:06 AM   #10
mail2ganesh.cse
Member
 
Registered: Apr 2012
Posts: 65

Original Poster
Rep: Reputation: Disabled
hi,

i have checked it its totally torrent downloads blocked on my network and hence i have copied the torrent file link from my data card and download started in my Lan proxy. its not downloading.... i was suprised... its working successfuly..
 
Old 04-30-2012, 01:21 PM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by mail2ganesh.cse View Post
hi,

i have checked it its totally torrent downloads blocked on my network and hence i have copied the torrent file link from my data card and download started in my Lan proxy. its not downloading.... i was suprised... its working successfuly..
No idea what you're saying by "copied the torrent file link from my data card and download started in my lan proxy". HOW did you copy the link? To what "data card"? What program are you using to download? Again, if you're doing it THROUGH A WEB BROWSER, you're blocking the file type. If you put the URL of the torrent into a bittorrent client, be using a different port, unless the ONLY ports you're allowing out are 80 and 443. If that's the case, then yes, it will block torrents...and also anything ELSE that doesn't use those ports.
 
Old 05-01-2012, 02:44 AM   #12
mail2ganesh.cse
Member
 
Registered: Apr 2012
Posts: 65

Original Poster
Rep: Reputation: Disabled
we can, blocke the torrent client applications and i have speciefied both torrent client download and torrent file download on my acl,... it tottally prevent from the torrent downloading.. and i have checked even by giving the torrent link to the client to download.. its getting error...
 
1 members found this post helpful.
Old 05-01-2012, 10:05 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by mail2ganesh.cse View Post
we can, blocke the torrent client applications and i have speciefied both torrent client download and torrent file download on my acl,... it tottally prevent from the torrent downloading.. and i have checked even by giving the torrent link to the client to download.. its getting error...
Oh? Then you'd be the first to come up with a way to block torrents via ACL on Squid. Could you post the relevant parts of your ACL?
 
1 members found this post helpful.
Old 05-01-2012, 10:08 AM   #14
mail2ganesh.cse
Member
 
Registered: Apr 2012
Posts: 65

Original Poster
Rep: Reputation: Disabled
wil post the squid config, by tmorrw,, today i m in half... not at office...
 
1 members found this post helpful.
Old 08-08-2012, 10:37 PM   #15
Hira Inam
LQ Newbie
 
Registered: Aug 2012
Posts: 15
Blog Entries: 3

Rep: Reputation: Disabled
Can anyone tell me how to limit downloading in squid ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Squid to block downloads bryanmuts2000 Linux - Newbie 5 10-05-2011 09:15 AM
How to block Bit Torrent and Bit Commet like softwares using Squid mianmajidali Linux - Server 1 01-07-2010 01:28 PM
Torrent downloads blocking Febi881 Linux - Security 11 10-21-2009 05:24 AM
Controlling torrent downloads with cron Grizz54 Linux - Networking 3 09-21-2008 06:33 AM
Slackware 12.1 torrent downloads cd/dvd onebuck Slackware 65 05-06-2008 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration