LinuxQuestions.org
Visit Jeremy's Blog.
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 07-04-2012, 08:42 AM   #1
klauriens
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Rep: Reputation: 0
squid: whitelisting an https site using url_regex


Hi,

I am trying to use url_regex in a site which is an https and it is not working. I have tried using the said command before for non-https sites and it is working fine.

In the logs, I am having an error of "TCP_DENIED...CONNECT...:443"(I only get the keywords). I am using url_regex because I only want to allow certain pages of the website and not the whole site. I can allow it if I give http_access allow to SSL_ports - which we don't want.

Is there a way for me to whitelist an https site without giving https_allow access to SSL_ports?

Thanks,
 
Old 07-04-2012, 08:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
you could show us the actual config and intended destination urls so we can see what's going wrong, that'd help. After that all we can do is give you examples of the use of the url_regex acl type and you appear to know the principles behind it already...
 
Old 07-09-2012, 07:33 AM   #3
klauriens
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Hi, please bear with me..here are the codes. I dont really know from where to where should I copy and post here but the codes below are the ones that I only play around.

#
http_access allow localhost

acl managers src "/etc/squid/managers"
acl whitelist dstdomain -i "/etc/squid/whitelist"
acl youtubelink url_regex -i "/etc/squid/youtubelinks"

http_access allow managers
http_access allow whitelist all
http_access allow youtubelink all

http_access deny all
#

Thanks,
 
  


Reply

Tags
acl, linux, squid


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
SQUID intercept + iptables + whitelisting ports and sites proxykid Linux - Networking 2 07-15-2011 01:30 PM
https site not opening satish Linux - Networking 5 12-30-2010 03:10 PM
Accented latin words in url_regex of squid does not work Fabio Paolini Linux - Networking 0 05-28-2010 04:40 PM
speed up https (apache) site peridot121 Linux - Server 3 05-18-2010 04:51 PM
squid url_regex is not blocking the sites nsampath Linux - Server 3 03-29-2007 05:04 AM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration