49Port
TCP/UDPProtocol
tacacsIANA service nameAuthentication & 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)