From: "yangrunhua" <yangrunhua@njupt.edu.cn>
To: "'Harald Welte'" <laforge@netfilter.org>
Cc: <netfilter-devel@lists.netfilter.org>
Subject: RE: How to take over TCP connection from userspace process?
Date: Wed, 22 Oct 2003 11:44:56 +0800 [thread overview]
Message-ID: <006f01c3984e$e045fce0$d32f110a@yrhd> (raw)
In-Reply-To: <20031021134729.GB12049@sunbeam.de.gnumonks.org>
But sendfile() system call could not support copying from socket to socket, and only transfer in one direction.
What I need is: after I authenticated TCP connection A(host A connected to me) and TCP connection B(host B connected to me), then let what host A send (through TCP connection A)directly forward to host B(through TCP connection B) in the kernel ,meanwhile, what host B send directly forward to host A in the kernel.
That's much like MSN Messenger Server's relaying webcam video stream between two peers after authenticated them. I want to do this relay in kernel space and auth in the userspace. It's much like NGN softswitch's theory: control and auth separate from transfer.
That's much useful functionality. Can netfilter/iptables help this? done this by writing a new target or something?
Thanks,
Runhua Yang
-----Original Message-----
From: Harald Welte [mailto:laforge@netfilter.org]
Sent: Tuesday, October 21, 2003 9:47 PM
To: yangrunhua
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: How to take over TCP connection from userspace process?
On Tue, Oct 21, 2003 at 03:33:22PM +0800, yangrunhua wrote:
> Hi all,
> With the help of netfilter/iptables, is there any way to high-speed forwarding between 2 already-connected TCP connections in the kernel?
I don't see how this could be related to netfilter/iptables at all.
The normal sendfile() systemcall may be helpful to you.
> Thanks,
> Runhua Yang
--
- Harald Welte <laforge@netfilter.org> http://www.netfilter.org/
============================================================================
"Fragmentation is like classful addressing -- an interesting early
architectural error that shows how much experimentation was going
on while IP was being designed." -- Paul Vixie
next prev parent reply other threads:[~2003-10-22 3:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-21 7:33 How to take over TCP connection from userspace process? yangrunhua
2003-10-21 13:47 ` Harald Welte
[not found] ` <20031021145537.GA25030@superhijitus.linux.org.ar>
2003-10-21 17:31 ` Harald Welte
2003-10-22 3:44 ` yangrunhua [this message]
2003-10-23 8:53 ` Harald Welte
2003-10-22 3:50 ` yangrunhua
2003-10-22 4:15 ` Jeremy Kerr
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='006f01c3984e$e045fce0$d32f110a@yrhd' \
--to=yangrunhua@njupt.edu.cn \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@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 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.