Use the ssh tunnel program in ubuntu to build an http proxy with privoxy
Gstms is an ssh tunnel program in gnome desktop environment. You can avoid entering an ssh command on the command line to build an ssh proxy.
The installation is simple. sudo apt-get install gstm.
After running, you can create a new tunnel, and then create a dynamic redirection for this tunnel. The port number must be greater than 1024. Otherwise, you must have administrator privileges.
The installation screenshot is as follows:
Most browsers can use socks proxies, but some software such as synaptic does not support socks and can only use http proxies. Therefore, we also need to install a program for converting socks to http.
Sudo apt-get install privoxy
After installation, you only need to change the configuration/etc/privoxy/config to enable socks to switch to http. Find the bold line below in config, remove the comment #, and change the port number to the one set in the above ststamp.
Listen-address localhost: 8118
# Forward-socks5/127.0.0.1: 9999.
Save and then restart privoxy.
Sudo/etc/init. d/privoxy restart
To sum up, we have enabled a socks proxy to listen to port 9999, and then converted the socks proxy of port 9999 to the http proxy of port 8118 through privoxy.
It's amazing. This article was written during the installation of ubuntu10.10, waiting for a long time to download various files. You can also use firefox during installation. This is a good idea!