LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-10-2014, 11:34 PM   #1
ishanbhardwaj390
LQ Newbie
 
Registered: Jan 2014
Posts: 1

Rep: Reputation: Disabled
Unhappy blocking social networking sites


how i block bit torrent & social networking sites on centos 4"" help me""
 
Old 01-10-2014, 11:46 PM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Hi. This link could be useful: http://www.linuxquestions.org/questi...et-4175469542/ to start... best wishes and have fun.
 
Old 01-12-2014, 01:28 AM   #3
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
for blocking social site with below setting

blockfiles urlpath_regex -i "/etc/squid/blocks.files.acl
badsites dstdomain "/etc/squid/badsites
badwords url_regex -i "/etc/squid/badwords""

##should be above of of acl before allow
http_access deny badwords
http_access deny blockfiles
http_access deny badsites


######EXAMPLE BELOW #######
acl CONNECT method CONNECT
http_reply_access deny flash
http_access deny badwords
http_access deny blockfiles
http_access deny badsites
http_access allow internet
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports


for blocking torrent download can try through delay pool & iptables
http://linuxgazette.net/108/odonovan.html
http://www.squid-cache.org/Doc/config/delay_parameters/
 
1 members found this post helpful.
Old 01-15-2014, 09:10 AM   #4
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 pantdk View Post
for blocking social site with below setting

blockfiles urlpath_regex -i "/etc/squid/blocks.files.acl
badsites dstdomain "/etc/squid/badsites
badwords url_regex -i "/etc/squid/badwords""

##should be above of of acl before allow
http_access deny badwords
http_access deny blockfiles
http_access deny badsites


######EXAMPLE BELOW #######
acl CONNECT method CONNECT
http_reply_access deny flash
http_access deny badwords
http_access deny blockfiles
http_access deny badsites
http_access allow internet
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
...and there are also examples in the Squid documentation, at the Squid website that explain all of this is more detail.
Quote:
for blocking torrent download can try through delay pool & iptables
http://linuxgazette.net/108/odonovan.html
http://www.squid-cache.org/Doc/config/delay_parameters/
Sorry, no. You CANNOT BLOCK TORRENTS with squid. The best you can do is block downloading of a .torrent file type, but this has been asked (and answered), MANY times on this site. Squid is an HTTP proxy...which means it works on HTTP...not torrent, SSH, email, or any other protocol. To block torrents, you need a layer 7 filter, which is NOT part of squid. You can implement them in software or with a purpose-built hardware device, both of which are easy to find with a brief Google search.
 
Old 01-17-2014, 06:04 PM   #5
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
yes torrent is using random port which may not possible to block but if your not using the hardware firewall then we can try this with iptables. this is not a permanent solution agreed

Last edited by pantdk; 01-17-2014 at 06:08 PM.
 
  


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
LXer: Social networking platform eXo Social released LXer Syndicated Linux News 0 05-17-2010 07:00 PM
squid 2.6 not blocking sites even i entered ACL to block sites mohantorvalds Linux - Server 1 01-08-2009 04:17 AM
LXer: Roll custom social networking sites with Elgg 1.0 LXer Syndicated Linux News 0 09-24-2008 03:00 AM
LXer: U.S. Legislators Move to Ban Social Networking Sites LXer Syndicated Linux News 0 08-02-2006 03:33 AM
Bookmarking LQ Content at other Social Sites jeremy LQ Suggestions & Feedback 5 07-06-2006 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:53 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
Open Source Consulting | Domain Registration