UDP multicast over SSH



Hi,

I'm trying to tunnel UDP multicast traffic over SSH. What I want is
for everything reaching a remote UDP multicast address to be echoed to
a local UDP address, and vice versa. (It doesn't matter to me whether
the local address is multicast or unicast.)

So far I've been trying, without success, to use netcat for this. I've
read the guide at http://zarb.org/~gc/html/udp-in-ssh-tunneling.html
for unicast-to-unicast SSH tunneling. However I'm not sure I really
understand what's going on when using netcat for UDP. Putting aside
the SSH tunneling for the moment to simplify things, if I create local
UDP communication with netcat as follows:

prompt1$ nc -l -u -p 12345

prompt2$ nc -u localhost 12345

Everything typed after this at prompt1 appears at prompt2 and vice
versa. However, if I interrupt and restart the netcat client at
prompt2, no further communication occurs (both nc processes exit after
stdin is flushed). I don't really understand this, as UDP is supposed
to be connectionless. I've tried this on OS X and Linux and it behaves
the same way on both architectures.

What am I missing? Can I use netcat for my purposes? If not, is there
any other way to achieve what I want to do?

Thanks,
Hamish

.



Relevant Pages

  • Re: Port redirection problems?
    ... Does netcat can do the ... > that suggests it will translate UDP to TCP and the reverse. ... Secure Shell by redirecting the syslog traffic to TCP tunnel, ...
    (comp.os.linux.networking)
  • Re: transparent bridge and ARP proxy confusion
    ... Here is the behavior of TCP and UDP. ... Using SSH for TCP and DNS for UDP. ... the ARP cache on FreeBSD bridge: ...
    (freebsd-net)
  • Re: can UDP be used as ssh transport?
    ... >But I thought SSH is over TCP 22 only. ... Can UDP be used as ssh transport?? ...
    (comp.security.unix)
  • Re: SSH as a VPN Client?
    ... TCP connection to add UDP forwarder on the SOCKS server, ... after which the client sends UDP packets to the server, ... The SOCKS server support in some SSH clients convert SOCKS requests into ... SSH TCP forwarding channel-requests. ...
    (comp.security.ssh)
  • Re: Tying UDP socket to stdin, stdout
    ... build a pseudo-telnet based on UDP for obtaining my results. ... Netcat seems to be cool but It won't be useful to me. ... based on the inter packet delays and buffering of packets and I need ... I need socket programming code for tis to ...
    (comp.unix.programmer)