[Ilugc] squid_block_gmail

  • From: mohan.tux@xxxxxxxxx (Mohan Sundaram)
  • Date: Fri, 7 Oct 2011 09:19:34 +0530

On Fri, Oct 7, 2011 at 7:44 AM, Arun SAG <sagarun at gmail.com> wrote:

On Fri, Oct 7, 2011 at 7:03 AM, Mohan Sundaram <mohan.tux at gmail.com> wrote:


Is your gateway the local dns resolver for your network? If not, you
can do that redirecting all dns requests going out to the gateway's
resolver itself using iptables. Then, in the etc/hosts file of the
gateway, you can resolve gmail to any address you want locally that
will serve out the error page saying "gmail not allowed" etc.


However people can easily bypass this using a public DNS service like google
DNS or Open DNS.

That is why I've asked OP to redirect DNS requests to the local gateway.

-- Mohan Sundaram

Other related posts: