Port 49: TACACS

Port 49 (TCP/UDP) is used by TACACS. Authentication for network devices. TACACS+ (Cisco) uses TCP 49.

49Port
TCP/UDPProtocol
tacacsIANA service name
Authentication & directoryCategory

Port range

49 is a well-known (system) port (range 0–1023). On Linux and macOS, binding to it traditionally needs root or the CAP_NET_BIND_SERVICE capability.

Security

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

Open port 49 in a firewall

ufw         sudo ufw allow 49/tcp
            sudo ufw allow 49/udp
iptables    sudo iptables -A INPUT -p tcp --dport 49 -j ACCEPT
            sudo iptables -A INPUT -p udp --dport 49 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=49/tcp
            sudo firewall-cmd --permanent --add-port=49/udp
Windows     New-NetFirewallRule -DisplayName "TACACS 49" -Direction Inbound -Protocol TCP -LocalPort 49 -Action Allow

Check if port 49 is open

nc -vz example.com 49
Test-NetConnection example.com -Port 49   # PowerShell
sudo ss -tulpn | grep ':49 '   # what is listening locally (Linux)

Other authentication & directory ports

Frequently asked questions

What is port 49 used for?
TACACS. Authentication for network devices. TACACS+ (Cisco) uses TCP 49.
Is port 49 TCP or UDP?
Both are assigned. Check which one your software actually listens on.