如何使用透明代理设置squid_session

发布于 2024-10-10 00:33:24 字数 206 浏览 0 评论 0原文

我想设置一个透明的鱿鱼代理来监视它正在运行的同一个盒子。它需要使用squid_session 首先向用户强制显示登录屏幕,然后允许网页浏览,直到空闲超时。这是在 Ubuntu 10.10 上,使用鱿鱼 2.7。我想使用squid3,但我不确定它是否得到很好的支持。类似这样的教程的链接也会很有帮助,因为我没有发现任何非常有用的东西。 编辑:我的设置是:鱿鱼安装在计算机上鱿鱼是计算机A的透明代理。

I want to set up a transparent squid proxy to monitor the same box it is running on. It needs to use squid_session to first force a login screen to the user, and then allow web browsing until an idle timeout. This is on Ubuntu 10.10, with squid 2.7. I'd like to use squid3 but I'm not sure it is well supported. A link to a tutorial for something like this would also be helpful, as I have not found anything very helpful.
Edit: my setup is: squid installed on computer A squid is a transparent proxy for computer A.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

孤星 2024-10-17 00:33:24

您需要将所有流量从 eth0 转发到 eth1(eth0-内部 lan 接口,eth1-外部 lan 接口)。
需要创建一个 acl 来对 Web 访问进行时间戳记。

You need to forward all your traffic from eth0 to eth1 ( eth0-internal lan interface, eth1-external lan interface ).
Need to create an acl for toimestamping the web access.

笑着哭最痛 2024-10-17 00:33:24

假设计算机A的IP是192.168.0.1。

运行:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.0.1:3128

然后:

service iptables save

保存设置。

Assuming that IP for computer A is 192.168.0.1.

Run:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.0.1:3128

Then:

service iptables save

To save settings.

梦醒灬来后我 2024-10-17 00:33:24

关于squid_session,请参阅手册页(man squid_session)。这是 Debian 服务器中的鱿鱼 2.7 的工作示例:

external_acl_type session ttl=3600 negative_ttl=0 children=1 concurrency=200 %SRC /usr/lib/squid/squid_session -t 3600
acl session external session
acl splash dstdomain example.net
http_access deny !session !splash
deny_info http://example.net/splash?url=%s session

Regarding squid_session, see manual page (man squid_session). This is a working example with squid 2.7 in a Debian Server:

external_acl_type session ttl=3600 negative_ttl=0 children=1 concurrency=200 %SRC /usr/lib/squid/squid_session -t 3600
acl session external session
acl splash dstdomain example.net
http_access deny !session !splash
deny_info http://example.net/splash?url=%s session
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文