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 ↓ ↓ ↓
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.
RefUrl → https://www.oreilly.com/library/view/software-architecture-patterns/9781491971437/ch04.html#idp1166176 | |
RefURL → https://blog.mwaysolutions.com/2014/06/05/10-best-practices-for-better-restful-api/ | |
:: 200 – OK – Eyerything is working | |
:: 201 – OK – New resource has been created | |
:: 204 – OK – The resource was successfully deleted | |
:: 304 – Not Modified – The client can use cached data | |
:: 400 – Bad Request – The request was invalid or cannot be served. The exact error should be explained in the error payload. E.g. „The JSON is not valid“ | |
:: 401 – Unauthorized – The request requires an user authentication | |
:: 403 – Forbidden – The server understood the request, but is refusing it or the access is not allowed. | |
:: 404 – Not found – There is no resource behind the URI. |
::: RefUrl | |
→ https://www.tecmint.com/12-tcpdump-commands-a-network-sniffer-tool/ | |
→ https://linuxtechlab.com/learn-use-tcpdump-command-examples/ | |
→ https://www.thegeekstuff.com/2010/08/tcpdump-command-examples | |
::: Install TCPdump command → yum install tcpdump | |
::: To write tcpdump from 'server_A'(eth0) IP to 'server_B' |
========================================== | |
⭐ For cdr table ⭐ | |
========================================== | |
------------------------------------------ | |
👉 /etc/odbc.ini | |
------------------------------------------ | |
[odbcAsterisk] | |
Driver = MySQL ODBC 5.3 Unicode Driver | |
Description = MySQL connection to ‘asterisk’ database |
inxi -Fxzd // View all information about machine. | |
******************************************************** | |
1. sudo yum -y update | |
2. sudo yum -y install httpd | |
3. sudo firewall-cmd --permanent --add-port=80/tcp | |
sudo firewall-cmd --permanent --add-port=443/tcp | |
4. sudo firewall-cmd --reload | |
5. service httpd start // Start Apache server | |
6. service httpd status // View Apache Server Status | |
7. service httpd stop // Stop Apache Server |