by znpy · 6y ago · 0 comments
ssh -D 8000 -q -C -N user@sshhost
point firefox to use localhost:8000 as socksproxy, and all your internet traffic appears to have originate from sshhost. ssh -L 60001:host2:22 -N user1@host1 &
ssh -L 60002:host3:22 -p 60001 -N user2@localhost &
ssh -D 8000 -p 60002 -N user3@localhost &1) That's what the ProxyCommand config option is for. Most systems will have netcat or nc installed which do provide SOCKS client support
2) Or just use the -J option argument, which IIRC was originally implemented as a transformation to -oProxyCommand='ssh ... [netcat/nc]' but now is a simple transformation to the newer -W option argument, which doesn't depend on netcat/nc being installed on the intermediate host.
You can apparently set the firefox flag "network.proxy.socks_remote_dns"
Never tried it myself!
Now, perhaps firefox does not need to do a lookup; it sends the hostname to the remote end.
But best be safe?