Re: iptables and INVALID packet filtering.
- To: Matthew Babcock <MBabcock@AandRSecurity.com>
- Cc: "firstname.lastname@example.org" <email@example.com>
- Subject: Re: iptables and INVALID packet filtering.
- From: Pascal Hambourg <firstname.lastname@example.org>
- Date: Thu, 02 May 2013 00:17:07 +0200
- Message-id: <[🔎] email@example.com>
- In-reply-to: <1367296827.2612.1578.camel@Lappy.ARSec.local>
- References: <CAASvXNseOJy8__QFKFir=nUmCGZDR47vFFYkeToCO3=PYp7sCw@mail.gmail.com> <515E059E.firstname.lastname@example.org> <B57F1D41-A448-439A-A912-EF921511C1CD@AandRSecurity.com> <CAASvXNtqJbKpPXXwLtr-680exHBx7EyDreWBovHdEMFAFnWdGw@mail.gmail.com> <82506A86-4FCA-4F5A-A37A-7C89EEC4F050@AandRSecurity.com> <CAASvXNsm_+mRaO2uoWsR0iwH4_2gSSLHZ14HRb_wy4uLhRDQ3Q@mail.gmail.com> <7B0F313E-DD4F-4466-B6CD-C0F4E2D976D6@AandRSecurity.com> <515F48D1.email@example.com> <1367296827.2612.1578.camel@Lappy.ARSec.local>
Matthew Babcock a écrit :
> Please excuse the delayed response.
> To answer your question, no I cannot, yet.
> However, I can demonstrate iptables following what the "state" be on UDP
> packets using DNS.
> You should see as I do, that the UDP DNS request are logged under the
> state NEW, and that the response was logged under the state ESTABLISHED.
Nothing new here. UDP possible states are :
- NEW for a datagram creating a new connection or belonging to a
"connection" which has seen traffic only in one direction ;
- ESTABLISHED for a datagram belonging to a "connection" which has seen
traffic in both directions ;
- RELATED when a conntrack helper expects a UDP datagram related to an
existing connection (e.g. TFTP or SIP).
Note that this is not specific to UDP, conntrack does the same with all
> I consider this, iptables differentiating between "New" and
> "Established" UDP "connections", reason to extrapolate that iptables can
> follow state in UDP packets such as flagging on "Invalid" or out of
> state UDP packets.
UDP is connectionless by nature, so how would you define the INVALID
state of a UDP datagram ?
> I aim to try and create an "Invalid" UDP state packet. I will follow up
> if I try regardless of the outcome.
Good luck. I meant it.