大网数据广告活动
服务器运维问答

Squid proxy does not consider localhost traffic

· 52CE 我爱测

I installed squid on Kali linux, configured my browser to send whole traffic through squid . However, squid doesn't consider localhost traffic. Actually, I run this command to check log file while I'm browsing: tail -f /var/log/s…

问题原文

原帖链接 · ThisIsMe · CC BY-SA 4.0

I installed squid on Kali linux, configured my browser to send whole traffic through squid. However, squid doesn't consider localhost traffic. Actually, I run this command to check log file while I'm browsing:

tail -f /var/log/squid/access.log

It considers all traffics except localhost one, and when I go to localhost in my browser, the below line is submitted in the log file by squid:

127.0.0.1 TCP_TUNNEL/200 39 CONNECT www.google.com:443 - HIER_DIRECT/172.217.21.196 

I don't know why it submits google when I go to localhost. I configured squid using Install Squid.

已采纳解答

原帖链接 · Richard · CC BY-SA 4.0

Maybe you should configure your browser correctly, if you use firefox, simply go to Options --> General --> Network Proxy --> Settings , and in the No Proxy for section, clear localhost, 127.0.0.1.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-07-28)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。