Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Mark E. Donaldson" <markee@bandwidthco.com>
To: 'Eddahbi Karim' <installation_fault_association@yahoo.fr>,
	netfilter@lists.netfilter.org
Subject: RE: How iptables know when an UDP connection is closed ?
Date: Fri, 26 Dec 2003 13:41:29 -0800	[thread overview]
Message-ID: <200312262141.hBQLfSTS011481@server5.bandwidthco.com> (raw)
In-Reply-To: <1072463937.3743.6.camel@gamux>

Netfilter/IPTables works at layers three & four of the OSI model - not at
layer seven.  So, if I understand your question correctly, the answer would
be NO, because it knows nothing about what is happening above layer four.
However, if you have an application that is programmed to always use the
same use the same source & destination ports for it's socket channels, then
this could be defined as such within an iptables rule as an application an
handled accordingly. It would not be able to distinguish them from similar
crafted packets though.  Having said that, the "limit match is available to
handle packet "flooding" as you describe it here. Basically, you have
entered the realm of what an IDS/IPS, such as Snort, do best.  A Snort
preprocessor could well handle this activity.

-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org] On Behalf Of Eddahbi Karim
Sent: Friday, December 26, 2003 10:39 AM
To: netfilter@lists.netfilter.org
Subject: RE: How iptables know when an UDP connection is closed ?

Le jeu 25/12/2003 à 20:27, Mark E. Donaldson a écrit :
> Correct.  The UDP state machine is based on "timers". 

Ok, so I've another question.
Can Iptables make a difference between packets of the real application and a
packet generator ?

For example :

X communicates with Y with the application Mooh-1.0 which sends UDP packets
via the port 789 and receives packets from the port 987.

Then Z sends UDP packets to X with a packet generator. The UDP packets
sended have the same dport and sport.

Can Iptables make a difference between "Mooh-1.0" and the packet generator
to avoid flood ?

--
--
Eddahbi Karim

Phone :
(33) (0)6 61 30 57 77

France





  reply	other threads:[~2003-12-26 21:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-25 15:15 How iptables know when an UDP connection is closed ? Eddahbi Karim
2003-12-25 19:27 ` Mark E. Donaldson
2003-12-26 18:38   ` Eddahbi Karim
2003-12-26 21:41     ` Mark E. Donaldson [this message]
2004-01-01  0:19       ` Tom Marshall

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=200312262141.hBQLfSTS011481@server5.bandwidthco.com \
    --to=markee@bandwidthco.com \
    --cc=installation_fault_association@yahoo.fr \
    --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