Port 179: BGP

Port 179 (TCP) is used by BGP. Border Gateway Protocol, how internet providers exchange routes.

179Port
TCPProtocol
bgpIANA service name
Network infrastructureCategory

Port range

179 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 179 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 179 in a firewall

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

Check if port 179 is open

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

Other network infrastructure ports

Frequently asked questions

What is port 179 used for?
BGP. Border Gateway Protocol, how internet providers exchange routes.
Is port 179 TCP or UDP?
TCP.