Uncomplicated Firewall: Difference between revisions
Tags: Mobile edit Mobile web edit |
|||
Line 10: | Line 10: | ||
#Delete a rule | #Delete a rule | ||
sudo ufw delete <num> | sudo ufw delete <num> | ||
sudo ufw allow from [subnet] to any [port] proto tcp comment "cmt" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 04:29, 26 January 2021
Uncomplicated Firewall (UFW)
Usage
sudo ufw allow ssh/tcp [comment "comment"]
sudo ufw logging on
sudo ufw enable
sudo ufw status numbered
#Delete a rule
sudo ufw delete <num>
sudo ufw allow from [subnet] to any [port] proto tcp comment "cmt"
Rules are saved at:
/etc/ufw/user.rules
/etc/ufw/user6.rules
App Profiles
See app profiles
ufw app list