dante 付属?の socksify で ssh を socks proxy 対応に

% autossh -N -D 12345

で、トンネル掘って(autossh は、切断されたら自動で接続し直してくれる ssh みたいな)

/etc/dante.conf に以下を書いて、

route {
  from: 0.0.0.0/0   to: 0.0.0.0/0   via: 127.0.0.1 port = 12345
  protocol: tcp udp                # server supports tcp and udp.
  proxyprotocol: socks_v4 socks_v5 # server supports socks v4 and v5.
  method: none #username     # we are willing to authenticate via
           # method "none", not "username".
}

こう。

% socksify ssh