我在 Ubuntu 10.04.4 中设置了一个透明代理,其中 firehol 和 tinyproxy 适用于 http,但我无法让它适用于 https。
直接连接到 tinyproxy 可以正常工作,因为以下命令可以正常完成:
env http_proxy=localhost:8888 curl http://www.google.com
env https_proxy=localhost:8888 curl https://www.google.com
Run Code Online (Sandbox Code Playgroud)
Http 透明代理也可以正常工作:
curl http://www.google.com
Run Code Online (Sandbox Code Playgroud)
但是当直接使用 https 访问 google 时,命令就挂了:
curl https://www.google.com
Run Code Online (Sandbox Code Playgroud)
这是 firehol 和 tinyproxy 的完整配置文件。请注意,除了透明代理之外,我对使用 firehol 没有兴趣。
firehol.conf:
transparent_proxy "80 443" 8888 proxy
interface any world
client all accept
server all accept
Run Code Online (Sandbox Code Playgroud)
tinyproxy.conf(除了上游代理之外的所有默认值):
User nobody
Group nogroup
Port 8888
Timeout 600
DefaultErrorFile "/usr/share/tinyproxy/default.html"
StatFile "/usr/share/tinyproxy/stats.html"
Logfile "/var/log/tinyproxy/tinyproxy.log"
LogLevel Info
PidFile "/var/run/tinyproxy/tinyproxy.pid"
MaxClients 100
MinSpareServers 5
MaxSpareServers 20
StartServers …
Run Code Online (Sandbox Code Playgroud) 我对如何在 tinyproxy 上设置用户名/密码限制感到困惑(这样不是所有人都可以访问它 - ip alow/block 在我的设置中使用有限)。任何指针?
谢谢!
我正在尝试配置 tinyproxy,当我通过 Proxifier 检查器检查它时,它会在日志文件中抛出以下错误:
CONNECT Oct 22 11:39:59 [13230]: Connect (file descriptor 6): 81-*-*-*.utk.ru [81.*.*.*]
CONNECT Oct 22 11:39:59 [13230]: Request (file descriptor 6): CONNECT www.google.com:80 HTTP/1.1
INFO Oct 22 11:39:59 [13230]: Refused CONNECT method on port 80
INFO Oct 22 11:39:59 [13230]: no entity
Run Code Online (Sandbox Code Playgroud)
Proxifier 向我展示了这个错误:
[44:38] Error : the proxy server cannot establish connection with www.google.com:80
The error may indicate that the proxy server doesn't support SSL connections.
It means that the proxy can be used for web …
Run Code Online (Sandbox Code Playgroud) 我正在尝试通过 TinyProxy 提供一些页面。
当我将 Firefox 代理设置更改为:
本地主机:8888(是的,我正在使用隧道),我得到的只是一个白屏?
当我注释掉这一行时:
Listen x.x.x.x (the address of my server)
Run Code Online (Sandbox Code Playgroud)
我收到 403 错误:
Access denied
The administrator of this proxy has not configured it to service requests from your host.
Generated by tinyproxy version 1.8.1.
Run Code Online (Sandbox Code Playgroud)
至少当我收到此错误时,我确信我的隧道正在工作......
但是,有人可以帮我配置 TinyProxy 吗?
提前谢谢了,
tinyproxy ×5
proxy ×3
haproxy ×1
http-proxy ×1
linux ×1
networking ×1
nginx ×1
squid ×1
ubuntu ×1