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...