* Sending packets from within the kernel
@ 2001-05-04 21:09 bp
2001-05-04 21:40 ` bert hubert
0 siblings, 1 reply; 2+ messages in thread
From: bp @ 2001-05-04 21:09 UTC (permalink / raw)
To: Linux kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I am working on an kernel module which forwards TCP segments from one
interface to another (basic routing, no proxy or listener socket), but
which needs to be able to generate some segments completely independently
of the client<-->server data stream. For example, when receiving a SYN
segment from the client, I want the module to be able to respond itself
with a SYN+ACK on behalf of the server (and drop the SYN).
I understand how silly this sounds. Setting aside the reasoning and
pitfalls of such a desire, technically what is the best way to do it? I've
reviewed the SYN_COOKIE and RST_COOKIE logic and it seems we must create a
dummy socket which is not attached to any inode.
Is there a cheaper way of accomplishing the same thing, assuming I don't
need to record any state for the endpoints?
Sincerely,
- -bp
- --
# bp at terran dot org
# http://www.terran.org/~bryan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE68xp/qAGIoYtXZJERAtvDAJ0QCgrfzdoqnRr5hWNpuersTtKpSwCgrtNl
gnGcBjCt+W41tHunmyTuFAM=
=GCRW
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Sending packets from within the kernel
2001-05-04 21:09 Sending packets from within the kernel bp
@ 2001-05-04 21:40 ` bert hubert
0 siblings, 0 replies; 2+ messages in thread
From: bert hubert @ 2001-05-04 21:40 UTC (permalink / raw)
To: Linux kernel
On Fri, May 04, 2001 at 02:09:16PM -0700, bp@terran.org wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I am working on an kernel module which forwards TCP segments from one
> interface to another (basic routing, no proxy or listener socket), but
> which needs to be able to generate some segments completely independently
> of the client<-->server data stream. For example, when receiving a SYN
> segment from the client, I want the module to be able to respond itself
> with a SYN+ACK on behalf of the server (and drop the SYN).
The iptables MIRROR target does some stuff you might be able to use.
--
http://www.PowerDNS.com Versatile DNS Services
Trilab The Technology People
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-04 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-04 21:09 Sending packets from within the kernel bp
2001-05-04 21:40 ` bert hubert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®