Sarke Asked: 2015-01-27 08:28:23 +0800 CST2015-01-27 08:28:23 +0800 CST 2015-01-27 08:28:23 +0800 CST 检查 ufw 默认策略操作 772 我知道设置 ufw 的默认行为非常容易,例如ufw default deny,但是如何检查默认的 POLICY 操作是什么?它没有显示在ufw status. firewall 1 个回答 Voted Best Answer gm3dmo 2015-01-27T08:50:51+08:002015-01-27T08:50:51+08:00 尝试ufw status verbose: root@cmp:~# ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip 现在我将其更改为允许: root@cmp:~# ufw default allow Default incoming policy changed to 'allow' (be sure to update your rules accordingly) 相应地反映状态,默认已更改为允许: root@cmp:~# ufw status verbose Status: active Logging: on (low) Default: allow (incoming), allow (outgoing), disabled (routed) New profiles: skip
尝试
ufw status verbose
:现在我将其更改为允许:
相应地反映状态,默认已更改为允许: