Re: ssh port forwarding changed under 5-CURRENT vs. STABLE?
On Sat, Nov 08, 2003 at 11:01:58PM +, David Taylor wrote: Is something else (e.g. another ssh session) already bound to that port? nope -- and I've tried all sorts of ports other than 8000 too: (I'm assuming you do have a lo0 device with 127.0.0.1) duh! that's exactly it, I didn't have lo0 config'd with 127.0.0.1 -- now that I do, it's fine! Thanks, Adi ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ssh port forwarding changed under 5-CURRENT vs. STABLE?
On Thu, 06 Nov 2003, Aditya wrote: On Thu, Nov 06, 2003 at 03:29:21PM -0800, Kris Kennaway wrote: On Thu, Nov 06, 2003 at 01:43:43PM -0800, Aditya wrote: 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: Is something else (e.g. another ssh session) already bound to that port? nope -- and I've tried all sorts of ports other than 8000 too: (I'm assuming you do have a lo0 device with 127.0.0.1) Have you tried binding it to the address on the interface which your host will send packets to the remote host over? -- David Taylor [EMAIL PROTECTED] The future just ain't what it used to be ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ssh port forwarding changed under 5-CURRENT vs. STABLE?
On Sat, 08 Nov 2003, David Taylor wrote: Have you tried binding it to the address on the interface which your host will send packets to the remote host over? Erm, wait, I don't know what I was thinking there. ssh doesn't let you specify the local address it binds to. All I can say is it works here... However, changing the address on lo0 to 10.9.9.9 results in: debug1: channel 0: new [port listener] debug1: Local forwarding listening on 127.0.0.1 port 8000. bind: Can't assign requested address But: # ifconfig lo0 inet 127.0.0.1 $ ssh -L8000:www.freebsd.org:80 [host] gives [snip] debug1: channel 0: new [port listener] debug1: Local forwarding listening on 127.0.0.1 port 8000. debug1: fd 5 setting O_NONBLOCK debug2: fd 5 is O_NONBLOCK debug1: channel 1: new [port listener] So, it could be an idea to check the output of ifconfig lo0. -- David Taylor [EMAIL PROTECTED] The future just ain't what it used to be ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
ssh port forwarding changed under 5-CURRENT vs. STABLE?
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 5, 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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ssh port forwarding changed under 5-CURRENT vs. STABLE?
On Thu, Nov 06, 2003 at 01:43:43PM -0800, Aditya wrote: 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: Is something else (e.g. another ssh session) already bound to that port? Kris pgp0.pgp Description: PGP signature
Re: ssh port forwarding changed under 5-CURRENT vs. STABLE?
On Thu, Nov 06, 2003 at 03:29:21PM -0800, Kris Kennaway wrote: On Thu, Nov 06, 2003 at 01:43:43PM -0800, Aditya wrote: 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: Is something else (e.g. another ssh session) already bound to that port? nope -- and I've tried all sorts of ports other than 8000 too: hilbert[ttyp1]:aditya~ netstat -an | grep -i LIST hilbert[ttyp1]:aditya~ hilbert[ttyp1]:aditya~ sockstat -4 USER COMMANDPID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS aditya ssh1289 3 tcp4 66.117.144.206:54376 66.117.144.211:22 root dhclient 1287 5 udp4 *:68 *:* Adi ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]