UFW防火墙使用指南

139次阅读
没有评论
  • ufw help
  • Usage: ufw COMMAND
  • Commands:
  • enable enables the firewall
  • disable disables the firewall
  • default ARG set default policy
  • logging LEVEL set logging to LEVEL
  • allow ARGS add allow rule
  • deny ARGS add deny rule
  • reject ARGS add reject rule
  • limit ARGS add limit rule
  • delete RULE|NUM delete RULE
  • insert NUM RULE insert RULE at NUM
  • route RULE add route RULE
  • route delete RULE|NUM delete route RULE
  • route insert NUM RULE insert route RULE at NUM
  • reload reload firewall
  • reset reset firewall
  • status show firewall status
  • status numbered show firewall status as numbered list of RULES
  • status verbose show verbose firewall status
  • show ARG show firewall report
  • version display version information
  • Application profile commands:
  • app list list application profiles
  • app info PROFILE show information on PROFILE
  • app update PROFILE update PROFILE
  • app default ARG set default application policy

其他问题

UFW 的 Deny 与 Reject 的区别?

Deny 和 Reject 都可以阻止网络访问,不同之处就在于,reject阻止后会向请求者返回一条消息,说明请求被阻止了。

而 Deny 则直接阻止请求,并不向请求者返回任何消息回应。

正文完
 0
wujingquan
版权声明:本站原创文章,由 wujingquan 于2024-07-30发表,共计851字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)