nrg2000
V2EX  ›  问与答

本机如何配置 iptables 配合 squid3 作为透明代理?

  •  
  •   nrg2000 · Jul 25, 2014 · 3838 views
    This topic created in 4342 days ago, the information mentioned may be changed or developed.
    本机安装了squid3[3128], polipo[8123], ssh[7070本机端口]

    因本机浏览器访问网页,只有 OUTPUT 才能截取得到.
    iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 3128
    但这样所有对80端口的访问都会指回3128, 就会对网页访问产生回路.
    ...
    iptables 怎么配置呢?
    nrg2000
        1
    nrg2000  
    OP
       Jul 25, 2014 via iPad
    各位大神指导下呀!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2935 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:01 · PVG 23:01 · LAX 08:01 · JFK 11:01
    ♥ Do have faith in what you're doing.