Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
lxf1992521
V2EX  ›  Linux

为什么使用 squid 做正向代理访问 google 时,有时半天也打不开?

  •  
  •   lxf1992521 · Sep 7, 2015 · 6838 views
    This topic created in 4081 days ago, the information mentioned may be changed or developed.
    情况是这样的:
    1. 我有一台国外的 VPS ,上面使用 squid 做了一个正向代理,端口仅向 127.0.0.1 开放;
    2. 使用本地 ssh 端口转发将本地的 127.0.0.1 的 3128 端口映射到 VPS 的 127.0.0.1:3128 ;
    3. 本地使用 firefox 的 autoproxy 做自动代理,自动更新屏蔽列表;

    使用 firefox 访问 google 搜索(google.com )时,时而会出现:
    1. 输入关键字、并点击了”搜索“按钮后,浏览器一直在载入中;
    2. 过一段时间后会提示“页面载入出错”;
    3. 然后在地址栏按一下“ Enter ”键之后,就会出现 google 的正常搜索结果。
    该现象不会在第一次使用 google.com 出现,访问几次 google 之后,就容易出现;

    在此期间打开 facebook 、 youtube 等网站都很正常;

    对 squid 日志不太了解,请高手解答一下,给出思路或者结果都行,谢谢!
    7 replies  •  2018-01-06 16:14:53 +08:00
    lhbc
    lhbc
    Sep 7, 2015
    1
    ssh -D 容易断流
    推荐 Shadowsocks 或者 stunnel
    lxf1992521
    lxf1992521
    OP
    Sep 7, 2015
    2
    @lhbc 不是动态转发,是本地端口转发(-L ),转的 squid 端口。
    Daddy
    Daddy
    Sep 7, 2015
    3
    squid 高一尺
    Wall 高一丈
    lxf1992521
    lxf1992521
    OP
    Sep 7, 2015
    4
    @Daddy 不是直接访问 squid ,而是通过 ssh 的加密隧道访问 squid 的。只要墙不拦截 ssh 的加密数据流,应该就和墙没有关系吧。
    lhbc
    lhbc
    Sep 7, 2015
    5
    n 年前 wall 的 DPI 就具备了检测 ssh 流量的功能
    popu111
    popu111
    Sep 12, 2015 via Android
    6
    所以为啥不直接用 squid 呢?
    roychan
    roychan
    Jan 6, 2018
    7
    楼主这个问题解决了吗…
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1411 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:47 · PVG 00:47 · LAX 08:47 · JFK 11:47
    ♥ Do have faith in what you're doing.