Use Squid in Ubuntu to set a machine as a proxy server

Source: Internet
Author: User
In Ubuntu, use Squid to set a server as a proxy server. First install squidsudoapt-getinstallsquid and then check that squid is installed there and whereissquid is used to modify the squid configuration file sudogedit/etc/squid. conf and then locate # Andfinallydenyallotheraccesstothisproxyhttp _

Use Squid in Ubuntu to set a machine as a proxy server

First install squid
Sudo apt-get install squid

Then let's take a look at the squid installation.
Whereis squid
Modify the squid configuration file
Sudo gedit/etc/squid. conf

Then, locate
# And finally deny all other access to this proxy
Http_access deny all # Change deny to allow any user to use your machine as a proxy.

The following two sentences are separated:
# Default:
# Http_reply_access allow all // remove the comments of this sentence ~~~ Haha

Step 3: Start Squid
Sudo squid-z
Sudo/etc/init. d/squid reload
Sudo/etc/init. d/squid restart
In this way, the default port number of your proxy server is 3128, And you can set this host as the proxy on other machines.
If you want some users with fixed ip segments to use this proxy, you can try baidu again...

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.