LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Closed Thread
  Search this Thread
Old 02-21-2010, 07:59 AM   #16
sachin151080
LQ Newbie
 
Registered: Nov 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Thumbs up How to allows some user to download denied extension


hi,

it's working
i put all entries together & removed -i then it start working

thanx

Regards

Sachin J.
 
Old 05-04-2010, 03:56 AM   #17
makadam
LQ Newbie
 
Registered: May 2010
Posts: 6

Rep: Reputation: 0
Hi

Please someone help me with this squid conf file.
I'am trying to block websites and specific extensions for all user exept for one ip.This is my confuiguration.

http_port 80
cache_mgr Administrator@proxy
visible_hostname proxy
cache_dir ufs c:/squid/var/cache 512 16 256
acl Query urlpath_regex cgi-bin \?
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl PURGE method PURGE
acl to_localhost dst 127.0.0.1/8
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443
acl CONNECT method CONNECT
acl localnetwork0 src 127.0.0.0/8
acl localnetwork1 src 192.168.5.0/24



acl VIP src 192.168.121.80

acl forbiden_pages dstdomain "C:/squid/etc/blocked-sites.txt"

acl forbiden_extensions url_regex -i "C:/squid/etc/blocked-files.txt"


hierarchy_stoplist cgi-bin ?
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
coredump_dir c:/squid/var/cache

cache_mem 64 MB
dns_testnames localhost

http_access allow VIP forbiden_pages
http_access allow VIP forbiden_extensions
http_access deny all forbiden_pages
http_access deny all forbiden_extensions

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow PURGE localhost
http_access deny PURGE
http_access allow localnetwork0
http_access allow localnetwork1
no_cache deny QUERY
http_access deny all
http_reply_access allow all
icp_access deny all
 
Old 05-04-2010, 10:03 PM   #18
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
makadam, don't hijack threads, and don't post the same thing multiple times.

Last edited by win32sux; 05-04-2010 at 10:05 PM.
 
  


Closed Thread



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
how can i block a site hanumanvce Linux - Security 5 02-03-2009 06:20 AM
how to block a particular web site bkcreddy17 Linux - Newbie 2 09-02-2008 01:52 PM
Can you block IE from using this site? resetreset LQ Suggestions & Feedback 28 07-29-2008 08:57 AM
how do you block access to a site? smarthouseguy Slackware 3 05-14-2006 10:09 AM
squid acl how to block all site except some mikmok Linux - Networking 1 12-22-2003 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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