Home / Training / Lesson 10
VoIP Training · Lesson 10 of 10

VoIP server security

Layered protection for a softswitch: firewall, whitelists, automatic blocking, access control, limits, updates, backups and monitoring.

By VoxComms · · 4 min read

A VoIP softswitch is a valuable target. If attackers can send calls through it, they can generate large bills to expensive destinations in a few hours. If they can reach its database, they can see customers, rates and call records. This lesson covers practical security measures for a VoIP server, from the network edge to backups. It describes principles; adapt the exact commands and tools to your own system.

Know what attackers try

Layer 1 – Firewall: default deny

The single most effective control is a firewall that blocks everything by default and allows only what is needed.

Partner IPs (whitelist) Admin via VPN Rest of internet FIREWALL Softswitch serverSIP / RTP / admin dropped
Only known partners and administrators reach the server.

Moving SIP or SSH to a non-standard port reduces noise from basic scanners, but it is not a security control on its own — a whitelist is.

Layer 2 – Whitelists inside the switch

Even behind a firewall, configure the softswitch to accept calls only from the IP addresses defined on each customer’s mapping gateway. Avoid wide ranges. If a customer must use username/password registration, combine it with strong credentials and, where possible, an IP restriction.

Layer 3 – Automatic blocking (fail2ban and similar)

Tools such as fail2ban read log files and temporarily block IP addresses that show abusive patterns, such as many failed SSH logins or repeated failed SIP registrations. Good practice:

Layer 4 – Strong passwords and access control

Layer 5 – Limits that contain damage

Assume that one day an account will be misused, and limit how much damage it can do:

Layer 6 – Updates and hardening

Layer 7 – Backups you can restore

Your switch configuration and CDR database are the business. Protect them:

Layer 8 – Logging and monitoring

A short security checklist

  1. Firewall default-deny, with partner and admin whitelists.
  2. No management interface open to the internet.
  3. No default passwords anywhere; individual admin accounts.
  4. Automatic blocking of brute-force attempts.
  5. Call and spend limits on every account.
  6. Regular updates.
  7. Daily off-server backups, with tested restores.
  8. Alerts on unusual traffic.

Monitoring platforms like VoxInspector are designed to run their heavy processing on a separate server with data retention controls, keeping the softswitch itself as small and protected as possible.

Key takeaways

  • A default-deny firewall with partner and admin whitelists is the most effective control.
  • Management interfaces should never be open to the whole internet.
  • Use unique strong passwords, SSH keys, individual admin logins and 2FA where possible.
  • Call and spend limits contain the damage if an account is compromised.
  • Back up daily off-server and test restores regularly.

Quick quiz

1. Is moving SIP to a non-standard port enough to secure a server?

No. It reduces scanner noise, but only whitelisting and proper firewall rules actually restrict access.

2. What does fail2ban do?

It reads logs and temporarily blocks IP addresses that show abusive patterns such as repeated failed logins.

3. Why test backup restores?

A backup that has never been restored may not work when you need it.

Related reading

Examples in this course use invented names (Vendor X, Customer Y, Country Z) and documentation IP ranges. Menu names and options differ between softswitch versions; always check your own system and vendor documentation.