Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2003 13:43:43 -0800
From:      Aditya <aditya@grot.org>
To:        current@freebsd.org
Subject:   ssh port forwarding changed under 5-CURRENT vs. STABLE?
Message-ID:  <20031106214343.GA91634@mighty.grot.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031106214343.GA91634>