PKP/Firewall

Back to System Admin

Type the following in the boxes, in a terminal as the root user. ufw allow 22 ufw allow 25 ufw allow 80 ufw allow 443 ufw allow 4949 ufw allow from 146.232.128.157 to any port 873 ufw allow from 146.232.125.194 to any port 873 ufw allow from 146.232.128.186 to any port 4426 ufw allow from 127.0.0.1 to any port 3306
 * ALLOW SSH
 * ALLOW SMTP
 * ALLOW HTTP
 * ALLOW HTTPS
 * ALLOW MUNIN
 * ALLOW RSYNC TO ARCHIVE.BIB.SUN.AC.ZA
 * ALLOW RSYNC TO ARK.BIB.SUN.AC.ZA
 * ALLOW NAGIOS
 * ALLOW MYSQL

ufw enable

ufw status You should now see the firewall rules. root@socialwork:~# ufw status Status: active

To                        Action      From --                        --      22                         ALLOW       Anywhere 25                        ALLOW       Anywhere 80                        ALLOW       Anywhere 443                       ALLOW       Anywhere 4949                      ALLOW       Anywhere 873                       ALLOW       146.232.128.157 873                       ALLOW       146.232.125.194 4426                      ALLOW       146.232.128.186 3306                      ALLOW       127.0.0.1 22                        ALLOW       Anywhere (v6) 25                        ALLOW       Anywhere (v6) 80                        ALLOW       Anywhere (v6) 443                       ALLOW       Anywhere (v6) 4949                      ALLOW       Anywhere (v6)