廢話不多說,此版本完全照著做,就可以透過802.1x 進行無線網路驗證,只是驗證的是user這個檔案的帳號清單,有點雞肋,有空再來補一篇 Join AD Domain 文章。 # dnf -y install httpd php # dnf -y install php-{cli,curl,mysqlnd,devel,gd,pear,mbstring,xml,pear} # pear install DB # pear install MDB2 # yum install mariadb-server # systemctl start mariadb # systemctl status mariadb # systemctl enable mariadb.service # mysql -u root 設定root密碼 MariaDB [(none)]> update mysql.user set password=password('123456') where User="root" and Host="localhost"; MariaDB [(none)]> flush privileges; MariaDB [(none)]> CREATE DATABASE radius; MariaDB [(none)]> GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY "StrongradIusPass"; MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> quit 安裝 FreeRADIUS 套件 # dnf install -y freeradius freeradius-utils freeradius-mysql # systemctl enable --now radiusd.service # systemctl status radiusd.service # firewall-cmd --add-service=radius --permanent # firewall-cmd --reload # mysql -u