我对乌贼和iptable很陌生,我正在调查他们是否能够
完成手头的任务。我的squid.conf的一部分:
acl wf myport 8010
acl vp myport 8020
acl ss myport 8030
cache_peer IP1 parent 80 0 no-query originserver name=wflocal
cache_peer_access wflocal allow wf
cache_peer IP2 parent 80 0 no-query originserver name=vplocal
cache_peer_access vplocal allow vp
cache_peer IP3 parent 80 0 no-query originserver name=sslocal
cache_peer_access sslocal allow ss
cache_peer_access sslocal deny all
cache_peer_access vplocal deny all
cache_peer_access wflocal deny all我的鱿鱼ip是IP9
我需要HTTP 1、IP2 2和IP3在逻辑上
出现在单个URL层次结构下
就像这样:
http : // IP9:8010
http : // IP9:8020
http : // IP9:8030以上一切现在进展顺利。
但是HTTP服务器访问日志不能知道真正的用户IP,它只是记录.what的IP加速器(Squid),应该做的是让HTTP服务器IP1、IP2和IP3记录真正的用户ip。
谢谢你对此的任何见解!
发布于 2013-11-18 06:58:11
您的squid在HTTP报头中传递真实的ip地址。可以通过以下方式在squid.conf中禁用它
forwarded_for offhttps://serverfault.com/questions/555653
复制相似问题