centos7安装UniFi控制器rpm包

post by rocdk890 / 2018-5-28 21:45 Monday linux技术
最近用了下ubnt的ap,感觉信号很好穿透很强,而且AC控制器都是软的,不想其他品牌的还要单独买个AC控制器,下面来给大家说说怎么在centos7上进行安装.
系统:centos 7(64位)

1.准备工作
systemctl stop firewalld.service
systemctl disable firewalld.service
yum -y install epel-release wget unzip gcc gcc-c++ make net-tools vim iptables-services

2.安装mongodb
vim /etc/yum.repos.d/mongodb-org.repo
[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc

yum -y install mongodb-org java-1.8.0-openjdk

3.下载UniFi Controller
yum install http://dl.marmotte.net/rpms/redhat/el7/x86_64/unifi-controller-5.7.20-1.el7/unifi-controller-5.7.20-1.el7.x86_64.rpm

20180313 : Released 5.7.20.
20180130 : Released 5.6.30.
20180108 : Released 5.6.29.
20171214 : Released 5.6.26.
20171120 : Released 5.6.22.
20171031 : Released 5.6.20.
20171024 : Released 5.6.19.
20171016 : Released 5.5.24.
20170731 : Released 5.5.20.
20170704 : Released 5.5.19.
20170627 : Released 5.4.18.
20170606 : Released 5.4.16.
20170109 : Released 5.3.8.
20161124 : Released 5.2.9.

ps:此rpm包是非官方制作的,但又被官方承认的.

systemctl enable unifi.service
systemctl start unifi.service

4.配置防火墙
vim /etc/sysconfig/iptables
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# enable ssh and snmp
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
# enable unifi  ports
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8443 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8880 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8843 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 27117 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 3478 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 10001 -j ACCEPT
# reject everything else
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT

保存后,启动iptables
systemctl enable iptables
systemctl start iptables

5.访问url
https://ip:8443

好了,这样UniFi已经安装好了.

ps:
https://community.ubnt.com/t5/UniFi-Wireless/Unofficial-RHEL-CentOS-UniFi-Controller-rpm-packages/td-p/1744595
夜空- 本站版权
1、本站所有主题由该文章作者发表,该文章作者与夜空享有文章相关版权
2、其他单位或个人使用、转载或引用本文时必须同时征得该文章作者和夜空的同意
3、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
4、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
5、原文链接:blog.slogra.com/post-728.html

标签: centos 安装 install rpm centos7 unifi ubnt

评论: