On 11/23/07, Royce Souther <[EMAIL PROTECTED]> wrote: > I am trying to open a two way UDP connection between two systesm that can > only connect via SSH. The systems have matching public and private key pairs > for SSH without passwords. > This sort of works for a few seconds the ports are open but very quickly all > four instances of netcat die. Before I run the netcat commands the prots do > not show up in netstat, while the netcats are running the ports to show up > and look to be correct. When the netcats die the ports are removed from the > netstat listing. > > Has anyone done this before? Any idea why netcat would die? > > One of the systems I am using is a minimal Linux can cannot have new > software installed. I tried but cannot get socat installed but I also don't > think it would fix the problem. > > I used this site as an example of how to tunnel UDP via SSH. > http://zarb.org/~gc/html/udp-in-ssh-tunneling.html > > This is the sequence of commands I run from the client side. > ssh [EMAIL PROTECTED] "mkfifo fifo.server.4570" > ssh [EMAIL PROTECTED] -L 4570:127.0.0.1:4570 "nc -l -p 4570 < > fifo.server.4570 | nc -u 127.0.0.1 4570 > fifo.server.4570" & > mkfifo fifo.client.4570 > nc -l -u -p 4570 < fifo.client.4570 | nc localhost 4570 > fifo.client.4570
Why not just use a SSH VPN? I realize it is a little bit more complicated than just tunneling, but it is a lot more useful! Here are my notes on setting up a VPN with OpenSSH: http://mcarlson.ca/fossnotes/index.php?page=ssh -Mark C. _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

