All of lore.kernel.org
 help / color / mirror / Atom feed
* port-based filtering of ESP packets with in-kernel IPsec?
@ 2003-07-30  4:44 Rick Kennell
  2003-07-30 10:34 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Rick Kennell @ 2003-07-30  4:44 UTC (permalink / raw)
  To: netfilter-devel, netfilter

I asked about this last week in the general netfilter list, but it
appears that most folks are still using FreeS/WAN for IPsec.

I'm using the in-kernel IPsec and want to be able to filter ESP packets
based on protocol or port number.  These values are encapsulated in the
ESP payload and are unavailable to netfilter.  If I were using
FreeS/WAN, I could use standard netfilter techniques on the ipsec0
device.  With the in-kernel IPsec, there's no extra pseudo-device with
which to examine unencapsulated ESP packets.

It looks too me like netfilter sees the packet as ESP in all chains in
all tables.  (I'd be delighted to be corrected.)

Since ESP packets that reach the mangle INPUT chain are destined for a
local process, why not unencapsulate them just before that point?  It
might still be nice to have an indication that this was once an ESP
packet for filtering, but that could be done by setting a mark in the
mangle PREROUTING chain.

I realize that this would probably require some heavy lifting in the
network layer to accomplish this nesting of functionality.

Am I missing something obvious?

-- 
Rick Kennell <kennell@ecn.purdue.edu>
Purdue University School of Electrical and Computer Engineering



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

end of thread, other threads:[~2003-07-30 22:51 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-30  4:44 port-based filtering of ESP packets with in-kernel IPsec? Rick Kennell
2003-07-30 10:34 ` Chris Wilson
2003-07-30 15:42   ` Rick Kennell
2003-07-30 15:42   ` Rick Kennell
2003-07-30 19:10   ` Henrik Nordstrom
2003-07-30 19:10     ` Henrik Nordstrom
2003-07-30 14:24 ` Harald Welte
2003-07-30 14:51   ` Andreas Jellinghaus
2003-07-30 14:51   ` Andreas Jellinghaus
2003-07-30 15:16     ` Harald Welte
2003-07-30 15:16     ` Harald Welte
2003-07-30 15:16     ` Harald Welte
2003-07-30 20:37     ` Dax Kelson
2003-07-30 22:51       ` Dax Kelson
2003-07-30 14:51   ` Andreas Jellinghaus
2003-07-30 15:45 ` Jeremy Davis

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.