7 Firewall via GUI with gufw

The gufw provides GUI interface for ufw.

$ sudo apt install -y gufw

Running gufw requires user password.

gufw is the fllowing. Because ufw is already enabled, Status is ON.

Add rule with clicking "+" button at the Rules tab. Select application rule at the Preconfigured tab. SAMBA will allow 137,138/udp and 139,445/tcp. At the Simple tab, you can select
port number to be allowed.