using NAT Router, can't block gmail, can I use Linux box instaed of NAT Router?

Discussion in 'Linux Networking' started by santa19992000, Nov 18, 2005.

  1. using NAT Router for small office, can't block gmail, can I use Linux
    box to block gmail (all web based e-mails) instead of NAT Router to do
    block, will it support?. Thanks
    santa19992000, Nov 18, 2005
    1. Advertisements

  2. santa19992000

    Tauno Voipio Guest

    If you need to allow other Web traffic, you're OOL. The
    webmails are just web pages and they cannot easily be
    distinguished from valid web traffic by the firewall.
    Tauno Voipio, Nov 18, 2005
    1. Advertisements

  3. santa19992000

    CJT Guest

    I don't think the original poster was at all clear in describing what
    he/she wants to do. You could indeed block access to a particular
    web site, knowing its IP address. But when I read the posting, I
    thought the concern was with incoming mail from such web based e-mails
    (and there are many others besides gmail). So I think we need
    clarification. Or perhaps the OP is clueless (as evidenced by the
    gibberish about NAT, which seems quite irrelevant).
    CJT, Nov 18, 2005
  4. can I use Linux box to block gmail (all web based e- > mails) instead of NAT Router to do

    Well, I assume, you are running on low bandwidth connectivity and those
    web based mails are hogging your surfing a big time. Should that is the
    case, you can use linux box with squid cache as http
    accelerator/transparent proxy. You might also choose SquidGuard for
    site filtering. You can use some kind of settings like white/blacklist
    with squid and iptables, the tools for NATing in linux.

    While in Squid, the basic tool, edit squid.conf - it's configuration
    file in the/etc/squid directory

    acl bad url_regex "/etc/squid/squid-block.acl"
    http_access deny bad

    Then, add those sites in squid-block.acl file

    Raqueeb Hassan, Nov 20, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.