persist a socks tunnel to a proxy server using ssh (autossh):
$ autossh -M 0 -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" -N -D 9000 $proxy_node
weechat configuration:
/proxy add my_proxy socks5 localhost 9000
/server add example irc.example.irc
/set irc.server.example.proxy my_proxy
/connect example
i use this because i want to connect to specific servers directly, and others through a proxy.
depending on your use case, alternatives to this might include running the client or a bouner on the proxy node. the client could be a tui running under tmux you can attach, or a web service.