阿里云 Ubuntu安装Squid

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-29 09:26   11   0

/etc/squid/squid.conf

http_port 0.0.0.0:3128

cache_mem 64 MB
maximum_object_size 4 MB
cache_dir ufs /var/spool/squid 100 16 256
access_log /var/log/squid/access.log
acl localnet src 10.0.0.0/8
http_access allow localnet
http_access allow all
visible_hostname squid.taotie.dev

cache_mgr admin@test.com

http_port 3128

查询到的为tcp6,代表这里监听到的是ipv6的端口,需要将http_port 后面修改为

netstat -apn |grep 3128

http_port 0.0.0.0:3128

这代表着监听ipv4的3128端口,当然最后别忘记了使用iptables打开ubuntu的外网访问的3128端口


参考:https://blog.csdn.net/zhang201322/article/details/52094024

如有侵权,联系删除

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP