On Ubuntu Vivid I keep on getting this error (Bad local forwarding specification '127.0.0.1/8443/127.0.0.1/8443') whenever I try to use local or remote port forwarding and it doesn't seem to matter which ports or IPs I use. I am guessing that it wants colons (:) instead of forward slashes (/).
I tried editing these lines in PACUtils.pm
from:
$txt .= ' -L ' . ( $$forward{localIP} ? "$$forward{localIP}/" : '' ) . $$forward{localPort} . '/' . $$forward{remoteIP} . '/' . $$forward{remotePort};
$txt .= ' -R ' . ( $$remote{localIP} ? "$$remote{localIP}/" : '' ) . $$remote{localPort} . '/' . $$remote{remoteIP} . '/' . $$remote{remotePort};
to
$txt .= ' -L ' . ( $$forward{localIP} ? "$$forward{localIP}:" : '' ) . $$forward{localPort} . ':' . $$forward{remoteIP} . ':' . $$forward{remotePort};
$txt .= ' -R ' . ( $$remote{localIP} ? "$$remote{localIP}:" : '' ) . $$remote{localPort} . ':' . $$remote{remoteIP} . ':' . $$remote{remotePort};
But that did not help.
Never mind. I found the other place the -L and -R were hiding. It is in /opt/pac/lib/method/PACMethod_ssh.pm. I just modified those same lines in that file and then everything worked just fine.