Difference between revisions of "Ubuntu Firewall"
From FusionPBX
(→Optional) |
(→Optional) |
||
Line 26: | Line 26: | ||
ufw enable | ufw enable | ||
ufw logging on | ufw logging on | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Blacklist== | ==Blacklist== |
Revision as of 16:23, 1 September 2014
Ubuntu includes ufw (uncomplicated firewall) by default, but it is not enabled.
Contents
Configure the Uncomplicated FireWall via CLI
Install UFW
sudo su apt-get install ufw
SSH
ufw allow ssh
HTTP/HTTPS - FusionPBX
ufw allow 80/tcp ufw allow 443/tcp
SIP and RTP - FreeSWITCH
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
Enable UFW
ufw default deny ufw enable ufw logging on
Blacklist
ufw insert 1 deny from x.x.x.x
Additional Commands
ufw status ufw delete 3
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