Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

Click here to view code image
matthew@seymour~:$ sudo ufw enable


To disable UFW, replace enable with disable.


Table 20.1 Useful Commands for UFW


Command Actions Performed

Usage:  sudo    ufw
command

enable Enables  the firewall

disable Disables    the firewall

reload Reloads  the firewall    to  ensure  changes are applied

default
allow|deny|reject

Sets    default policy

logging on|off Toggles  logging (can    also    be  used    to  set the level   of
logging; see the man page)

allow   ARGS Adds   an  allow   rule

deny    ARGS Adds   a   deny    rule

reject  ARGS Adds   a   reject  rule

limit   ARGS Adds   a   limit   rule

delete  RULE Deletes    the rule

status  shows Shows the firewall    status

status  numbered Shows  the firewall    status  as  a   numbered    list    of  rules

Usage:  ufw
command

status  verbose Shows   verbose firewall    status
Free download pdf