我是Squid和iptables的新手,正在调查他们是否能够做到
完成一项任务。 我的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服务器IP1,IP2和IP3在逻辑上
出现在单个URL层次结构下
喜欢这个 :
http : // IP9:8010 http : // IP9:8020 http : // IP9:8030
以上都进展顺利
但是HTTP服务器的访问日志并不知道“真正的”用户IP,而只logging了加速器(squid)的IP地址。我应该如何让HTTP服务器IP1,IP2和IP3logging“真正的”用户IP。
感谢您对此的任何见解!
您的鱿鱼传递您的真正的IP地址在HTTP标头。 你可以通过在squid.conf中禁用它
forwarded_for off