ssh port forwarding changed under 5-CURRENT vs. STABLE?

Aditya aditya at
Thu Nov 6 13:43:44 PST 2003

I've searched the archives and perused manpages and config files yet can't
figure out why this isn't working:

- I'm trying to port forward from a remote machine to my laptop, something I
did without a problem using 4-STABLE

- If I do:

  ssh -v -N -4

where is a machine with Internet access, I could expect that
connecting to port 8000 on my laptop would port forward packets

However, ssh seems to be having trouble binding to port 8000 locally (and I've
tried port 50000, 57000, 2000 and all behave similarly):

  debug1: Connections to local port 8000 forwarded to remote address
  debug1: Local forwarding listening on port 8000.
  bind: Can't assign requested address
  channel_setup_fwd_listener: cannot listen to port: 8000
  Could not request local forwarding.

and I can't see any reason why the binding would fail:

  hilbert[ttyp1]:aditya~> sysctl net.inet.ip.portrange.reservedlow
  net.inet.ip.portrange.reservedlow: 0
  hilbert[ttyp1]:aditya~> sysctl net.inet.ip.portrange.reservedhigh
  net.inet.ip.portrange.reservedhigh: 1023

what am I missing?


More information about the freebsd-current mailing list