Install TinyProxy on CentOS 7

888u

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 tinyproxy

2. Configure TinyProxy

vi /etc/tinyproxy/tinyproxy.conf

Modify the Port port, the default is 8888 (can be changed to other ports, such as 8457)

Port 8888

Comment out Allow to allow everyone to access the proxy

#Allow 127.0.0.1

Hide the Via request header and remove the following comments

DisableViaHeader Yes

For 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 10

3. Start TinyProxy

systemctl start tinyproxy.service

More commands are as follows:

systemctl restart tinyproxy.service systemctl stop tinyproxy.service systemctl status tinyproxy.service systemctl enable tinyproxy.service

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

Method 2: Open port access

iptables -A INPUT -p tcp --dport 8888 -j ACCEPT

Restart the firewall

/etc/init.d/iptables restart

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

Install TinyProxy on CentOS 7

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码