Ubuntu Firewall

Ubuntu includes ufw (uncomplicated firewall) by default, but it is not enabled.

Configure the Uncomplicated FireWall via CLI
sudo su apt-get install ufw
 * 1) Install UFW

#SSH ufw allow ssh

ufw allow 80/tcp ufw allow 443/tcp
 * 1) FusionPBX

ufw allow proto tcp from any to any port 5060:5069 ufw allow proto udp from any to any port 5060:5069 ufw allow 5080 ufw allow 5081 ufw allow proto udp from any to any port 16383:32768
 * 1) FreeSWITCH - Sofia

ufw default deny ufw enable ufw logging on
 * 1) Enable UFW

Optional Ports ufw allow 1719/udp ufw allow 1720/tcp
 * 1) H323

ufw allow 3478/udp ufw allow 3479/udp
 * 1) STUN

ufw allow 5002/tcp
 * 1) MLP protocol server

ufw allow 5003/udp
 * 1) Neighborhood service

Additional Commands ufw status ufw delete 3

Happy Firewalling!

More Information
https://help.ubuntu.com/10.04/serverguide/C/firewall.html

http://pka.engr.ccny.cuny.edu/~jmao/node/28

https://help.ubuntu.com/community/UFW man ufw