SIP Firewall is a firewall for VoIP systems that allows filtering those connections that go to your PBX, so that it blocks attacks based on certain parameters such as origin country, IP address, user, domain, user-agent, etc.
-
Backend Backend managed with Kamailio 5 + MariaDB + PHP 7 (for the Rest API).
-
Frontend Frontend programmed with Angular 6 + Bootstrap 4 + Typescript.
Download of all components:
# cd /usr/local/src
# svn co https://github.com/Pepelux/SIP-Firewall.git
Install MariaDB and create database and users for Kamailio and web. Please choose strong passwords for all users:
# apt-get install mysql-server python-mysql
# mysql -u root -p
MariaDB [(none)]> CREATE DATABASE security;
Query OK, 1 row affected (0.01 sec)
MariaDB [(none)]> CREATE USER 'kamailio'@'localhost' IDENTIFIED BY 'STRONG_KAMAILIO_PASSWORD';
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> CREATE USER 'security'@'localhost' IDENTIFIED BY 'STRONG_WEB_PASSWORD';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON kamailio.* TO 'kamailio'@'localhost';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON security.* TO 'security'@'localhost';
Query OK, 0 rows affected (0.00 sec)
# mysql -u root -p security < /usr/local/src/SIP-Firewall/config/security.sql