LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2012, 09:53 AM   #1
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
How to block protocol via squid


Assalam o Alaikum.

Q1. How to block particular protocol via squid?

Q2. Which protocol is used by torrent?

Note: I don't want to block .torrent file to download. But I want to block its protocol
 
Old 10-05-2012, 09:59 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
torrents don't use HTTP proxies, so an HTTP proxy like squid can't block it. You would block them at firewall level.
 
Old 10-05-2012, 10:43 AM   #3
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
Ok but on some website I read that it require BitTorrent protocol for peer-to-peer share en.wikipedia.org/wiki/BitTorrent


What will your suggestion?

Last edited by uk.engr; 10-05-2012 at 10:44 AM.
 
Old 10-05-2012, 11:22 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,956

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by uk.engr View Post
Ok but on some website I read that it require BitTorrent protocol for peer-to-peer share en.wikipedia.org/wiki/BitTorrent

What will your suggestion?
As acid_kewpie said, you block torrents from the firewall level. Specifically an layer 7 filter is what you'll need to block bittorrent downloads. This has been asked and answered many times on this site before.

Squid is an HTTP proxy....so if a protocol is NOT HTTP, there's little Squid can do.
 
Old 10-07-2012, 02:45 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by uk.engr View Post
Ok but on some website I read that it require BitTorrent protocol for peer-to-peer share en.wikipedia.org/wiki/BitTorrent


What will your suggestion?
That's not a "but", that's just slight description of what bittorrent is, and I'd like to think we all know what it is already.
 
1 members found this post helpful.
  


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
block yahoo messenger protocol via iptables nima0102 Linux - Networking 1 03-07-2009 12:08 PM
easy way to block guntella protocol yawe_frek Linux - Security 4 06-04-2007 01:45 PM
Can you block programs (like p2p) by protocol examining? servnov Linux - Networking 3 10-02-2005 05:33 PM
IPTables to block IP protocol ppuru Linux - Security 3 06-26-2004 03:20 AM
Is that a good thing to block ICMP protocol on a Web server? Iced Earth Linux - Security 2 06-15-2004 07:49 AM


All times are GMT -5. The time now is 07:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration