Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-04-2012, 09:42 AM   #1
LQ Newbie
Registered: Jan 2011
Posts: 10

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


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?

Old 07-04-2012, 09:45 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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, 08:33 AM   #3
LQ Newbie
Registered: Jan 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Hi, please bear with 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

Old 02-23-2016, 10:17 PM   #4
LQ Newbie
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
Question Same issue, url specific allow listing not working for https

I have the same issue as the original poster.
In fact in my list of urls paths to be allowed, only those using http protocol are working.

I have a very similar need in that I want to block youtube generally but I want to allow a small list of specific paths on youtube.

Is there a solution to this?


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 02:30 PM
https site not opening satish Linux - Networking 5 12-30-2010 04:10 PM
Accented latin words in url_regex of squid does not work Fabio Paolini Linux - Networking 0 05-28-2010 05:40 PM
speed up https (apache) site peridot121 Linux - Server 3 05-18-2010 05:51 PM
squid url_regex is not blocking the sites nsampath Linux - Server 3 03-29-2007 06:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration