Skip to content
Look up and open a port

Port 161: SNMP port for network monitoring

Port 161 is the default port for the Simple Network Management Protocol (SNMP) over UDP. This tool shows you the port details and generates firewall commands to restrict access to your monitoring server.

Built by Justin Schuessler

Try the commands on your own VPS, with root access and your own firewall.

Add multiple ports one at a time, up to 12.

Or choose a preset

Ports

161/UDPSNMP

Network services · Well-known port · OSI layer 7

A monitoring system such as Zabbix queries device and server metrics.

IANA: officially registered as snmp

Do not expose this port to the internet: Allow access only from a specific IP address, or connect via VPN or SSH tunnel.

Firewall rule (inbound)

At least one port should not be open to everyone. Choose “Specific IP” instead.

Firewall commands

Open port

sudo ufw allow 161/udp
Check port
Notes on ufw

For Ubuntu and Debian. ufw creates the rule for both IPv4 and IPv6. If ufw is disabled, allow SSH first (sudo ufw allow 22/tcp), then enable it with sudo ufw enable, or you'll lock yourself out.

On a ZAP-Hosting VPS with an active network firewall, you also need to allow the port in the Customer Panel.

Port 161 explained

What is port 161 used for?

Purpose

A monitoring system uses port 161 to query switches, routers, printers, UPS devices, and servers for values such as bandwidth, CPU load, temperature, and network interface status. An SNMP agent runs on the device and provides the values in a tree of OIDs, described in MIBs. The manager, such as Zabbix, LibreNMS, or PRTG, sends queries to port 161 and receives the responses. If a device reports an event on its own, it uses traps on port 162.

Origin and standard

SNMPv1 was standardized in 1990 in RFC 1157 and is still found in many network devices. SNMPv2c introduced more efficient bulk queries, among other changes, but retained community-string authentication. Only SNMPv3, described in RFCs 3411 through 3418, introduced proper authentication and encryption. IANA has assigned port 161 to the “snmp” service and port 162 to the “snmptrap” service.

Typical use

  • Querying traffic, errors and status on switch and router ports
  • Monitoring servers, UPS devices, printers, and data center cooling systems
  • Data source for monitoring systems such as Zabbix, LibreNMS or PRTG
  • Inventory of network devices using manufacturer and system information

Security

SNMPv1 and SNMPv2c transmit the community string in plain text, and many devices ship with the “public” community for read access. Anyone who intercepts or guesses that string can read the entire configuration—or even change it if they have a write community string. Use SNMPv3 with authentication and encryption whenever possible. Allow access to port 161 only from your monitoring server's IP, never from the entire Internet. Also check which address the agent listens on in its configuration, such as snmpd.conf.

More ports

Related ports

These ports are often part of the same setup. Click one to see its explanation and firewall commands.

View all well-known ports and the complete IANA list

Port list source: IANA Service Name and Transport Protocol Port Number Registry, as of October 22, 2026. iana.org

Discover more

More tools

FAQ

Frequently asked questions

Quick answers about port 161.

By default, SNMP uses UDP on port 161 for queries and port 162 for traps. SNMP over TCP is possible but rarely used in practice. A UDP rule is usually enough for your firewall.

On port 161, the agent on the device listens for and responds to queries from the monitoring system. Port 162 works in the opposite direction: the manager receives traps that a device sends when an event occurs. So you open port 161 on the monitored device and port 162 on the monitoring server.

Allow access only from your monitoring server's IP, for example with sudo ufw allow from 203.0.113.10 to any port 161 proto udp. All other requests will then be dropped. You should also configure which sources may send queries in the SNMP agent itself.

With SNMPv1 and v2c, the community string is the only password, and it travels across the network unencrypted. SNMPv3 supports authenticated users and can also encrypt the data. Unless you're using a fully isolated management network, v3 is the right choice.

Any more questions?

Contact Support
Your own server?

Try the commands on your own VPS

With a ZAP-Hosting VPS, you have root access, can set up services and firewall rules yourself, and can immediately see which ports are open.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all network tools