I'm proud to announce release of gandalf 0.8, this is a very battled tested tool to port forward ports on jailbroken iPhones. It lets you do ssh -p 2000 root@localhost.<p>Similar to other tools, gandalf is better because<p>1) It is scalable, worked with 25+ iPhones at the same time, see README about needing to use custom version of usbmuxd and issues the linux kernel might give you.<p>2) Provides a nice status server, see what devices are tunneled with gandalf --status<p>3) Battle tested under stress.<p>4) Written in a functional programming language OCaml, so you know its type safe.<p>5) Features nice options like closing connections if there is no activity on the tunnel after a configurable period of time, defaults to five minutes.<p>6) Doesn't leak any file descriptors, so you can actually leave this on and forget about it.<p>Easily installed via opam, OCaml's package manager.<p>opam install usbmux<p>Provide a mapping file of the form <udid>:<local_port>:<device_port><p>Find the udid of connected devices with plain listen mode:<p>$ gandalf<p>Will print as devices plug in and out.<p>more serious sample usage:<p>sudo which gandalf --mappings etc/idevices/mappings --daemonize --verbose --timeout 900<p>Outputs colored debugging messages to the system log too.<p>Source code, star the repo if you like it!:<p>https://github.com/onlinemediagroup/ocaml-usbmux