Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Husnu Demir <hdemir@metu.edu.tr>
To: Netfilter Developer Mailing List <netfilter@vger.kernel.org>
Subject: conntrack module question?
Date: Fri, 05 Nov 2010 11:21:50 +0200	[thread overview]
Message-ID: <4CD3CCAE.3060707@metu.edu.tr> (raw)

[-- Attachment #1: Type: text/plain, Size: 838 bytes --]


Hi,

I am using conntrack module for a while. As suggested configuration I do add ;


-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -m conntrack --ctstate INVALID -j DROP

At the top of the configuration. After that I added the drop rule as;


-A FORWARD -i eth0 -o eth1 -m set --match-set STOPALL src -j DROP

This rule is not statefull and should drop everything. I added an IP address,
174.142.179.235 a SPAMMER, to stop its communication. But it did no stop. As far
as I know in TCP connection the packets is not in ESTABLISHED state but could be
RELATED :(.

I wrote "drop everything from STOPALL list", but the connection is not dropped. If
I wrote the the DROP statement above the 1st rule, it will drop all the
connection. What is wrong? I do not want to write DROP statement to the top?


Thanks.



[-- Attachment #2: hdemir.vcf --]
[-- Type: text/x-vcard, Size: 164 bytes --]

begin:vcard
fn:Husnu Demir
n:Demir;Husnu
email;internet:hdemir@metu.edu.tr
tel;work:+903122103330
tel;fax:+903122103303
x-mozilla-html:FALSE
version:2.1
end:vcard


             reply	other threads:[~2010-11-05  9:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05  9:21 Husnu Demir [this message]
2010-11-05 11:12 ` conntrack module question? Jan Engelhardt
2010-11-05 12:56   ` Husnu Demir

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=4CD3CCAE.3060707@metu.edu.tr \
    --to=hdemir@metu.edu.tr \
    --cc=netfilter@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox