Free tech learning for everyone, from basics to pro

Port 5060: SIP (Session Initiation Protocol (VoIP))

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

Port5060
TransportUDP/TCP
ServiceSession Initiation Protocol (VoIP) (SIP)
EncryptedNo (SIP over TLS uses 5061)

What is port 5060?

SIP sets up and ends VoIP phone calls. The voice itself travels separately using RTP on high UDP ports.

Common uses

  • IP phones, softphones and phone systems (PBX)
  • Connections to VoIP providers (SIP trunks)

Security risks

  • Toll fraud: attackers break into phone systems and make expensive international calls
  • Password scanning against extensions
  • Eavesdropping on unencrypted calls

How to secure port 5060

  • Do not expose the PBX to the whole internet; allow only your provider's addresses
  • Use strong extension passwords
  • Use SIP over TLS (5061) and SRTP for encryption
  • Set call limits and block expensive destinations you do not need

How to check if port 5060 is open

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

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 SIP from the internet
 deny   tcp any any eq 5060
 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 5060 used for?

Port 5060 (UDP/TCP) is used by Session Initiation Protocol (VoIP) (SIP). SIP sets up and ends VoIP phone calls.

Is it safe to open port 5060?

Only if the service needs to be reached and is configured securely. Do not expose the PBX to the whole internet; allow only your provider's addresses.

How do I check if port 5060 is open?

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

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