This guide will take you through the process of deploying a basic open-source AAA infrastructure on a dedicated instance of Debian 11 or 12 using the following components:

Please note that this guide has been fully tested on a Debian 11 environment, and the specific versions of the components used are mentioned in the above list.

Article is edited by: Administrator - 7-03-2024, 11:41


To remove MariaDB from your system, follow these steps based on your operating system:

On Ubuntu/Debian:

  1. Stop MariaDB service:

    Copy code
    sudo systemctl stop mariadb
  2. Uninstall MariaDB packages:

    Copy code
    sudo apt-get purge mariadb-server mariadb-client
  3. Remove MariaDB dependencies:

    Copy code
    sudo apt-get autoremove
  4. Delete MariaDB data directory:

    Copy code
    sudo rm -rf /var/lib/mysql
  5. Remove MariaDB configuration files:

    Copy code
    sudo rm -rf /etc/mysql
  6. Remove MariaDB logs:

    Copy code
    sudo rm -rf /var/log/mysql

Download script to set up OpenVPN server in 5 minutes on Ubuntu

wget -O


Running to install OpenVPN server

Type the following command:
$ sudo chmod +x
$ sudo bash

Make sure you provide needed information:

Welcome to this OpenVPN road warrior installer!

Which protocol should OpenVPN use?
   1) UDP (recommended)
   2) TCP
Protocol [1]: 1

What port should OpenVPN listen to?
Port [1194]: 

Select a DNS server for the clients:
   1) Current system resolvers
   2) Google
   4) OpenDNS
   5) Quad9
   6) AdGuard
DNS server [1]: 2

Enter a name for the first client:
Name [client]: iphone

OpenVPN installation is ready to begin.
Press any key to continue...

Run the following systemctl command to stop the OpenVPN service:

sudo systemctl stop openvpn-server@server.service
sudo systemctl start openvpn-server@server.service
sudo systemctl restart openvpn-server@server.service
sudo systemctl status openvpn-server@server.service

Step 1:
sudo apt update
sudo apt install unzip curl software-properties-common
sudo apt install apache2
sudo systemctl status apache2


sudo systemctl enable apache2

Step 2:

sudo apt install php
php -v

sudo apt install php-mbstring php-mysql php-curl php-cli php-dev php-imagick php-soap php-zip php-xml php-imap php-xmlrpc php-gd php-opcache php-intl
sudo systemctl restart apache2

Step 3:

sudo apt install mariadb-server
sudo mysql -u root -p
CREATE USER 'laravel_user'@'localhost' IDENTIFIED BY 'secretpassword';
GRANT ALL ON laravel_db.* TO 'laravel_user'@'localhost';

Step 4: Install Composer

curl -sS | php

sudo mv composer.phar /usr/local/bin/composer

sudo chmod +x /usr/local/bin/composer

composer --version

Step 5: Install Laravel on Ubuntu

cd /var/www/html

sudo composer create-project laravel/laravel my_laravelapp
cd my_laravelapp

php artisan | less

OutputLaravel Framework 9.38.0

sudo chown -R www-dаta:www-data /var/www/html/my_laravelapp

sudo chmod -R 775 /var/www/html/my_laravelapp

Step 6: Configure Apache to serve the Laravel site

sudo nano /etc/apache2/sites-available/laravel.conf

<VirtualHost *:80>
ServerAdmin admin@
DocumentRoot /var/www/html/dipwifi/public
<Directory /var/www/html/dipwifi>
AllowOverride All
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

sudo a2ensite laravel.conf

sudo a2enmod rewrite

sudo systemctl restart apache2

apachectl configtest

OutputSyntax OK 

Step 7: Access Laravel from a web browser

To install SSH (Secure Shell) on most Linux distributions, it's typically already included by default. However, if for some reason it's not installed or you need to reinstall it, you can use your package manager to install it.

  1. Shut your guest Ubuntu down
  2. On Virtualbox go to Setting>network>Adapter1>Advanced>Portforwarding
  3. Name=SSH Hostport=2022 (or any port but 22) Guestport(22)
  4. Reboot your guest
  5. On you host open a Putty or whatever you use for SSH
  6. ssh user@ -p2022 (or any port you mentioned as hostport)
  7. Have fun you are in

/interface bridge filter add action=accept chain=input disabled=no in-bridge=LAN ip-protocol=udp mac-protocol=ip src-address= src-port=67-68

/interface bridge filter add action=accept chain=input disabled=no in-bridge=LAN mac-protocol=ip src-address=

/interface bridge filter add action=drop chain=input disabled=no in-bridge=LAN mac-protocol=ip


Please, rate the engine

Other polls...