【问题标题】:squid proxy from localhost configs来自本地主机配置的 squid 代理
【发布时间】:2016-02-01 14:53:48
【问题描述】:

我正在尝试通过我的本地机器让远程机器(我可以通过 ssh 访问)访问互联网。

目前,我已经在本地设置了一个 squid 服务器,目的是使用反向隧道,例如 http://ubuntuforums.org/showthread.php?t=1765935

不幸的是,由于对代理的工作原理一无所知,我似乎无法让本地代理工作。

目前:

squid3 代理在本地端口 3128 运行。$nmap localhost 确认:3128/tcp open squid-http

iptables 设置为只允许从 localhost 访问端口 3128:https://serverfault.com/questions/247176/iptables-only-allow-localhost-access

squid conf 不变。

本地测试:$export http_proxy=localhost:3128

本地测试:$lynx google.com

失败。

有什么想法吗?

【问题讨论】:

  • 添加$export https_proxy=localhost:3128

标签: squid


【解决方案1】:

试试;

添加

$export https_proxy=localhost:3128

$lynx google.com

谷歌重定向到 https

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-05-06
    • 2013-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-13
    • 1970-01-01
    相关资源
    最近更新 更多