in reply to TCP/UDP tunneling over HTTP

The CPAN module, Net::HTTPTunnel does TCP based tunnels through HTTP. The POD has this to say about UDP tunnels:

Unfortunately, this tunneling method only works for tcp connections. There is no equivalent way of doing UDP connections. However, with a bit of ingenuity such a scheme can certainly be devised---imagine again the scenario of a TCP listener on the other end of the tunnel. One could wrap the UDP packets in TCP, transport them through the tunnel, and unwrap them at the other end with very little trouble.


Dave

Replies are listed 'Best First'.
Re: Re: TCP/UDP tunneling over HTTP
by gaggio (Friar) on Apr 02, 2004 at 12:06 UTC
    Hmmmm, this is a very intereting module indeed, but it still has lots of implementation to be done: it does not support UDP (even though the POD's idea shows the way) and it is not a complete solution because the only thing you get from that module is an open socket (a single function, the constructor, is implemented).

    I cannot believe that nothing like I am looking for has ever been done! For sure I am not the first developer wanting to do something like this, and I hate like merlyn "to reinvent the wheel".

    More wisdom appreciated!
      You might find a step for a hint here: http://www.nocrew.org/software/httptunnel.html
        This is actually by far the best pointer, because it acts transparently for the end-user application.

        The only problem with it is that it is a little off-topic since we are talking about Perl here, and also because:

        - it lacks "multiplexing abilities" - that is, management of several connections at the same time

        - it does not support UDP datagrams but only TCP connections tunneling

        Thanks anyway, this was helpful!