ufw

ufw is firewall in Ubuntu.

To enable

To list available apps, run

To see status, run

Stop ufw

Start ufw

Open Ports

Here are some commands to open ports.

Following command open tcp ports 8000 to 9000.