Check if port 161 is open
On the server, see what is listening:
sudo ss -tulpn | grep ':161 '
From another machine, test reachability:
nc -zv your-server.example.com 161
Block port 161 from the internet
With UFW (Ubuntu/Debian):
sudo ufw deny 161
With firewalld (RHEL/AlmaLinux/Rocky):
sudo firewall-cmd --permanent --remove-port=161/udp && sudo firewall-cmd --reload