UDP · Port 161IANA Registered

Port 161 — SNMP (Simple Network Management Protocol)

Used by network monitoring systems (Prometheus, Zabbix, Nagios) to poll routers, switches, and servers for performance metrics.

⚡ Primary Use Cases & Environments

  • ✓Network bandwidth polling
  • ✓Router interface status
  • ✓Hardware health metrics

🛡️ Security & Vulnerability Analysis

SNMPv1 and SNMPv2c send community strings (passwords) in cleartext and frequently use default strings like "public" or "private". Always upgrade to SNMPv3 with authPriv encryption.

🔧 Network Diagnostics & Inspection

1. Check Active Listening Sockets (Local Host)
Terminal Command
$ sudo ss -uln | grep :161
Inspects whether any local process daemon is bound to port 161.
2. Remote Port & Service Scan (Nmap)
Terminal Command
$ nmap -p 161 -sU --script snmp-info <target-ip>
Probes target IP to determine whether port 161 is open, closed, or filtered.
3. Wireshark Capture / Display Filter
snmpWireshark Filter

🔥 Firewall Configuration Rules (UFW & iptables)

UFW (Uncomplicated Firewall)
Terminal Command
$ sudo ufw allow 161/udp
Applies a persistent Linux UFW firewall rule for port 161.
iptables Command
Terminal Command
$ sudo iptables -A INPUT -p udp --dport 161 -j ACCEPT
Appends a direct netfilter kernel rule to the INPUT chain for port 161.

❓ Frequently Asked Questions (FAQ)

What is the danger of exposing SNMP port 161 to the public internet?

Attackers can read complete system configurations, interface maps, routing tables, and device serial numbers, or execute amplification reflection DDoS attacks.

Related Networking Tools & Guides