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

Aditya aditya at grot.org
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 -L8000:www.freebsd.org:80 myserver.net

where myserver.net is a machine with Internet access, I could expect that
connecting to 127.0.0.1 port 8000 on my laptop would port forward packets
to/from www.freebsd.org:80

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
  www.freebsd.org:80
  debug1: Local forwarding listening on 127.0.0.1 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?

Thanks,
Adi


More information about the freebsd-current mailing list