欢迎光临散文网 会员登陆 & 注册

【Linux专题】http(s)代理

2023-02-15 14:37 作者:微思网络  | 我要投稿



安装软件


yum install tinyproxy -y
# 查看配置文件
rpm -ql tinyprox



修改配置文件


vim /etc/tinyproxy/tinyproxy.conf

# 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-all



启动服务


systemctl enable tinyproxy.service
systemctl status tinyproxy.service
systemctl start tinyproxy.service
systemctl restart tinyproxy.servic



查看端口


netstat -tnp



查看日志


tail -f /var/log/tinyproxy/tinyproxy.lo



【Linux专题】http(s)代理的评论 (共 条)

分享到微博请遵守国家法律