SNMP is short for Simple Network Management Protocol (SNMP). It is a common protocol for network management.
Open SNMP server
Open SNMP Servers can be used to collect privileged information from the system or to write new settings to the system, if not correctly configured. In addition, it can be used in performing a special type of DDoS attack, called an amplification attack.
Amplification attacks result in an attacker turning a small amount of bandwidth coming from a small number of machines into a massive traffic load hitting the attacked victim.
We advise you to only allow connections from trustworthy sources when configuring your SNMP server and firewall. You should also avoid using the widely used community strings 'public' or 'private', since these are easily guessed.
Usually, this boils down to blocking or restricting access to port 161/udp on your VPS. You can use the following commands below to see if your server is vulnerable:
$ snmpget -c public -v 2c <IP address here> 184.108.40.206.220.127.116.11.0
$ snmpget -c public -v 2c <IP address here> 18.104.22.168.22.214.171.124.0
$ nmap -sU -p 161 <IP address here>
How to close it?
$ sudo ufw deny 161
$ sudo firewall-cmd --zone=public --permanent --remove-port=161/udp
$ sudo firewall-cmd --reload
Article is closed for comments.