...
Code Block |
---|
|
sudo ufw enable |
Use From your desktop, use Telnet to confirm 22 port is open,
Code Block |
---|
|
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 |
---|
|
Connected to Ubuntuservername.
Escape character is '^]'.
^] |
Finally check that all your rules are in place,
...
Code Block |
---|
|
sudo ufw delete allow 443 # Deletes an enabled rule. |
You can put comment in the rules and have it show up in the ufw status
Code Block |
---|
|
sudo ufw allow 22 comment 'enable TCP' |
Article Improvements
Warning |
---|
This article can be improved in the following areas. |
...