• 请不要在回答技术问题时复制粘贴 AI 生成的内容
iqoo
V2EX  ›  程序员

有熟悉 mac 的 pfctl 包过滤吗?

  •  
  •   iqoo · Oct 17, 2022 · 1214 views
    This topic created in 1347 days ago, the information mentioned may be changed or developed.

    mac 下虽然没有 linux 中的 iptables ,但通过 pfctl 也能实现一些包拦截功能。

    不过找了很久也没发现,匹配包长度的参数。难道这么基本的功能都没支持?当然 iptables 貌似本身也没匹配包长度的功能,而是通过 -m length 模块实现的。不知在 pfctl 中如何实现。

    1 replies    2022-10-17 19:42:09 +08:00
    Beebird
        1
    Beebird  
       Oct 17, 2022
    也很好奇 macos 该如何实现,期待高人解答。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3138 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:59 · PVG 20:59 · LAX 05:59 · JFK 08:59
    ♥ Do have faith in what you're doing.