All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martijn Lievaart <m@rtij.nl>
To: dhottinger@harrisonburg.k12.va.us
Cc: netfilter@lists.netfilter.org
Subject: Re: blocking all connections
Date: Fri, 06 Apr 2007 23:15:35 +0200	[thread overview]
Message-ID: <4616B877.90204@rtij.nl> (raw)
In-Reply-To: <20070406154336.feq9mge2o4wocg8w@mail.harrisonburg.k12.va.us>

dhottinger@harrisonburg.k12.va.us wrote:
> Quoting Martijn Lievaart <m@rtij.nl>:
>
>> dhottinger@harrisonburg.k12.va.us wrote:
>>> What is the best rule for blocking all connections to an ip  
>>> address.  For example, lets say I want to block all connections to  
>>> the domain google.com.
>>
>> The domain google.com is not an ip address. If you want to block all
>> web access to google, use a transparent cache. Otherwise I see no way
>> to do this (reliably).
>>
>> M4
>
> Google.com was just an example.  Lets say I want to block all 
> connections to and from 194.67.57.26.
>

-I INPUT -j BLOCK
-I FORWARD -j BLOCK
-I OUTPUT -j BLOCK

-N BLOCK
-A BLOCK -s 194.67.57.26 -j DROP
-A BLOCK -d 194.67.57.26 -j DROP


HTH,
M4



      reply	other threads:[~2007-04-06 21:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-06 13:16 blocking all connections dhottinger
2007-04-06 16:13 ` Martijn Lievaart
2007-04-06 19:43   ` dhottinger
2007-04-06 21:15     ` Martijn Lievaart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4616B877.90204@rtij.nl \
    --to=m@rtij.nl \
    --cc=dhottinger@harrisonburg.k12.va.us \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.