LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-04-2009, 05:32 AM   #1
cheesewizz
Member
 
Registered: Aug 2004
Location: Philippines
Distribution: Centos
Posts: 221

Rep: Reputation: 15
Squidproxy cannot block executable file


hello

i am using now the squidproxy
some tutorials i followed

what i want is to restrict downloading of any exe file, mp3, even a video extension

since my squidproxy running some exe is blocked for example i just want to download pidgin.exe and its giving me an information that i have no rights to download but on this site http://www.over-look.com/site/index....rlook-fing-1-2

this exe i can able to download and i dont know why?



please help..


thanks
 
Old 08-04-2009, 06:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well it'd be a start to show us your squid configs, otherwise we wouldn't have a chance of knowing what's going on.
 
Old 08-04-2009, 07:45 PM   #3
cheesewizz
Member
 
Registered: Aug 2004
Location: Philippines
Distribution: Centos
Posts: 221

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
Well it'd be a start to show us your squid configs, otherwise we wouldn't have a chance of knowing what's going on.
hello

thanks for your reply

here is my config

#Recommended minimum configuration:
acl all src 192.168.1.100-192.168.1.255/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl bad_url dstdomain "/etc/squid/bad-sites.squid"
acl blockfiles urlpath_regex "/etc/squid/blockfiles.acl"


and here is my blockfiles.acl

\.[Mm][Pp]3$
\.[Ee][Xx][Ee]$
\.exe$
\.msi$
\.zip$
\.rar$
\.mp3$
\.[^a-z]exe[^a-z]
\.dmg$


and here is my http_access deny configuration

#Default:
# cache_vary on

# TAG: broken_vary_encoding
# Many servers have broken support for on-the-fly Content-Encoding,
# returning the same ETag on both plain and gzip:ed variants.
# Vary replies matching this access list will have the cache split
# on the Accept-Encoding header of the request and not trusting the
# ETag to be unique.
#
# Apache mod_gzip and mod_deflate known to be broken so don't trust
# Apache to signal ETag correctly on such responses
acl apache rep_header Server ^Apache
acl pc58 src 192.168.1.158/255.255.255.0
http_access deny bad_url
http_access deny blockfiles

http_access allow manager localhost
http_access allow all
http_access allow manager localhost
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
broken_vary_encoding allow apache

some executable i can able to download but some cannot
i seacrh some tutorials and tried to solve the problem but still i can download


thanks
 
  


Reply



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
Squidproxy cannot block exe cheesewizz Linux - Networking 1 08-04-2009 06:26 AM
Howto convert bin file to a executable DOS file lilzz Linux - Newbie 5 08-04-2006 12:03 AM
how do I lauch a file by its executable cjae SUSE / openSUSE 1 07-12-2005 11:51 AM
intranet problem by using SquidProxy listlow Linux - Networking 0 04-25-2005 07:06 AM
Linux Executable File Help (created from a .c file) MattG1981 Linux - Newbie 7 06-06-2004 04:54 PM

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

All times are GMT -5. The time now is 04:40 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