Ubuntuserver
Ubuntuserver
Ubuntuserver
ifconfig
sudo nano /etc/netplan/00-installer-config.yaml
network:
ethernets:
enp0s3:
dhcp4: false
addresses: [192.168.220.54/24]
gateway4: 192.168.220.1
version: 2
sudo netplan apply
sudo su -
mysql -u root -p radius < /etc/freeradius/3.0/mods-config/sql/main/mysql/schema.sql
exit
sudo mysql -u root -p -e "use radius;show tables;"
sudo ln -s /etc/freeradius/3.0/mods-available/sql /etc/freeradius/3.0/mods-enabled/
sudo apt install nano
sudo nano /etc/freeradius/3.0/mods-enabled/sql
ubah jadi dialect ="mysql"
ubah jadi driver = "rlm_sql_${dialect}"
mysql {
# If any of the files below are set, TLS encryption is enabled
# tls {
# ca_file = "/etc/ssl/certs/my_ca.crt"
# ca_path = "/etc/ssl/certs/"
# certificate_file = "/etc/ssl/certs/private/client.crt"
# private_key_file = "/etc/ssl/certs/private/client.key"
# cipher = "DHE-RSA-AES256-SHA:AES128-SHA"
# tls_required = yes
# tls_check_cert = no
# tls_check_cert_cn = no
#}
cd /etc/freeradius/3.0/
sudo nano /etc/freeradius/3.0/clients.conf
client 192.168.220.1 {
secret = radius
nastype = other
}
cd /var/www/html/
unzip ilham.zip
sudo chown -R www-data:www-data /var/www/html/OLT/
sudo chmod 777 /var/www/html -R