Use the sshtunnel program of ubuntu to build an http proxy with privoxy

Source: Internet
Author: User
In ubuntu, the sshtunnel program (gSTM) works with privoxy to set up the http proxy (gSTM). It is an sshtunnel 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. After running, you can create an ssh tunnel program in ubuntu, and use the program ststm with privoxy to build an http proxy.
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.