All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Taylor, Grant" <gtaylor@riverviewtech.net>
To: netfilter@lists.netfilter.org
Subject: Re: Blocking ip addresses..
Date: Fri, 20 May 2005 14:07:18 -0500	[thread overview]
Message-ID: <428E3566.90705@riverviewtech.net> (raw)
In-Reply-To: <20050520172641.GF9921@gw.home.tux-labor.de>

> The Problem is, when I use the conntrack modul, and I block a IP with
> this command : 
> 
> iptables -t nat -I POSTROUTING -p tcp  -s 192.168.0.23 --dport 25 -m
> conntrack --ctstate ESTABLISHED,NEW,RELATED -j DROP,
> 
> then I can't create new Connections, but I can use further on the established
> connections.

This problem has to do with the fact that the nat table is only traversed when establishing NEW connections from what I have been told.  I think this would be better done in the filter:FORWARD or the filter:OUTPUT table as such:

iptables -t filter -I FORWARD -s 192.168.0.23 -p tcp --dport 25 -j DROP
iptables -t filter -I OUTPUT -s 192.168.0.23 -p tcp --dport 25 -j DROP



Grant. . . .


      reply	other threads:[~2005-05-20 19:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-20 17:26 Blocking ip addresses Sebastian Docktor
2005-05-20 19:07 ` Taylor, Grant [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=428E3566.90705@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --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.