Ubuntu comes with a firewall, Which is disabled by default. The explanation is that there is no open network service installed by default and there is no need to block incoming malicious connections. 1. Use terminal to manage. Start/Close the firewall (SEE): sudoufwenable/disablelinuxidc @ www-linuxidc-com :~ $ Sudoufwenable [sudo] passwordforlinuxidc
Ubuntu comes with a firewall, Which is disabled by default. The explanation is that there is no open network service installed by default and there is no need to block incoming malicious connections.
1. Use terminal for management
A. Start/Close the firewall (SEE): sudo ufw enable/disable
Linuxidc @ www-linuxidc-com :~ $ Sudo ufw enable
[Sudo] password for linuxidc:
Enable and activate the firewall when the system starts
B. Allow/Block network activities:
Allow/block ssh service (SEE): sudo ufw allow/block ssh
Linuxidc @ www-linuxidc-com :~ $ Sudo ufw allow ssh
[Sudo] password for linuxidc:
Rule added
Rule added (v6)
Linuxidc @ www-linuxidc-com :~ $
Sudo ufw block
C. Allowed/Blocked ports:
Sudo ufw allow/block 8888
D. View the Firewall Status (SEE)
Sudo ufw status
Linuxidc @ www-linuxidc-com :~ $ Sudo ufw status
[Sudo] password for linuxidc:
Status: Activated
To action from
-----
22 ALLOW Anywhere
22 ALLOW Anywhere (v6)