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

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

  •  
  •   Themyth · Apr 11, 2019 · 1887 views
    This topic created in 2573 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
        1
    towser  
       Apr 11, 2019
    不知道,宇宝。
    bao3
        2
    bao3  
       Apr 12, 2019 via iPhone
    规则不是一样的吗?
    Themyth
        3
    Themyth  
    OP
       Apr 12, 2019
    @bao3 我用 pfctl -vnf 测试 提示错误 但是不提示什么错误 但是删除 divert-packet port 2222 这个 和 前面的 out 然后在最前面加上 rdr 就不提示错误了,可是我不知道 Mac osx 下 什么命令来替代 divert-packet port 2222 郁闷啊
    Themyth
        4
    Themyth  
    OP
       Apr 12, 2019
    @towser 不知道就帮我问问啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   966 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 20:27 · PVG 04:27 · LAX 13:27 · JFK 16:27
    ♥ Do have faith in what you're doing.