[Ilugc] squid_block_gmail

  • From: mohan.tux@xxxxxxxxx (Mohan Sundaram)
  • Date: Fri, 7 Oct 2011 07:03:33 +0530

On Thu, Oct 6, 2011 at 6:31 PM, rmariya sagaya asirvatham
<asir.linux at gmail.com> wrote:

Hi thank you,

if i block 443 ports through iptables it blocks all https sites(our office
site also https site,)

we are only want to block ?some site which have https like facebook
,gmail........

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.

-- Mohan Sundaram

Other related posts: