Uncomplicated Firewall: Difference between revisions
Created page with "Uncomplicated Firewall (UFW) ==Usage== <syntaxhighlight lang="bash"> sudo ufw allow ssh/tcp sudo ufw logging on sudo ufw enable sudo ufw status </syntaxhighlight>" |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo ufw allow ssh/tcp | sudo ufw allow ssh/tcp [comment "comment"] | ||
sudo ufw logging on | sudo ufw logging on | ||
sudo ufw enable | sudo ufw enable | ||
sudo ufw status | sudo ufw status numbered | ||
#Delete a rule | |||
sudo ufw delete <num> | |||
sudo ufw allow from [subnet] to any port [port] proto tcp comment "cmt" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Rules are saved at: | |||
* <code>/etc/ufw/user.rules</code> | |||
* <code>/etc/ufw/user6.rules</code> | |||
==App Profiles== | |||
See app profiles | |||
<pre> | |||
ufw app list | |||
</pre> |
Latest revision as of 20:59, 10 July 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 [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