Skip to content
AdminKit

Is port 20000 (DNP3) exposed to the internet?

AdminKit's short answer: if port 20000 on your public IP accepts a connection, a DNP3 outstation such as a utility RTU may take reads and control commands from anyone online, because DNP3 only checks the sender when Secure Authentication is built in and switched on. This guide shows how to test it and close it.

By AdminKit team, Netbase JSC · Updated

Key takeaways

  • Port 20000 is the registered port for DNP3, the protocol utility control centres use to poll and command outstations such as RTUs and IEDs.
  • Plain DNP3 has no login step. Unless Secure Authentication is implemented and configured on both ends, an outstation acts on any well-formed request it receives.
  • An exposed 20000 can hand over live readings and accept write, operate and restart requests, depending on what the device supports.
  • AdminKit’s port check does not test 20000, and the Modbus check speaks only Modbus. Test 20000 by hand from outside, then remove the path from the internet.

What is listening on port 20000?

DNP3, the Distributed Network Protocol, connects a control centre’s master station to field equipment. The DNP Users Group overview describes it as an open protocol built for interoperability between substation computers, RTUs, IEDs and master stations in the electric utility industry, and notes that it has spread to water and waste water, transportation, and oil and gas. DNP3 was first adopted as IEEE Std 1815 in 2010, and the Users Group owns and maintains the specification. It belongs to the same machine protocols family as Modbus and BACnet: protocols written for closed control networks that now often share wires with ordinary IP traffic.

DNP3 started on serial links. The Users Group’s own DNP3 primer, revised in 2005, explains that many vendors carry DNP3 over TCP/IP instead, with the link-layer frames embedded in TCP/IP packets, and that this “permitted economical data collection and control between widely separated devices.” That convenience is exactly how a DNP3 port ends up on an address the internet can reach.

The port number comes from the IANA registry, which lists dnp on 20000 for TCP, UDP and SCTP, and a separate dnp-sec entry on 19999. Network monitoring tools use the same default: the Zeek DNP3 analyzer defines DNP3::ports as 20000/tcp and 20000/udp. These are the kinds of devices that answer on it:

DeviceTypical roleWhy it matters if reachable from outside
Remote terminal unit (RTU)Collects field readings and drives outputs at a substation, pump station or well siteIts points and control outputs are what DNP3 reads and operates
Intelligent electronic device (IED)Protection relay, meter or controller with its own DNP3 serverMay accept control and configuration requests directly
Data concentrator or gatewayCollects data from many outstations and answers the master on their behalfOne address can expose a whole site’s data
Protocol converterTranslates serial DNP3 or other protocols to DNP3 over IPGives an IP path to devices that were serial-only
Master or front-end processorPolls outstations from the control centreUsually the client, but some also listen for outstation connections

Why does plain DNP3 accept commands without checking who sent them?

DNP3 was designed for links that were private by construction: a leased line, a radio channel or a fibre run owned by the utility. Its layers deal with noisy circuits, error detection, fragmentation and event reporting. Checking the identity of the sender was not part of the original request and response model, so a base DNP3 outstation decides what to do with a request based only on its addressing and contents.

The DNP Users Group added that check later as Secure Authentication. Its summary of Next Gen DNP Security describes DNP3 Secure Authentication version 6 as the DNP Secure Session Layer, an implementation of the IEC 62351-5 standard that “provides authentication and integrity between devices at the application layer”, now also supports encryption, and can co-exist with the earlier SAv5. The same document describes AMP, the Authorization Management Protocol, for central role-based authorization and key management.

That is a sound direction, but it works only where both the master and the outstation implement it and someone has set up keys or certificates for them. A device that predates Secure Authentication, or one where the feature exists but was never configured, still runs plain DNP3. Field equipment in utilities stays in service for a long time, so plain DNP3 links are common. If one of them is reachable from the internet on port 20000, anything that can open a connection to it can send it well-formed DNP3.

What can someone do through an exposed port 20000?

DNP3 requests carry an application function code that says what the master wants. The Suricata DNP3 keywords reference lists the function code names its rules can match, which is a convenient public list of what the protocol can ask a device to do. A selection:

Function code namesWhat the request is forWhy it matters on an exposed device
readAsk for current values and eventsLeaks live process data: breaker states, levels, flows, alarms
writeWrite data objects to the device, such as its clockCan alter what the device holds or reports
select, operate, direct_operate, direct_operate_nrDrive control outputsThese are the requests that open, close, start or stop equipment
cold_restart, warm_restart, stop_applRestart the device or stop an applicationCan interrupt monitoring and control at the site
open_file, delete_file, activate_configFile transfer and configurationCan touch the device’s stored files and settings where supported
authenticate_req, authenticate_resp, authenticate_errSecure Authentication exchangesPresent only where Secure Authentication is in use

Not every outstation supports every function, and many sites protect critical outputs with interlocks and local controls. The point for this page is narrower: none of those requests needs a password on a plain DNP3 link. How much harm a stranger can do depends on what the device controls and which functions it accepts, not on any check DNP3 itself performs. Our glossary entry on DNP3 covers the protocol’s background in one page.

How does a DNP3 outstation end up reachable from the internet?

Almost never on purpose. The usual paths look like this:

  • A cellular or DSL router at a remote site. Many small substations, pump stations and wells reach the control centre over a commercial router. If that router forwards port 20000 to the RTU so the master can poll it, the same forward works for everyone else too.
  • A vendor or integrator support path. A temporary forward set up for commissioning or troubleshooting stays in place after the work is done.
  • A flat network behind the firewall. The OT segment shares a network with office systems, and a broad firewall rule written for another purpose also allows 20000.
  • A gateway on a public address. A protocol converter or data concentrator gets a public IP because the circuit it sits on was provisioned that way, and nobody adds an access list.

Remote sites make this worse because there is often nobody on site to notice, and the router configuration lives with whoever installed it.

How do you read AdminKit’s port check for port 20000?

AdminKit’s open ports check tests the public IP you are browsing from, using TCP connections to a fixed list: 23, 554, 1883, 8883, 502, 7547, 80, 443 and 8080. It also lists BACnet/IP (47808) and CoAP (5683) as not scanned, because they run over UDP. Port 20000 is not on that list, so the check says nothing about DNP3 either way. Confirm the address you are testing first with what is my IP.

Read a port check result from a site that runs DNP3 like this:

What the result showsWhat it tells you about DNP3
“0/9 TCP port(s) open” with an OK statusOnly the nine listed TCP ports were tested. Port 20000 may still be reachable
502 (Modbus/TCP) openA Modbus device on the same site answers from outside. Run the Modbus check and test 20000 as well
80, 443 or 8080 open on an RTU siteA device or router web interface is exposed. Close it, and test 20000 too

AdminKit’s Modbus exposure check checks whether the public IP you are connecting from has a Modbus/TCP industrial device reachable from the internet on port 502 by default, reading back only the device’s own identity. It speaks Modbus, not DNP3, so it is not a DNP3 test. If your site runs both protocols, see is Modbus TCP (port 502) exposed for the Modbus side.

How do you confirm port 20000 from outside?

Use a machine outside the site’s network, such as a laptop on a mobile hotspot, and test only your own public address. A TCP connection test is enough to show the exposure, and it sends no DNP3 at all (a documentation address is shown):

nc -vz -w 3 203.0.113.40 20000

A “succeeded” or “open” reply means something accepted a TCP connection on 20000 from the internet. A refusal or a timeout means the port is closed or filtered on that path. Repeat the test for any other port your sites use for DNP3, because the registered port is a default, not a rule. Port 19999 is worth a test too if you run the secured service.

DNP3 can also run over UDP on 20000. UDP has no handshake, so nc -u cannot tell an open port from a filtered one. For UDP, the router’s forwarding table (next section) is a more reliable answer than an outside probe. Do not send DNP3 requests to live equipment as a test: a reachability check is enough to justify the fix, and control requests belong to the engineers who own the device.

How do you find the listener inside the network?

An outside test shows that something answers; it doesn’t say which device. Work from the edge inward:

  1. On the site router or firewall, list inbound rules and port forwards for TCP and UDP 20000. Note the internal address each one points to, and who asked for it.
  2. On that address, find what is bound to the port. On a Linux gateway or front-end processor:
$ ss -tulnp | grep 20000
tcp LISTEN 0 5 0.0.0.0:20000 0.0.0.0:* users:(("dnp3-gw",pid=644,fd=7))

The output above is illustrative; the process name will be whatever your gateway software is called. On a Windows host, Get-NetTCPConnection -LocalPort 20000 in PowerShell shows the listening process ID.

  1. If the address is an RTU or IED, look it up in the asset list and ask the engineer or integrator responsible why it has a public path. Embedded devices rarely offer a shell to inspect.

How do you fix an exposed port 20000?

Take the outstation off the internet first, then harden what remains:

  1. Remove the port forward or public address for 20000 (and 19999 if present). Re-run the outside test and keep the dated result with the site records.
  2. Give the master a private path. Use a VPN between the control centre and the site router, a private APN on cellular links, or a dedicated circuit, so DNP3 never crosses the open internet.
  3. Restrict who may talk to the outstation. Allow port 20000 only from the master station’s addresses, on the router at each site.
  4. Turn on Secure Authentication where devices support it. Ask vendors which version their devices implement and plan key or certificate management with the integrator.
  5. Watch the traffic. Zeek and Suricata both decode DNP3, so control and restart requests from unexpected addresses can raise an alert.

These steps follow the defense-in-depth and network segmentation approach in NIST SP 800-82, which also notes that some intrusion detection products ship signatures for OT protocols such as Modbus and DNP3. BACnet building systems have the same problem with a different port; see is port 47808 (BACnet/IP) exposed if your sites run building automation too.

If engineers and vendors need remote access to field sites without an inbound port, OT Remote Access is a Netbase custom engagement that gives outbound-only, recorded sessions; see factories and facilities for the related checks and services.

Which networks may you test?

Every check this page links to is for assets you own or are explicitly authorized to test. Never scan, probe, or attempt to connect to a network or device you don’t control. AdminKit’s active checks only ever run against the IP making the request or an asset you’ve verified ownership of. See our Disclaimer and Acceptable Use Policy for the full terms.

This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.

Frequently asked questions

What is port 20000 used for?

Port 20000 is the port IANA registers for DNP, the Distributed Network Protocol used between SCADA master stations and outstations such as RTUs and IEDs in electric, water, and oil and gas systems. The registry lists 20000 for TCP, UDP and SCTP, and a separate port, 19999, for the secured dnp-sec service.

Does DNP3 check who sends a command?

Only when Secure Authentication is implemented in both devices and configured. The DNP Users Group describes its current Secure Authentication version 6 as a layer that provides authentication and integrity between devices at the application layer. A link that does not use it carries requests the outstation acts on without verifying who sent them.

Does AdminKit's port check test port 20000?

No. The port check tests a fixed list of nine TCP ports (23, 554, 1883, 8883, 502, 7547, 80, 443, 8080) on the public IP you connect from, and lists two UDP ports as not scanned. Port 20000 is not on that list, so a clean result says nothing about DNP3. Test 20000 manually from outside your network.

Can I use AdminKit's Modbus check for a DNP3 device?

No. The Modbus exposure check speaks Modbus/TCP, port 502 by default, and reads back a Modbus device identity. DNP3 is a different protocol, so that check is not a DNP3 test. Use it for Modbus devices on the same site and test port 20000 separately.

Is a VPN enough to protect a DNP3 link?

A VPN or a dedicated private circuit removes the open port from the internet, which is the first goal. It does not replace segmentation inside the network or Secure Authentication between master and outstation, and NIST SP 800-82 treats these as layers of one defense-in-depth design rather than alternatives.

Want AdminKit to watch this for you?

Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.

Huy Nguyen (David), Founder and CEO of Netbase JSC

Talk to an expert

Huy Nguyen (David), Founder & CEO, Netbase JSC

Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.