我知道这很容易设置ufw的默认行为,例如ufw default deny ,但我该如何检查默认值是什么? 它不显示ufw status 。
尝试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