Themyth
V2EX  ›  macOS

PF 防火墙规则....freebsd 怎么转过来呢

  •  
  •   Themyth · Apr 11, 2019 · 2296 views
    This topic created in 2764 days ago, the information mentioned may be changed or developed.
    譬如这条命令
    pass out on em0 inet proto tcp to port 22 divert-packet port 2222

    应该怎么转换称 mac os 下的 pf 规则呢
    4 replies  •  2019-04-12 09:43:12 +08:00
    towser
    towser
    Apr 11, 2019
    1
    不知道,宇宝。
    bao3
    bao3
    Apr 12, 2019 via iPhone
    2
    规则不是一样的吗?
    Themyth
    Themyth
    OP
    Apr 12, 2019
    3
    @bao3 我用 pfctl -vnf 测试 提示错误 但是不提示什么错误 但是删除 divert-packet port 2222 这个 和 前面的 out 然后在最前面加上 rdr 就不提示错误了,可是我不知道 Mac osx 下 什么命令来替代 divert-packet port 2222 郁闷啊
    Themyth
    Themyth
    OP
    Apr 12, 2019
    4
    @towser 不知道就帮我问问啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2827 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:03 · PVG 21:03 · LAX 05:03 · JFK 08:03
    ♥ Do have faith in what you're doing.