我正在尝试使用pf
.
这是预期的旅行路线:
Client to port 5800 ? Router (Yes, port forwarding is setup here) ? Mac with PF ? PF ? 192.168.1.246 port 5900
Run Code Online (Sandbox Code Playgroud)
以下是我打算使用的规则(可能是错误的):
rdr pass inet proto tcp from any to any port 5800 -> 192.168.1.246 port 5900
Run Code Online (Sandbox Code Playgroud)
当我/etc/pf.conf
直接添加规则并运行时,sudo pfctl -f /etc/pf.conf
我得到:
$ sudo pfctl -f /etc/pf.conf
pfctl: Use of -f option, could result in flushing of rules
present in the main ruleset added by the system at startup.
See /etc/pf.conf …
Run Code Online (Sandbox Code Playgroud)