* How to add data to connection tracker
@ 2009-09-30 10:29 Nils Rennebarth
2009-09-30 10:34 ` Saikiran Madugula
0 siblings, 1 reply; 2+ messages in thread
From: Nils Rennebarth @ 2009-09-30 10:29 UTC (permalink / raw)
To: netfilter-devel
Hi,
I am developing a netfilter target extension synproxy, that will work similar to the openbsd pf synproxy,
i.e. it will (if a synflood to the destination address is detected) block the syn packet and answer with a
syn cookie. If a correct ACK to the cookie is found it will send the syn packet to the actual server, intercepts the
reply and then pass packets in both directions, only translating sequence numbers. The extension could
then be used on a firewall to protect systems behind it from synflood attacks.
I need to store some additional data to a connection in the connection tracker. Although infrastructure to do that
appears to be in place, I could not find an obvious way to do that. I *did* read the kernel source and already know
how to write and register a new netfilter extension.
Btw, the netfilter hacking howto appears to be thoroughly outdated. I managed to find http://jengelh.medozas.de/documents/Netfilter_Modules.pdf which helped a lot, but not in this particular area.
______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to add data to connection tracker
2009-09-30 10:29 How to add data to connection tracker Nils Rennebarth
@ 2009-09-30 10:34 ` Saikiran Madugula
0 siblings, 0 replies; 2+ messages in thread
From: Saikiran Madugula @ 2009-09-30 10:34 UTC (permalink / raw)
To: Nils Rennebarth; +Cc: netfilter-devel
Nils Rennebarth wrote:
> Hi,
>
>
> I need to store some additional data to a connection in the connection tracker. Although infrastructure to do that
> appears to be in place, I could not find an obvious way to do that. I *did* read the kernel source and already know
> how to write and register a new netfilter extension.
>
You can utilize netfilter conntrack's extension infrastructure. Look at
nf_conntrack_acct.c to how its done. I am pretty sure you would receive better
solutions from the list.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-30 10:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 10:29 How to add data to connection tracker Nils Rennebarth
2009-09-30 10:34 ` Saikiran Madugula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).