首先修改配置文件 /etc/tsocks.conf 来指定socks服务器地址、端口号等,然后直接运行 tsocks program 就可以了。可以加参数。默认运行shell。
/etc/tsocks.conf
tsocks program