Difference between revisions of "Ubiquiti UNMS"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "==Environment== EC2 t3a.small CentOS 7 instance with 20GB disk. ==Process== <ref>https://help.ubnt.com/hc/en-us/articles/360000119728</ref> Make sure to add the new SWAP entry...")
(No difference)

Revision as of 09:20, 27 January 2020

Environment

EC2 t3a.small CentOS 7 instance with 20GB disk.

Process

[1] Make sure to add the new SWAP entry to fstab, as well as enable security update installation via yum-cron!

sudo dd if=/dev/zero of=/SWAP bs=1024 count=2097151
sudo chmod 0600 /SWAP
sudo mkswap /SWAP
sudo swapon /SWAP
sudo yum upgrade -y
sudo hostnamectl set-hostname unms.domain.tld
sudo yum -y install firewalld yum-cron
sudo reboot -h now
sudo systemctl enable --now firewalld
sudo systemctl enable --now yum-cron
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=81/tcp
sudo firewall-cmd --permanent --add-port=8443/tcp
sudo firewall-cmd --permanent --add-rich-rule='rule family=ipv4 source address=xxx.xxx.xxx.xxx accept'