Hot answers tagged tsocks
3
You'll need two tsocks.conf, one for each SOCKS server and then use them as:
TSOCKS_CONF_FILE=~/.tsocks-A.conf tsocks some-cmd 10.1.1.2
and
TSOCKS_CONF_FILE=~/.tsocks-B.conf tsocks some-cmd 10.1.1.2
Alternatively, if the SOCKS servers support SOCKS4A or SOCKS5, you could use dante's socksify instead of tsocks and use host names if they have different ...
2
Firstly, you may be able to do everything, all of it through SSH config files. This is especially true if you're just SSHing to the end machines. See the SSH multihop config. With appropriately established SSH configs you could just assign destination names and type ssh servera or ssh serverb, instead of having to set up an SSH tunnel and then type tsocks ...
Only top voted, non community-wiki answers of a minimum length are eligible
