All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Kerr <jeremy@redfishsoftware.com.au>
To: netfilter-devel@lists.netfilter.org
Subject: Re: How to take over TCP connection from userspace process?
Date: Wed, 22 Oct 2003 14:15:23 +1000	[thread overview]
Message-ID: <200310221415.23403.jeremy@redfishsoftware.com.au> (raw)
In-Reply-To: <007001c3984f$aff2f740$d32f110a@yrhd>

> 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.

Sounds like the LVS project's TCP splicing code is what you're after:

http://www.linuxvirtualserver.org/software/tcpsp/index.html

This allows you to connect ('splice') two sockets together in userspace, so 
the subsequent forwarding is handled within the kernel. I've never used it 
myself though.


Jeremy

      reply	other threads:[~2003-10-22  4:15 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
2003-10-23  8:53     ` Harald Welte
2003-10-22  3:50   ` yangrunhua
2003-10-22  4:15     ` Jeremy Kerr [this message]

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=200310221415.23403.jeremy@redfishsoftware.com.au \
    --to=jeremy@redfishsoftware.com.au \
    --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.