Share this page : facebooktwitterlinkedinmailfacebooktwitterlinkedinmail
1. Install controller

 

Prerequisite:

To install the UniFi controller, we need to install mongodb, Java JDK, unzip, wget first.

yum -y install epel-release

yum -y install mongodb-server java-1.8.0-openjdk unzip wget

Install Unifi controller and

yum install http://dl.marmotte.net/rpms/redhat/el7/x86_64/unifi-controller-5.8.24-1.el7/unifi-controller-5.8.24-1.el7.x86_64.rpm
systemctl enable unifi.service
systemctl start unifi.service

Then we need to open a couple of ports for controller to function:

#ssh   
sudo firewall-cmd --add-port=22/tcp --permanent
# Unifi - Device Inform & Management   
sudo firewall-cmd --add-port=8080:8081/tcp --permanent
#https management
sudo firewall-cmd --add-port=8443/tcp --permanent
#Unifi - Guest Portal Redirect (SSL)
sudo firewall-cmd --add-port=8843/tcp --permanent
# Unifi - Guest Portal Redirect
sudo firewall-cmd --add-port=8880/tcp --permanent
#Webmin
sudo firewall-cmd --add-port=10000:10010/tcp --permanent
#AP discovery
sudo firewall-cmd --add-port=10001/udp --permanent

Give the controller a static IP address:

sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0

Then open a web browser and type:

https://ip_address_of_controller:8443