I've a router running OpenWRT, with the Dropbear SSH server, which I use to create an SSH tunnel from another machine (client, Ubuntu).

I connect to the server, creating the tunnel: ssh -D 9999 user@SSH.SERVER.IP.ADDRESS

then I start Chrome: /usr/bin/google-chrome-stable --incognito --proxy-server="socks5://127.0.0.1:9999" --host-resolver-rules="MAP * 0.0.0.0"

This is working perfectly, until I try to browse a no existing site, for instance if I browse for foo.bar, the SSH connection is closed, I guess by the server side (but not sure).

The log from the SSH client:

debug2: channel 10: dynamic request: socks5 host foo.bar port 80 command 1
debug3: send packet: type 90
debug2: channel 11: pre_dynamic: have 0
debug2: channel 11: pre_dynamic: have 18
debug2: channel 11: decode socks5
debug2: channel 11: socks5 post auth
debug2: channel 11: dynamic request: socks5 host foo.bar port 80 command 1
debug3: send packet: type 90
debug3: send packet: type 1
packet_write_wait: Connection to SSH.SERVER.IP.ADDRESS port 22: Broken pipe

This does NOT happen if I use an SSH server running on a (different) Ubuntu server, with the client configuration unchanged, so I suppose is a problem in the server side.

It is NOT a timeout problem, it happens immediately, and always (and only) by browsing a site that Chrome does not find.

Any suggestion?

(Last edited by blueneutrality on 19 Jan 2017, 14:35)