-
Notifications
You must be signed in to change notification settings - Fork 2
Server Installation
Gabriel Trabanco edited this page May 10, 2020
·
10 revisions
You should know how to use ssh or bash console to make all the installation. You should know and use VIM or NANO (text editors; I use vim
in this guide).
We are doing all this with Ubuntu Server 18.04, this could change depending on your Linux distribution but you can use this guide as helper.
- Ubuntu Server:
18.04
The installation of the server will not be covered by this guide - Free Radius (FR3):
3.0.16
- MariaDB:
10.4
- Apache:
2.4
- daloRadius:
1.1-2
sudo apt-get install freeradius freeradius-utils freeradius-config -y
sudo apt-get install freeradius-mysql -y
sudo systemctl enable freeradius
sudo apt-get install mariadb-server mariadb-client -y
sudo systemctl enable mariadb
sudo apt-get install apache2 -y
sudo apt-get install php libapache2-mod-php -y
sudo apt-get install php-common php-gd php-curl php-mysql php-gd php-mail php-mail-mime php-pear php-db -y
sudo apt install phpmyadmin php-mbstring php-gettext -y
sudo a2enmod mpm_prefork && sudo a2enmod php7.2 && sudo a2enmod ssl
sudo phpenmod mbstring
sudo service apache2 restart
pear install MDB2
pear install MDB2#mysqli
pear install DB
pear install -a Mail
pear install -a Mail_Mime
git clone -- https://github.com/lirantal/daloradius/ /var/www/daloradius && \
sudo chown www-data:www-data -R /var/www/daloradius && \
sudo chmod 644 /var/www/daloradius/library/daloradius.conf.php
mkdir -p /var/www/daloradius/contrib/scripts/maintenance/vendor/unifi-freeradius-scripts && \
git clone -- https://github.com/gtrabanco/unifi-freeradius-scripts /var/www/daloradius/contrib/scripts/maintenance/vendor/unifi-freeradius-scripts && \
cp /var/www/daloradius/contrib/scripts/maintenance/vendor/unifi-freeradius-scripts/app/config/dist.env /var/www/daloradius/contrib/scripts/maintenance/vendor/unifi-freeradius-scripts/app/config/.env && \
sudo chown www-data:www-data -R /var/www/daloradius
Now we have all stuff downloaded so right now we should configure all things to work together.
- Intention of the project (About this...)
- Requirements
- Network Scenario
- Server Installation
- Database Configuration
- FreeRadius Certificates generation
- FreeRadius Configuration
- Apache and daloRadius Configuration
- Unifi Controller configuration to use RADIUS
- Limit connected devices by users
- Bandwidth and Time Counters creation
- The Bandwidth Counter Problem
- Unifi FreeRaius Scripts complete param configuration
- Fix users that does not exists connected
- Automatically backups
- Alternatives to daloRadius