- Extended Scenario: Accessing Virtual Machines on a VLAN
- Connecting Using SOCKS with Other Client Types
- Next Steps
Connecting Using SOCKS with Other Client Types
In all the examples so far, we've used Firefox as an example to connect to the SOCKS proxy. This is because Firefox has a simple option to act as a SOCKS client.
Some software applications also have options to connect as a SOCKS client. For example, Java supports this using the socksProxyHost system property:
$ java -DsocksProxyHost=<SOCKS proxy> <MainClass>
For applications that don't support SOCKS directly, you can use a proxifier—a program that will intercept TCP packets and route them through a proxy. Examples of proxifiers include the open source ProxyChains and various commercial products.
ProxyChains is a Linux utility that can intercept TCP packets from a software application and redirect them through a SOCKS proxy, even if the application doesn't support SOCKS directly. On RHEL, install ProxyChains with the following command:
$ sudo yum install proxychains
On SUSE and Ubuntu, install ProxyChains with this command:
$ sudo apt-get install proxychains
Edit the file /etc/proxychains.conf to set the IP address and port for your SOCKS proxy. To use it, enter this command:
$ sudo proxychains <application_name>
where <application_name> is the command for the application that you hope to use.