what is the best way to configure Ubuntu to use a SOCKS5 proxy for all network traffic? Server is ubuntu server. I want to push all outbound traffic through the proxy (apt-get, http, https, etc). Everything but ssh should hit the proxy server.
Each command has its own configuration parameters and/or configuration files to use proxy servers. For example,
At the very least, you can use
Adding a rules such as the above is enough to transparently redirect all outgoing traffic to your proxy server. Of course, you can customize the rule according to your needs like forwarding other ports.