温馨提示  2024年 6月我们已经停止开发者板块文章内容更新,谢谢来访。存档数据
知识 2023-08-28 22 次阅读

centos下怎么安装配置tinyproxy

   

本文主要讲解了“centos下怎么安装配置tinyproxy”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“centos下怎么安装配置tinyproxy”吧!

centos 下安装 tinyproxyyum install -y tinyproxy启动、停止、重启# 启动service tinyproxy start# 停止service tinyproxy stop# 重启service tinyproxy restart相关配置

默认配置文件路径

/etc/tinyproxy/tinyproxy.conf

允许所有人使用代理,注释allow 127.0.0.1

# allow 127.0.0.1

修改监听端口号, 默认 8888

port 1234

代理请求过滤,示例仅允许代理请求 anoyi.com 的内容,配置如下

# 指定过滤内容的文件位置filter /etc/tinyproxy/filter# 使用 url 过滤而不是 domainsfilterurls on# 允许代理过滤文件里的地址,若不允许,此处设置为 nofilterdefaultdeny yes

然后在/etc/tinyproxy/filter文件添加如下内容

anoyi.com查看代理请求日志tail -f /var/log/tinyproxy/tinyproxy.log

感谢各位的阅读,以上就是“centos下怎么安装配置tinyproxy”的内容了,经过本文的学习后,相信大家对centos下怎么安装配置tinyproxy这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是云,小编将为大家推送更多相关知识点的文章,欢迎关注!