How to secure remote extensions on a PBX: what to do first
To secure remote extensions on a PBX, put something between the internet and the phone system so that strangers cannot reach it, and make every remote device prove who it is. A remote worker's phone or softphone has to reach the phone system from a network you do not control. There are three sound ways to allow that: a VPN, a session border controller at the edge, or encrypted signalling with strong per-device credentials and limits on who may try. This post compares them, lists what to switch on in each case and gives a short test to run before a remote worker's first call.
Why remote extensions are the weak point
Everything else can sit behind the firewall. A remote extension needs a way in, and a way in is something that can be found. A SIP port that answers anyone will be found by scanners and then tried with guessed passwords, as the post on whether your PBX is exposed to the internet shows. A credential taken from one remote device is a way to make calls on your account, which is how toll fraud usually starts.
Remote devices have problems of their own. They sit behind home routers that may rewrite SIP, on networks shared with other people's devices, and on connections that drop. A device that nobody on site can see is also easy to forget, long after its owner has left.
Four ways to connect a remote extension
| Method | How it works | Suits | Watch for |
|---|---|---|---|
| VPN from the device or the home router | The phone's traffic goes through an encrypted tunnel, so the phone system sees an internal address and nothing is exposed | A few remote workers, or a router that does the VPN for everything at the desk | A client for every softphone and mobile, and the VPN is now the thing to protect with strong sign-in |
| A session border controller or SIP proxy at the edge | One hardened device faces the internet, checks and rate-limits SIP and hides the phone system behind it | Many remote users and a mix of devices | Cost, skill, and one more device to patch |
| Encrypted SIP straight to the phone system | Each device registers over TLS with its own long random password, and the firewall allows only what is needed | A small site with few remote users and a phone system built for it | Certificates that expire, and the system stays exposed |
| A hosted phone system | The provider's edge faces the internet instead of yours | A site that does not want to run an edge | You rely on the provider's controls, so ask what they are |
Secure remote extensions: the settings that matter
- One credential per device. A unique, long, random password for every phone, softphone and mobile, never the extension number and never reused. Provision it instead of typing it. The guide to a phone that will not provision shows how a one-time token lets a phone fetch its settings once, with a fresh password.
- Encryption on. Use SIP over TLS for the signalling and SRTP for the audio where the phones and the phone system support them, and check that the phone validates the certificate and does not accept any.
- Limit registrations. Allow one or two devices per extension, lock out an extension after repeated failures and ban the address they came from.
- Limit where they can register from. Allow only the countries or addresses your remote workers use. It cuts the noise a good deal and is not a security boundary, because an attacker can use an address in a permitted country.
- Limit what they can do. Bar premium-rate and international numbers for anyone who does not need them, and set spending alerts. If a credential is stolen, this caps the bill.
- Keep the management interface off the internet. A remote phone needs SIP and nothing else. Reach the administration console through a VPN or from fixed addresses.
- Turn off SIP ALG on the home router if you can. It rewrites messages and breaks calls at random, as the guide to SIP ALG explains. If you cannot, encrypted SIP gets past it, because the router cannot read it.
- Watch the logs. Alert on failed registrations, registrations from a new country and calls at odd hours, and look at them daily for the first few weeks.
- Remove a device the day its owner leaves. A credential that outlives a job is the commonest gap.
Before a remote worker's first call
- Register from the remote network and check the source address and transport in the phone system's log.
- Make a call in each direction and listen for audio both ways. The guide to one-way audio covers what to check if it is missing.
- Try a wrong password a few times from the remote network. Confirm the lockout or the ban works, and does not lock out the office.
- Confirm the remote device cannot reach the administration pages.
- Decide how an emergency call from that location will be handled, and tell the worker, because the address the emergency services see may not be the address where the person is working.
Questions people ask
Is a VPN better than SIP over TLS?
They do different jobs. A VPN keeps the phone system off the internet, which removes a whole class of attack, and adds a client to set up and a sign-in to protect. TLS encrypts a service that stays reachable, so it needs the limits above as well. For a few workers a VPN is a strong choice. For many, an edge controller or a hosted service scales better.
Can I change the SIP port to avoid scanners?
It reduces noise in the logs, and it is not protection. Scanners try other ports too. Treat it as tidiness, not a control.
Is blocking other countries enough?
No. It removes most of the random attempts and nothing that is aimed at you, and a stolen credential works from a permitted country as well. Use it as one layer.
What about a softphone on a personal phone?
Give it its own credential, which you can remove without touching anything else, and ask the owner to keep the operating system and the app updated and the screen locked. When the person leaves, remove the credential the same day.
In Wafflr
Wafflr is in development and has not launched, so this section describes its console and documents as they stand. Its draft installation guide lists 5061 over TCP for handsets that use TLS. It records where a request from a phone behind NAT really came from, in the Via header as received and rport, so a handset behind NAT does not need the router's help. An administrator issues a one-time token for a phone on the Provisioning page, and issuing it gives the phone a new SIP password and stops the old one working. Each extension has a class of service that says which kinds of number it may dial, a toll-fraud watch suspends an extension that passes its limits, and the audit trail records every change to the configuration with the account that made it. The toll fraud guide describes them.