WARNING: All data on the disks will be erased.
Prepare a PC with two disks of the same size.
Boot the machine in LiveCD or LiveUSB mode.
Connect to the machine via SSH.
Run the following command in the console to display disk names:
The disk names will be displayed. In this example, the disk names are:
Clear the superblocks on the disks:
Clean the old metadata:
Create the RAID1 array:
When prompted with "Continue creating array?", confirm by entering "y".
You can now proceed with the installation as per the installation guide. When selecting the disk during installation, choose md0
.
TODO: You may need to modify the grub.cfg
file. Otherwise, there is no guarantee that the system will boot if one of the disks fails.
When working with telecom service providers, issues may occasionally arise. For example, the provider's server might become unresponsive or unavailable. This article provides a mechanism for notifying the system administrator via email.
To enable notifications, you will need to configure the SMTP client. See instructions in the section "Mail and Notifications".
Create a new "Dialplan Application".
Enter a name (e.g., Blacklist), a short number for the application (e.g., 99), and select "Code Type" - "PHP AGI Script".
Go to the "Program Code" tab:
Insert the following code:
Save the changes and copy the dialplan application identifier from the browser's address bar. It will look like "DIALPLAN-APP-CF967EE0".
Go to System → Customizing System Files and open the file /var/spool/cron/crontabs/root for editing.
Select the mode "Append to the end of the file", and in the black editing field at the bottom, insert the following code:
Adjust the file name according to your dialplan application identifier "DIALPLAN-APP-CF967EE0
Save the changes.
You're done!
Go to "General Settings" -> "Delete all system settings"
In the input field, paste the text "delete everything", click "Save settings"
Open the MikoPBX console menu. Use the keyboard to enter 9 to go to the PBX console.
Enter two commands sequentially:
After executing these commands, MikoPBX will reboot. The login to the web interface takes place with the login (admin) and password (admin) by default.
Perform a Backup of your current MikoPBX following .
Install MikoPBX on the new server. Follow the steps in this .
Upload the previously created MikoPBX backup to the new server following .
If the data size is large, it's practical to save the backup directly on the target machine. Here's the process:
Install MikoPBX on the new machine.
On the original MikoPBX, set up .
Ensure the connection is via SFTP.
Username and password should be those used for .
Set the Path on the server to "/storage/usbdisk1/mikopbx/backup/".
Wait for the backup to complete.
Shut down the original machine.
On the target machine, perform a .
Manual data migration script.
When publishing a PBX on a public IP address, the task arises to protect the speaker from scanners, pests who are trying to pick up passwords to SIP PBX accounts. If a simple numeric password is set, it will be picked up very quickly, which will cause losses.
For basic protection against scanners, fail2ban must be enabled. Additionally, you can fine-tune the iptables rules.
Go to the "System file customization" section
Go to edit the /etc/firewall_additional file
Set the "Add to end of file" mode, insert the following code:
The added rule allows blocking all incoming requests over the UDP protocol that contain the substring "friendly-scanner"
A more complete example of a set of rules:
This will protect you from most scanners that I mention User-Agent when requesting.