V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
v2byy
V2EX  ›  问与答

iptables 大佬来问了问题

  •  
  •   v2byy · Aug 7, 2021 · 1388 views
    This topic created in 1724 days ago, the information mentioned may be changed or developed.

    tproxy

    Transparent proxying often involves "intercepting" traffic on a router. This is usually done with the iptables REDIRECT target; however, there are serious limitations of that method. One of the major issues is that it actually modifies the packets to change the destination address -- which might not be acceptable in certain situations. (Think of proxying UDP for example: you won't be able to find out the original destination address. Even in case of TCP getting the original destination address is racy.)

    在一些透明代理的资料,上面这段话中的加粗部分如何理解? UDP 无法知道原始的 dst address ?

    Supplement 1  ·  Aug 9, 2021

    这里 看到REDIRECT 方式只支持TCP,而TPROXY方式可以支持TCP和UDP

    有个疑问是REDIRECT不支持UDP 透明代理的原因是什么?从iptables-extension文档看REDIRECT是可以支持-p UDP啊?

    2 replies    2021-08-07 15:31:57 +08:00
    undef404
        1
    undef404  
       Aug 7, 2021
    意思是只能看到代理的地址。看不到被代理的那个地址。
    v2byy
        2
    v2byy  
    OP
       Aug 7, 2021
    @undef404 UDP 代理跟 TP 代理有区别么?如果没有,这里为什么单独拿 UDP 出来说事?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3081 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:48 · PVG 22:48 · LAX 07:48 · JFK 10:48
    ♥ Do have faith in what you're doing.