Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
sudo ufw enable

From your desktop, use Telnet to confirm 22 port is open,

Code Block
languagebash
telnet Ubuntuservername 22 # if you server is not named, user the server's IP address

If telnet worked you should see something like this,

Code Block
languagebash
Connected to Ubuntuservername.
Escape character is '^]'.
^]

Finally check that all your rules are in place,

...

Code Block
languagebash
sudo ufw delete allow 443 # Deletes an enabled rule.

To put comment

You can put comment in the rules and have it show up in the ufw status

Code Block
languagebash
sudo ufw allow 22 comment 'enable TCP'

Article Improvements

Warning

This article can be improved in the following areas.

...