Port 1813: RADIUS accounting

Port 1813 (UDP) is used by RADIUS accounting. Session accounting records for RADIUS.

1813Port
UDPProtocol
radius-acctIANA service name
Authentication & directoryCategory

Port range

1813 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Only open port 1813 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 1813 in a firewall

ufw         sudo ufw allow 1813/udp
iptables    sudo iptables -A INPUT -p udp --dport 1813 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=1813/udp
Windows     New-NetFirewallRule -DisplayName "RADIUS accounting 1813" -Direction Inbound -Protocol UDP -LocalPort 1813 -Action Allow

Check if port 1813 is open

nc -vzu example.com 1813   # UDP checks are unreliable: no reply ≠ closed
sudo ss -tulpn | grep ':1813 '   # what is listening locally (Linux)

Other authentication & directory ports

Frequently asked questions

What is port 1813 used for?
RADIUS accounting. Session accounting records for RADIUS.
Is port 1813 TCP or UDP?
UDP.