How to Find Users Who Have Opened a TCP Connection to Your Server on a Certain Number

How to Find Users Who Have Opened a TCP Connection to Your Server on a Certain Number

Finding multiple connections to your server over an IP can always be useful. In many cases, when you receive a DDOS attack, you will see multiple connections over an IP. A command that can be very useful, especially in such a case. For example, you want to list IPs that open more than 50 connections on your server. In this case, you can use the following code;

netstat -n --tcp --udp --numeric-hosts | \
grep -v 127.0.0.1 | \
awk '{if (/(tcp|udp)/) { print $5 }}' | \
sed 's/:.*//' | \
sort | \
uniq -c | \
sort -n | \
awk '{if ($1 > 50) {print "Baglanti Sayisi: "$1"\t"$2; }}'

When you execute the command, you receive an output similar to the following; (Of course, if more than 50 connections are available from a single IP)

How to Overcome the “No More Sessions are allowed for User Hotspot Mikrotik”

How to Overcome the “No More Sessions are allowed for User Hotspot Mikrotik”

Fadıl

Login Error Message Hotspot Mikrotik there are many. In his prior articles, we have reviewed the Explanation of Error Message in Mikrotik Hotspot Login page.This time we will discuss one of Message Error during log Hotspot Mikrotik, namely, No More Sessions are allowed for User $ (username).

Hotspot Login Page Mikrotik

Hotspot Login Page Mikrotik

Why does the error message no more sessions are allowed for user $ (username) should be discussed?

Installing ClamAV Anti-Virus on CentOS And Scanning For Viruses on The Server

Fadıl

By installing ClamAV anti-virus on the server, you can scan for viruses on your server. Below we will try to explain how to install and scan.

Since there is no ClamAV in the standard CentOS libraries, let’s start by adding the EPEL repo to CentOS as the best way;

yum install epel-release -y

Then, with the command below, ClamAV anti-virus and Clamav Clamd Deamon is installed;

yum install clamav clamd

With the following commands, we set Clamd to start automatically with the system and start it;

How to Make Voucher Hotspot Mikrotik via User Manager

Fadıl

Make use Voucher Hotspot Mikrotik User Manager is quite complicated. Many things must be configured to be able to generate Voucher Hotspot Mikrotik Mikrotik in the User Manager. By using a voucher system, we can more easily in selling Internet connection via WiFi Hotspot Mikrotik to customers. We do not need to add the user each time a customer wants to subscribe to a WiFi Hotspot. We stayed to generate username and user password automatically, and print it in the form of vouchers to be sold to customers.

Recover (Change) Linux Mysql Root Password

Recover (Change) Linux Mysql Root Password

Fadıl

Multiple passwords can sometimes be difficult to keep in mind. One of these is when we forget the MySql Linux root password. If you have forgotten the MySQL root password on Linux, you don’t have to worry about that, you can recover it by following the steps below;

First, restart MySQL by giving the following command.

mysqld --skip-grant-tables

Then connect to MySQL with MySQL utility without using the password.

mysql> update mysql.user set Password=Password(‘new password’) where User=’root’;
mysql> flush privileges;

Finally, restart MySQL again normally without --skip-grant-tables.