Last update at :2024-07-01,Edit by888u
The following is based on CentOS 7. TinyProxy and Squid are both excellent proxy software. TinyProxy is relatively niche, small and simple, and fully meets the needs of ordinary users. All operate under SSH.
1. Install TinyProxy
yum -y install tinyproxy2. Configure TinyProxy
vi /etc/tinyproxy/tinyproxy.confModify the Port port, the default is 8888 (can be changed to other ports, such as 8457)
Port 8888Comment out Allow to allow everyone to access the proxy
#Allow 127.0.0.1Hide the Via request header and remove the following comments
DisableViaHeader YesFor more configuration items, the following is a list of some configuration files that are default and do not require configuration:
PidFile "/var/run/tinyproxy/tinyproxy.pid" LogFile "/var/log/tinyproxy/tinyproxy.log" LogLevel Info MaxClients 100 MinSpareServers 5 MaxSpareServers 20 StartServers 103. Start TinyProxy
systemctl start tinyproxy.serviceMore commands are as follows:
systemctl restart tinyproxy.service systemctl stop tinyproxy.service systemctl status tinyproxy.service systemctl enable tinyproxy.service4. Close the firewall or open port access (choose one, it is recommended to open the port)
Method 1: Turn off the firewall
/etc/init.d/iptables stopMethod 2: Open port access
iptables -A INPUT -p tcp --dport 8888 -j ACCEPTRestart the firewall
/etc/init.d/iptables restart5. Use the browser to verify whether it takes effect
The picture below is the settings of the SwitchySharp extension of the chrome browser
If you can browse twitter, youtube, etc., it means success.
Recommended site searches: US virtual space, registration information, virtual space host, ip proxy address virtual host space, telecommunications server, how to register company domain name, mainland China ip proxy, cn domain name price, virtual space host,
发表评论