Port 179 (BGP)

TCP

Border Gateway Protocol — BGP listens on port 179 by default.

What is Port 179?

Port 179 is used by BGP (Border Gateway Protocol), the routing protocol that makes the internet work. BGP is responsible for exchanging routing information between autonomous systems (AS), determining how data packets travel across the global internet.

BGP on port 179 uses TCP for reliable peer-to-peer communication between border routers of different networks. Each BGP peer establishes a session and exchanges routing table information, including IP prefixes and path attributes. BGP makes routing decisions based on path, network policies, and rule sets.

BGP security is critical — route hijacking and BGP leaks can redirect internet traffic to malicious destinations. RPKI (Resource Public Key Infrastructure) and BGPsec provide cryptographic verification of route announcements. Access to port 179 should be strictly limited to known BGP peers.

Port 179 Security

BGP on port 179 should be secured with appropriate access controls and monitoring. Ensure the service is only accessible from trusted networks by configuring firewall rules to restrict access. If the protocol supports encryption, enable TLS/SSL to protect data in transit.

Regularly update BGP to the latest version to patch known vulnerabilities. Monitor port 179 for unauthorized access attempts and implement rate limiting where possible. Follow the principle of least privilege when configuring access permissions.

How to Check Port 179

To check if port 179 is open on a remote host, use nmap: 'nmap -p 179 hostname'. For a quick TCP connection test, use: 'telnet hostname 179' or 'nc -zv hostname 179'. On Windows PowerShell, use: 'Test-NetConnection -ComputerName hostname -Port 179'.

To check if port 179 is listening on your local machine, use: 'netstat -tlnp | grep 179' on Linux, or 'ss -tlnp | grep 179'. On Windows, use: 'netstat -an | findstr 179'. For a comprehensive scan, use: 'nmap -sV -p 179 hostname' to detect the service version running on the port.

Related Ports

Frequently Asked Questions

What is port 179 used for?

Port 179 is the default port for Border Gateway Protocol (BGP). It is used for bgp communication using the TCP protocol.

Is port 179 TCP or UDP?

Port 179 uses TCP. TCP is used because bgp requires reliable, ordered data delivery.

Should port 179 be open?

Port 179 should only be open if you are actively running BGP. Close unused ports to reduce your attack surface. If needed, restrict access to trusted IP addresses using firewall rules.

How do I check if port 179 is open?

Use 'nmap -p 179 hostname' to scan remotely, or 'netstat -tlnp | grep 179' to check locally on Linux. On Windows, use 'Test-NetConnection -Port 179 hostname' in PowerShell.

How do I secure port 179?

Secure port 179 by restricting access with firewall rules, using encryption (TLS/SSL) where supported, keeping BGP updated, using strong authentication, and monitoring for unauthorized access attempts.

🔍 Check Your IP Address

While you're here, find out your public IP address, location, and ISP details instantly.

Check My IP →