Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Atsushi Nakagawa <atnak@chejz.com>
To: netfilter@lists.netfilter.org
Subject: Dropping RST of SYN
Date: Thu, 04 Sep 2003 18:50:34 +1000	[thread overview]
Message-ID: <20030904183027.9CC5.ATNAK@chejz.com> (raw)

Hi,

What iptables table/rule can I use to drop RST (TCP) packets that're in
reply to SYN?

Below is a picture of how I think it does it if everything is accepted. 
(Final conntrack states in square brackets.)

_Client_  _Firewall_  _Server_
-SYN->    [NEW]        -SYN->
<-RST-    [CLOSED]     <-RST-


This is what I want it to do:

-SYN->    [NEW]        -SYN->
          [CLOSED]     <-RST-
            ^
          IF TCP & [NEW]: DROP '<-RST-' & SET [CLOSED]


I've tried mucking around with some rules but instead of getting the NEW
state when SYN comes along, I always get ESTABLISHED.  (I think I'm
using the wrong table.)

_Client_'s interface is ethC, _Server_'s interface is ethS.  _Server_'s
IP address is 10.0.0.1, port PORT.  _Client_'s address is arbitary.

Regards,


-- 
Atsushi Nakagawa
<atnak@chejz.com>
Changes are made when there is inconvenience.



             reply	other threads:[~2003-09-04  8:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-04  8:50 Atsushi Nakagawa [this message]
2003-09-04  9:13 ` Dropping RST of SYN Ralf Spenneberg
2003-09-08  5:51   ` Dharmendra.T
2003-09-08 10:02     ` Chris Brenton
2003-09-08 10:58       ` Atsushi Nakagawa
2003-09-08 11:29         ` Chris Brenton
2003-09-08 11:53         ` Stephen Satchell

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=20030904183027.9CC5.ATNAK@chejz.com \
    --to=atnak@chejz.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox