Port 5060 is the SIP (Session Initiation Protocol) port for VoIP call signaling. SIP on port 5060 handles call setup, teardown, and presence – the actual voice/video flows over RTP on dynamic ports. Unencrypted SIP exposes call metadata and enables toll fraud. Use SIPS on port 5061 (TLS) for production VoIP.
Port Number
5060
Protocol
TCP/UDP
Service
Session Initiation Protocol
Range
IANA Registered (1024–49151)
Scan for SIP devices on the network (security audit)
sipvicious svmap 10.0.0.0/24Enumerate valid SIP extensions (should fail if properly configured)
sipvicious svwar -e 100-200 targetAsterisk: list registered SIP endpoints and their status
asterisk -rx 'sip show peers'Capture SIP messages (look for plaintext credentials in REGISTER)
tcpdump -i eth0 -n port 5060 -c 5 -Asipvicious svmap 192.168.1.0/24
sngrep -d eth0 port 5060
asterisk -rx 'sip show peers'SIP (Session Initiation Protocol) was standardized in RFC 3261 (2002), designed by IETF as the VoIP signaling protocol to replace H.323. Port 5060 was assigned for both UDP and TCP. SIP became the dominant VoIP protocol powering IP telephony worldwide. The protocol was designed for trusted networks – security was an afterthought. Toll fraud via exposed SIP servers became a $46B/year industry. Modern deployments require SBCs, TLS, and SRTP as minimum security measures.
How do I protect Asterisk from toll fraud?
1. Never expose 5060 to internet without an SBC. 2. Set alwaysauthreject=yes in sip.conf (prevents username enumeration). 3. Use strong passwords (16+ chars) for all extensions. 4. Set call-limit per extension. 5. Block international dialing by default (deny dial pattern _011. and _00.). 6. Install fail2ban with Asterisk filter (ban after 3 failed registrations). 7. Monitor CDR for unusual patterns (calls to premium rate numbers, calls at unusual hours).
SIP vs WebRTC for modern VoIP?
SIP (port 5060/5061): established protocol with massive ecosystem (phones, PBXes, PSTN gateways), supports PSTN interconnection natively, requires dedicated infrastructure (SBC, SIP trunks). WebRTC: browser-native, peer-to-peer capable, mandatory encryption (DTLS-SRTP), works through firewalls via TURN/STUN. Many modern systems use both: WebRTC for browser/app clients, SIP for PSTN connectivity and desk phones. They interwork via a gateway.