Tinyproxy [Simple and Easy-to-use proxy tool]
Install Tinyproxy
Yum-y Install Tinyproxy
Configure Tinyproxy
Vim/etc/tinyproxy/tinyproxy.conf
Modify port port, defaults to 8888
Port 8888
Comment out Allow to allow all people to access the proxy
Allow 127.0.0.1
Hide the Via request header and remove the following comment
Disableviaheader Yes
For more configuration items, here is a list of the default configuration files that do not need to be configured:
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
How do you open ports and shut down firewalls in CENTOS7?
Systemctl Stop Firewalld.service #停止firewall
Systemctl Disable Firewalld.service #禁止firewall开机启动
Open port
Firewall-cmd–zone=public–add-port=80/tcp–permanent
Command meaning:
–zone #作用域
–ADD-PORT=80/TCP #添加端口, Format: Port/Communication protocol
–permanent #永久生效, failure after reboot without this parameter