【Linux专题】http(s)代理
发布作者:微思网络 发布时间:2023-02-15 浏览量:0次
vim /etc/tinyproxy/tinyproxy.conf 添加防火墙策略 启动服务 查看端口 查看日志安装软件
yum install tinyproxy -y
# 查看配置文件
rpm -ql tinyprox修改配置文件
# Port: Specify the port which tinyproxy will listen on. Please note
# that should you choose to run on a port lower than 1024 you will need
# to start tinyproxy using root.
Port 8888
# Allow: Customization of authorization controls. If there are any
# access control keywords then the default action is to DENY. Otherwise,
# the default action is ALLOW.
# The order of the controls are important. All incoming connections are
# tested against the controls based on order.
#允许:自定义授权控件。如果有的话
#访问控制关键字,那么默认动作是拒绝。否则,
#默认操作是允许。
#控件的顺序很重要。所有传入连接都根据顺序对控件进行测试。
# Allow 127.0.0.firewall-cmd --add-port=8888/tcp
firewall-cmd --add-port=8888/tcp --permanent
firewall-cmd --list-allsystemctl enable tinyproxy.service
systemctl status tinyproxy.service
systemctl start tinyproxy.service
systemctl restart tinyproxy.servicnetstat -tnp
tail -f /var/log/tinyproxy/tinyproxy.lo