December 18, 2017, 04:42:53 PM

News : Linux Help Community Forum..

Author Topic: About Gmail Blocking through Squid  (Read 6509 times)

Offline Avin

  • Linux Learner
  • ***
  • Posts: 54
  • L!nuX
About Gmail Blocking through Squid
« on: October 23, 2008, 06:59:45 AM »
Hello All

        Can any one tell me How to block totally.I have added following acl rules for block gmail in my squid.conf

      acl  gmailblock  url_regex -i
      acl  gmailblock  url_regex -i,com/mail
      acl  gmailblock  url_regex -i
      acl  gmailblock  url_regex -i gmail

     http_access deny gmailblock

     Problem is that User is blocked to access but if they pass https instead of http the traffic is allow. and my rules is not filter the https traffic so What should I do ?  How to block https traffic and How to write acl  for https blocking........ please help..


Offline aktiwari4u

  • LST CareTaker
  • Crescent
  • *****
  • Posts: 161
Re: About Gmail Blocking through Squid
« Reply #1 on: October 25, 2008, 04:26:46 AM »
i think if you will block domain that will solve your problem

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: About Gmail Blocking through Squid
« Reply #2 on: October 27, 2008, 10:44:45 AM »
Hi, squid do allow https proxy but through tunneling which means it can't block sites those are on https.
You can block https sites using iptables on the machine where squid is installed.

try :
Code: [Select]
iptables -A INPUT -s -j DROP
iptables -A OUTPUT -d -j DROP

Above will drop all incoming and output connection to gmail.