nomad-port-forward
is a simple utility to forward ports from a Nomad job to a local machine.
Thanks to @picatz for showing how to do this in hashicorp/nomad#6925
nomad-port-forward -alloc-id <alloc-id> -task nginx -p 8080:localhost:80
nomad-port-forward
installs socat inside the target nomad allocation and forwards the local port to the remote port.