LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-24-2018, 02:44 PM   #1
KristenU
LQ Newbie
 
Registered: May 2018
Posts: 6

Rep: Reputation: Disabled
Squid Proxy Version: 3.5.12 doesn't block HTTPS


I use the command like this in /etc/squid/squid.conf

Code:
acl ban_sites dstdomain .facebook.com .youtube.com .othersite.com
http_access deny ban_sites
(I'm sorry if I used the bad site. I have to make this work because kids in school open 18+ adult websites on computers... )
Moderator Edit: No big deal, however it was not necessary to include it either. You want to block certain sites, that's all that's needed.
I've renamed the site name.

I have tried this as well

Code:
sudo touch /etc/squid/blacklist.txt
sudo nano /etc/squid/blacklist.txt
.youtube.com
.othersite.com
.facebook.com
sudo nano /etc/squid/blacklist.txt
acl banned dstdomain "/etc/squid/blacklist.txt"
http_access deny banned
sudo service squid restart
and after that, it just won't block it .
Do I miss something? I have been searching and searching for solutions online but none of the solutions have worked for me :/

I have tried this as well:
Code:
acl proxy_ip src 192.168.11.56 #proxy_ip
http_access allow proxy_ip
http_access deny CONNECT banned
Then I put that 192.168.11.56 under firefox -> edit -> preferences -> advanced -> network -> proxy -> manual proxy (192.168.11.56)
Restarted firefox and tried to open facebook and it went through..
I don't know what's wrong .
I know that IPTables will do the job but I don't want to go there yet.
If there absolutely is no way to block HTTPS by just squid proxy then idk :O. I'll listen to any of you

Help me out please :3. Thanks!!

Last edited by rtmistler; 05-24-2018 at 03:12 PM.
 
Old 05-25-2018, 07:41 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You can make a blacklist file, but you still have to put in squid.conf
 
Old 05-26-2018, 07:08 AM   #3
KristenU
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
I tried , didn't work
 
Old 05-26-2018, 07:21 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Do you have any subsequent http_access rules in squid.conf that could be overriding yours?
 
Old 05-26-2018, 10:46 AM   #5
KristenU
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
How do I check that? :O
 
Old 05-26-2018, 10:48 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by KristenU View Post
How do I check that? :O
Look in your squid.conf file.
 
Old 05-26-2018, 03:42 PM   #7
KristenU
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
I mean.. how do I know if it's overriding my http_access or not?
By deciding, what to put in order?

Edit: I'll handle this case myself , it's easier than trying to figure out, what people say xD.
I'll post the answer here when I find the solution.
 
Old 05-27-2018, 07:59 PM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Squid rules are run from top to bottom. So, if something is allowed first, but later it is disallowed, it will be allowed.
 
  


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
[SOLVED] unable to block https in squid Net_Spy Linux - Networking 48 05-25-2021 10:03 AM
squid reverse proxy through https, no cache, no public proxy? alanford Linux - Software 1 02-08-2016 10:55 AM
Squid to block https sites srinivasanece Linux - Security 7 07-17-2012 08:09 PM
How to block https sites through ACL in squid avi_tokade Linux - Newbie 5 04-12-2011 05:53 PM
How can I block HTTPS packets with iptables/Squid? sanjee Linux - Security 5 10-29-2008 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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