Free tech learning for everyone, from basics to pro

Port 179: BGP (Border Gateway Protocol)

What port 179 (TCP) does, the security risks of leaving it open, and how to secure and test it.

Port179
TransportTCP
ServiceBorder Gateway Protocol (BGP)
EncryptedNo (TCP-AO or MD5 protect sessions)

What is port 179?

BGP is the routing protocol of the internet. Routers exchange routes with their neighbours over TCP 179.

Common uses

  • Internet service providers and large organisations exchanging routes
  • Connecting data centres and cloud networks

Security risks

  • Route hijacks and leaks that send traffic the wrong way
  • Session resets from spoofed packets

How to secure port 179

  • Only allow TCP 179 from configured neighbours
  • Use session authentication (TCP-AO or MD5) and maximum-prefix limits
  • Filter routes and use RPKI to validate route origins

How to check if port 179 is open

WhereCommand
Scan from another machinenmap -p 179 <host>
Windows (PowerShell)Test-NetConnection <host> -Port 179
Linux (what is listening)sudo ss -tulpn | grep :179
Windows (what is listening)netstat -ano | findstr :179

Only scan systems you own or have permission to test.

Example: block it at the internet edge (Cisco)

For a service that should stay inside your network, deny it on the internet-facing interface. Put the rule before any broader permit statements:

ip access-list extended INTERNET-IN
 remark Block BGP from the internet
 deny   tcp any any eq 179
 permit ip any any
!
interface GigabitEthernet0/0
 ip access-group INTERNET-IN in

In a real network the final line would be your normal inbound policy, not "permit ip any any". Build and check rules with the ACL builder.

Related ports

Frequently asked questions

What is port 179 used for?

Port 179 (TCP) is used by Border Gateway Protocol (BGP). BGP is the routing protocol of the internet.

Is it safe to open port 179?

Only if the service needs to be reached and is configured securely. Only allow TCP 179 from configured neighbours.

How do I check if port 179 is open?

From another computer, run nmap -p 179 followed by the host address. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 179.

Learn more: TCP, UDP and ports explained and firewall basics.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown