新聞中心
FreeIPA是一款集成的安全信息管理解決方案。FreeIPA包含Linux (Fedora),389 Directory Server MIT Kerberos, NTP, DNS, Dogtag (Certificate System)等等身份,認證和策略功能,下面為大家分享一下Linux下安裝FreeIPA具體方法。

創(chuàng)新互聯(lián)公司專注于高淳企業(yè)網站建設,自適應網站建設,成都做商城網站。高淳網站建設公司,為高淳等地區(qū)提供建站服務。全流程按需設計,專業(yè)設計,全程項目跟蹤,創(chuàng)新互聯(lián)公司專業(yè)和態(tài)度為您提供的服務
環(huán)境準備
Centos7.7 虛擬機兩臺
IPA server 版本 4.6.5
地址信息
VM1作為服務端
VM2作為客戶端
| Virtual Machine 1/VM1 | Virtual Machine 2/VM2 | |
|---|---|---|
| IP/Netmask | 192.168.43.138/24 | 192.168.43.139/24 |
| Gateway | 192.168.43.2 | 192.168.43.2 |
| DNS | 114.114.114.114 | 114.114.114.114 |
DNS地址先設置成公網地址,因為需要從網絡安裝軟件包。安裝完軟件包之后需要VM1和VM2的dns地址改成192.168.43.138,也就是改成VM1的地址。
關閉防火墻
兩臺虛擬機都要關閉防火墻。
# 關閉firewalld 和 selinux設置成Permissive模式
[root@localhost ~]# systemctl stop firewalld && systemctl disable firewalld && setenforce 0
# 關閉selinux
[root@localhost ~]# sed -i '/^SELINUX/s/enforcing/disabled/' /etc/selinux/config
修改主機名和修改/etc/hosts文件
VM1修改內容:
[root@localhost ~]# hostnamectl set-hostname server.linuxprobe.com
[root@localhost ~]# echo '192.168.43.138 server.linuxprobe.com server’ >> /etc/hosts
[root@localhost ~]# echo ‘192.168.43.139 client.linuxprobe.com client' >> /etc/hosts
VM2修改內容:
[root@localhost ~]# hostnamectl set-hostname client.linuxprobe.com
[root@localhost ~]# echo '192.168.43.138 server.linuxprobe.com server’ >> /etc/hosts
[root@localhost ~]# echo ‘192.168.43.139 client.linuxprobe.com client' >> /etc/hosts
開機ntp時間同步
在VM1和VM2上面設置ntp服務器地址為 ntp.aliyun.com
# 注釋掉自帶的服務器地址
[root@localhost ~]# sed -i 's/^server/#&/' /etc/chrony.conf
# 添加ntp.aliyun.com
[root@localhost ~]# echo 'server ntp.aliyun.com iburst' >> /etc/chrony.conf
# 重啟chronyd服務
[root@localhost ~]# systemctl restart chronyd
# 查看ntp狀態(tài)
[root@localhost ~]# chronyc sources -v
210 Number of sources = 1
.-- Source mode '^' = server, '=' = peer, '#' = local clock.
/ .- Source state '*' = current synced, '+' = combined , '-' = not combined,
| / '?' = unreachable, 'x' = time may be in error, '~' = time too variable.
|| .- xxxx [ yyyy ] +/- zzzz
|| Reachability register (octal) -. | xxxx = adjusted offset,
|| Log2(Polling interval) --. | | yyyy = measured offset,
|| \ | | zzzz = estimated error.
|| | | \
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* 203.107.6.88 2 6 17 40 -5540us[-5762us] +/- 16ms
然后重啟一下VM1和VM2
[root@localhost ~]# reboot
在VM1中配置FreeIPA 服務端
安裝ipa-server
[root@server ~]# yum install -y ipa-server bind bind-dyndb-ldap ipa-server-dns
配置ipa-server
先設置網卡dns地址為本地地址。
然后配置ipa-server
[root@server ~]# ipa-server-install --setup-dns --forwarder=114.114.114.114
Centos7.7 安裝FreeIPA (一)Centos7.7 安裝FreeIPA (一)
Centos7.7 安裝FreeIPA (一)Centos7.7 安裝FreeIPA (一)
Centos7.7 安裝FreeIPA (一)Centos7.7 安裝FreeIPA (一)
# 為首次登陸的用戶創(chuàng)建主目錄 ,并且更新配置
[root@server ~]# authconfig --enablemkhomedir --update
分享文章:Linux下安裝FreeIPA具體方法
網頁URL:http://www.dlmjj.cn/article/dpceeic.html


咨詢
建站咨詢
