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

iptables 中的 output 流量走向是什么?

  •  
  •   sniperking1234 · Apr 29, 2020 · 2099 views
    This topic created in 2198 days ago, the information mentioned may be changed or developed.

    在网上查了下,一种说法是流量先经过路由,然后再到 output 链。

    另外一种是先经过 output 链,再经过路由,那么应该是哪一种呢。 image.png

    image.png

    5 replies    2020-04-29 20:41:20 +08:00
    julyclyde
        1
    julyclyde  
       Apr 29, 2020
    这主要取决于你查的方法对不对
    mikeguan
        2
    mikeguan  
       Apr 29, 2020 via Android   ❤️ 1
    个人倾向先 output 然后路由,因为 output 可以 dnat,改过后再确定路由怎么走
    zydrsnuo
        3
    zydrsnuo  
       Apr 29, 2020   ❤️ 1
    先 output 再路由, netfilter 文档里有. 我不能发链接,
    www.netfilter.org/documentation/HOWTO//netfilter-hacking-HOWTO-3.html#ss3.2
    sniperking1234
        4
    sniperking1234  
    OP
       Apr 29, 2020
    @mikeguan
    @zydrsnuo
    多谢解答
    linvon
        5
    linvon  
       Apr 29, 2020
    肯定是先 output 再路由的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5652 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 07:41 · PVG 15:41 · LAX 00:41 · JFK 03:41
    ♥ Do have faith in what you're doing.