All of lore.kernel.org
 help / color / mirror / Atom feed
* Forwarding a TCP connection request
@ 2009-02-08 10:58 Ralf
  2009-02-08 22:17 ` Jonathan Knight
  0 siblings, 1 reply; 2+ messages in thread
From: Ralf @ 2009-02-08 10:58 UTC (permalink / raw)
  To: netfilter

Is this possible to do:
a TCP connection request to a specific port
on this machine comes in. Can this request
be forwarded to another machine to handle it directly
with the client (ie. accepting the session and so on),
but without this machine doing NAT for them
(except forwarding the initial SYN packet)?




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

* Re: Forwarding a TCP connection request
  2009-02-08 10:58 Forwarding a TCP connection request Ralf
@ 2009-02-08 22:17 ` Jonathan Knight
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Knight @ 2009-02-08 22:17 UTC (permalink / raw)
  To: netfilter

Ralf wrote:
> Is this possible to do:
> a TCP connection request to a specific port
> on this machine comes in. 


You can get a similar effect using the "redirect" feature of xinetd.  
The intermediate machine still has to relay the packets to and fro but 
it's transparent as long as the server doesn't do a getpeername() call.

You can stick an "only_from" parameter in as well to restrict who can 
connect to the port.

Jon

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

end of thread, other threads:[~2009-02-08 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-08 10:58 Forwarding a TCP connection request Ralf
2009-02-08 22:17 ` Jonathan Knight

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.