Port 179 is the BGP (Border Gateway Protocol) port used by routers to exchange routing information between autonomous systems. BGP hijacking via port 179 can redirect internet traffic through malicious networks. Protect with MD5 TCP authentication (RFC 2385), RPKI validation, and prefix filtering.
Port Number
179
Protocol
TCP
Service
Border Gateway Protocol
Range
IANA Well-Known (0–1023)
Cisco: show all BGP peers, their state, prefixes received, and uptime
show ip bgp summaryBIRD: detailed BGP session state including hold timer and import/export filters
birdc show protocols all bgp1FRRouting: BGP table statistics (total prefixes, paths, memory usage)
vtysh -c 'show bgp ipv4 unicast statistics'Capture BGP packets to debug session establishment or detect unauthorized peers
tcpdump -i eth0 port 179 -c 10show ip bgp summary
neighbor 10.0.0.1 remote-as 64512
tcpdump -i eth0 tcp port 179BGP was created in 1989 (RFC 1105) to replace EGP as the inter-domain routing protocol of the internet. BGP-4 (RFC 4271, 2006) is the current version. Port 179 was assigned by IANA. BGP was designed with trust – peers are assumed to be legitimate ISPs. RPKI (RFC 6480, 2012) adds cryptographic verification of route origins. Despite being critical infrastructure, BGP security adoption is slow: only ~40% of routes are RPKI-signed globally (2024).
How does RPKI protect against route hijacking?
RPKI creates ROAs (Route Origin Authorizations) that cryptographically bind IP prefixes to authorized ASNs. When a BGP router receives a route, it validates the origin AS against the RPKI repository. Invalid routes (wrong origin AS) are rejected or de-prioritized. Setup: sign your prefixes in your RIR portal (ARIN, RIPE), configure your routers to validate (rpki-client + FRR/BIRD validation). Only protects against origin hijacking, not path manipulation.
MD5 vs TCP-AO for BGP authentication?
TCP-MD5 (RFC 2385): widely deployed, uses shared secret for packet authentication, protects against session hijack/RST injection. Weaknesses: MD5 is cryptographically broken, no key rollover mechanism (changing keys drops the session), per-packet computation overhead. TCP-AO (RFC 5925): modern replacement with SHA-256+, key chains with rollover, MKT (Master Key Tuples) for seamless rotation. Adoption: TCP-AO support exists in Cisco IOS-XR, Junos, and Linux kernel but is not yet universal.