How to block private mail access in Squid Proxy?

  • sid_maj
  • Beginner
  • Beginner
  • sid_maj
  • Posts: 41

Post 3+ Months Ago

I have squid configured in my Linux proxy.
I want to block all private mail access (yahoo,gmail,rediffmail etc) for my LAN users.

Please help me out in this regards,

Thanks,
Sid....
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • PsyckBoy
  • Graduate
  • Graduate
  • PsyckBoy
  • Posts: 204
  • Loc: SoCal

Post 3+ Months Ago

in squid.conf:

Code: [ Select ]
acl yahoo_mail dstdomain  mail.yahoo.com
acl google_mail dstdomain mail.google.com

http_access deny yahoo_mail
http_access deny google_mail
  1. acl yahoo_mail dstdomain  mail.yahoo.com
  2. acl google_mail dstdomain mail.google.com
  3. http_access deny yahoo_mail
  4. http_access deny google_mail


That will block access to Yahoo's and Google's mail services. You can add more with:

Code: [ Select ]
acl [acl_name] dstdomain [domain_to_block]

http_access deny [acl_name]
  1. acl [acl_name] dstdomain [domain_to_block]
  2. http_access deny [acl_name]
  • PsyckBoy
  • Graduate
  • Graduate
  • PsyckBoy
  • Posts: 204
  • Loc: SoCal

Post 3+ Months Ago

Note that since GMail uses SSL, your squid proxy will also have to be handling SSL requests.
  • sid_maj
  • Beginner
  • Beginner
  • sid_maj
  • Posts: 41

Post 3+ Months Ago

Thanx.... :) it works for me

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 31 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.