Linux Netfilter discussions
 help / color / mirror / Atom feed
* Dropping RST of SYN
@ 2003-09-04  8:50 Atsushi Nakagawa
  2003-09-04  9:13 ` Ralf Spenneberg
  0 siblings, 1 reply; 7+ messages in thread
From: Atsushi Nakagawa @ 2003-09-04  8:50 UTC (permalink / raw)
  To: netfilter

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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-09-08 11:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-04  8:50 Dropping RST of SYN Atsushi Nakagawa
2003-09-04  9:13 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox