优胜美地服务器自适应防火墙无法启动

时间:2015-03-13 21:54:32

标签: macos server firewall

我运行优胜美地服务器4.0,在新安装后,我尝试使用此处的说明启用自适应防火墙: OS X Server: How to enable the adaptive firewall - Apple Support

我得到第一行后:

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 for further details.

No ALTQ support in kernel
ALTQ related functions disabled

我也试过使用这个Apple help document

sudo /Applications/Server.app/Contents/ServerRoot/usr/libexec/afctl -c
sudo /Applications/Server.app/Contents/ServerRoot/usr/libexec/afctl -f

在第二行之后我收到了这个错误:

No ALTQ support in kernel
ALTQ related functions disabled
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
Token : 1809440486742197081
No ALTQ support in kernel
ALTQ related functions disabled

我的问题很简单:

  • 如何启用它?
  • 如何在启动时加载?
  • 非常重要:如何查看状态(启用或禁用)?

1 个答案:

答案 0 :(得分:0)

启用:sudo pfctl -E -f /etc/pf.conf

启动时加载:https://apple.stackexchange.com/questions/214917/editing-the-system-library-launchdaemons-com-apple-pfctl-plist-file

检查状态:sudo pfctl -s info