IT/Software/Server Config/UFW: Difference between revisions

From msgwiki
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
No edit summary
No edit summary
Line 8: Line 8:


<code>sudo ufw status</code>
<code>sudo ufw status</code>
Add a port
<code>sudo ufw allow 22</code>
Close a port
<code>sudo ufw deny 22</code>
We normally open
http 22
https 443
ssh 22
nfs 111 2049

Revision as of 12:09, 13 January 2021

This is the default firewall in Linux

Turn it on

sudo ufw enable

Check Status

sudo ufw status

Add a port

sudo ufw allow 22

Close a port

sudo ufw deny 22

We normally open

http 22 https 443 ssh 22 nfs 111 2049