TCP port
Port 179: BGP
TCP port 179 is BGP: two routers of neighbouring networks hold a TCP connection on it and exchange the routes of the internet.
- Peers are configured by hand: BGP does not discover its neighbours.
- A peer that stays silent past the hold time is dropped, and its routes are withdrawn.
Check port 179 on Linux
Put the server's name or address in place of HOST.
ss -tlnp 'sport = :179'- On the server: is a program listening on TCP port 179, on which address, and which program? How to read ss.
nc -zv HOST 179- From a client: does a TCP connection to port 179 open, get refused, or time out? How to read nc.
tcpdump -ni any tcp port 179- On either end: the packets to and from TCP port 179, as they cross the card. How to read tcpdump.
nmap -p 179 HOST- From outside: is TCP port 179 open, closed or filtered? How to read nmap.
What runs on it
- BGP
- The protocol between autonomous systems: how the networks of the internet find each other.
- Autonomous system
- A network run by one organisation, with a number of its own, as seen by the rest of the internet.
- AS path
- The list of autonomous systems a BGP route crossed: used to choose paths and to prevent loops.
Use port 179 on real machines
- BGP routing: how the internet's networks find each other
- BGP policies: steering traffic and refusing bad routes
Open BGP routing: how the internet's networks find each other