On Wed, Feb 01, 2006 at 12:36:01PM -0500, David Zakar wrote:
> I was wondering if anyone had any favored techniques of tunneling UDP
> over SSH with a TCP forward using netcat in Linux - I'm not having much
> success so far.

I think you'll need more than just netcat.  UDP protocols are message
based, where TCP is stream based.  In practical terms, this means that
a UDP message (like a DNS response) has an implicit length that many of
the protocols depend on... and that "message length" information would
get lost when you stream the data through netcat.  You probably want to
write you own quick program[1] to do what netcat is doing plus a "message
length" header to every datagram message.  And then the equivalent on
the other side.

Make sense?

- Rob
.

[1] you could probably find one that someone has already written, but
this is a very easy thing to code, so, were it me, I think it would be
faster to write than to find...

Reply via email to