This Gist contains my IPTables rules for securing the Asterisk VoIP server. The "string" module is used to identify legitimate users and block attackers.
Learn how to set up your personal VoIP server
↓ ↓ ↓ Scroll down for the IPTables rules ↓ ↓ ↓
This Gist contains my IPTables rules for securing the Asterisk VoIP server. The "string" module is used to identify legitimate users and block attackers.
Learn how to set up your personal VoIP server
↓ ↓ ↓ Scroll down for the IPTables rules ↓ ↓ ↓
| ## This will be fixed by | |
| find /var/www -type d -exec chmod 755 {} \; | |
| find /var/www -type f -exec chmod 644 {} \; |
This tutorial is going to show you how to set up your own WireGuard VPN server on CentOS. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR
This tutorial assumes that the VPN server and VPN client are both running CentOS operating system.
Log into your CentOS server, then run the following commands to install WireGuard.
# CentOS 8| #!/bin/bash | |
| # codec-install.sh version 1.00 | |
| # | |
| # Copyright (C) 2018 James Pearson <jamesp@vicidial.com> LICENSE: AGPLv2 | |
| # | |
| # Codecs installed from http://asterisk.hosting.lv/ | |
| # Supports 64-bit Asterisk v.1.8, 11, 12, 13, 14, 15, 16 |
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
| #!/bin/bash | |
| # Shell script to backup MySQL database | |
| # Set these variables | |
| DBUSER="" # DB_USERNAME | |
| DBPASS="" # DB_PASSWORD | |
| DBHOST="" # DB_HOSTNAME | |
| # Backup Dest directory | |
| DEST="/DBBackup" |
| for i in `git status | grep deleted | awk '{print $3}'`; do git rm $i; done |
| sudo apt-get install perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl libfrontier-rpc-perl libterm-readline-gnu-perl libberkeleydb-perl gcc bison flex make | |
| mkdir src | |
| cd src/ | |
| wget http://opensips.org/pub/opensips/latest/src/opensips-1.6.2-notls_src.tar.gz | |
| tar zxvf opensips-1.6.2-notls_src.tar.gz | |
| cd opensips-1.6.2-notls/ | |
| make all include_modules=“db_mysql” modules | |
| sudo apt-get install mysql-server | |
| sudo make install include_modules=“db_mysql” modules | |
| sudo bash |
| #!/bin/bash | |
| # | |
| # ----------------------- | |
| # | |
| # This is a script that installs docker-ce (Docker Community Edition) on Debian 9 | |
| # Inspired by https://gist.github.com/frgomes/a6f889583860f5b330c06c8b46fa0f42 | |
| # | |
| # ----------------------- | |
| # Pre-requesite |