All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: netfilter Digest, Vol 10, Issue 74
       [not found] <42971843.64531163.6abe.2deeSMTPIN_ADDED@mx.gmail.com>
@ 2005-05-27 14:31 ` Visham Ramsurrun
  2005-05-27 20:30   ` Jason Opperisano
  0 siblings, 1 reply; 2+ messages in thread
From: Visham Ramsurrun @ 2005-05-27 14:31 UTC (permalink / raw)
  To: netfilter

> On Wed, May 25, 2005 at 02:24:17PM +0400, Visham Ramsurrun wrote:
> > What I mean by this is that the when a protocol is unknown to the
> > ip_conntrack module if you don't have or don't want to use helper
> > conntrack modules like that for TCP or FTP), connection tracking
> > adopts a default method for handling these packets. It resembles the
> > handling of UDP packets. When this default behaviour is used, even a
> > packet that is not the SYN packet is considered as NEW. A second
> > packet in the reverse direction (reply packet) will set the connection
> > state to ESTABLISHED.
> 
> if you're asking if there's a way to modify the conntrack code to ignore
> the fact that TCP traffic is TCP traffic, and instead treat it as some
> random, unknown IP protocol; i would imagine you would have to hack the
> crap outta the conntrack code, basically removing
> ip_conntrack_proto_tcp.c from the equation.  i have no clue how you
> would go about doing this.  i also have no idea what your impetus behind
> this desire is; therefore, i can make no suggestion as to whether there
> may be an easier way to accomplish your goal.
> 

What I actually want is that, whether it is TCP traffic or that of any
other protocol, the traffic be treated in the same way. I read in the
Iptables Tutorial that there is a default connection tracking
mechanism. There are specific protocol helper modules for handling
specific protocol traffic (TCP, FTP are some examples). So, for the
traffic of any particular protocol, either you use a a conntrack
helper module (if it exists), or you use the default connection
tracking of ip_conntrack which actually handles traffic from any
protocol in the same way.

Having said that, what I would like to know is whether when this
default behaviour is used,
1) is a packet considered as NEW even it is not the SYN packet.
2) will a second packet in the reverse direction (reply packet) will
set the connection state to ESTABLISHED.

I just don't know how to verify this..that's why I asked you for help
because you have much more experience with iptables and hence, maybe
you have come across this.

Many many thx for the reply...

Best regards,
Visham


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

* Re: netfilter Digest, Vol 10, Issue 74
  2005-05-27 14:31 ` netfilter Digest, Vol 10, Issue 74 Visham Ramsurrun
@ 2005-05-27 20:30   ` Jason Opperisano
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Opperisano @ 2005-05-27 20:30 UTC (permalink / raw)
  To: netfilter

On Fri, May 27, 2005 at 06:31:55PM +0400, Visham Ramsurrun wrote:
> What I actually want is that, whether it is TCP traffic or that of any
> other protocol, the traffic be treated in the same way. I read in the
> Iptables Tutorial that there is a default connection tracking
> mechanism. There are specific protocol helper modules for handling
> specific protocol traffic (TCP, FTP are some examples). So, for the
> traffic of any particular protocol, either you use a a conntrack
> helper module (if it exists), or you use the default connection
> tracking of ip_conntrack which actually handles traffic from any
> protocol in the same way.

i think your misunderstanding is that there is some user-level choice
made here, where there is not.  ip_conntrack decides what to do based
on the protocol of the received packet.  to modify this behavior, modify
the net/ipv4/netfilter/ip_conntrack_*.c files in the kernel source tree.

<-- snip the same questions i have already answered -->

if you didn't like my answer the first time, re-asking will not a) make
me tell you what you want to hear or b) make it true even if i did tell
you what you want to hear.

-j

--
"Kevin: Dad, the fish got away.
 Joe Swanson: The hell it did. You get in there and you kick that
 fish's ass."
        --Family Guy


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

end of thread, other threads:[~2005-05-27 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <42971843.64531163.6abe.2deeSMTPIN_ADDED@mx.gmail.com>
2005-05-27 14:31 ` netfilter Digest, Vol 10, Issue 74 Visham Ramsurrun
2005-05-27 20:30   ` Jason Opperisano

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.