PKP/Firewall

From Libopedia
Jump to navigation Jump to search
Back to System Admin

Type the following in the boxes, in a terminal as the root user.

ALLOW SSH
ufw allow 22
ALLOW SMTP
ufw allow 25
ALLOW HTTP
ufw allow 80
ALLOW HTTPS
ufw allow 443
ALLOW MUNIN
ufw allow 4949
ALLOW RSYNC TO ARCHIVE.BIB.SUN.AC.ZA
ufw allow from 146.232.128.157 to any port 873
ALLOW RSYNC TO ARK.BIB.SUN.AC.ZA
ufw allow from 146.232.125.194 to any port 873
ALLOW NAGIOS
ufw allow from 146.232.128.186 to any port 4426
ALLOW MYSQL
ufw allow from 127.0.0.1 to any port 3306
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)