How to enable ipv6 processing

From VoIPmonitor.org
Revision as of 20:04, 4 January 2026 by Admin (talk | contribs) (Improved formatting: syntax highlighting, proper MediaWiki markup, fixed incomplete step, removed emoji from header, added warning box)


This guide explains how to enable IPv6 support in VoIPmonitor, covering both new installations and existing IPv4-formatted databases.

Quick Start for New Installations

For a fresh VoIPmonitor installation, simply enable IPv6 before starting the service for the first time:

ipv6 = yes

Add this to your /etc/voipmonitor.conf file. The database will be created with IPv6 columns from the beginning.

Enabling IPv6 on Existing Installations

If you have an existing VoIPmonitor installation that was set up with only IPv4 addresses, enabling IPv6 requires a database schema migration.

Step 1: Enable IPv6 in Configuration

Add or modify the following line in /etc/voipmonitor.conf:

ipv6 = yes

Step 2: Run the Migration Script

The migration script ipv6_alter.sql adds the necessary IPv6 columns to your database tables. Locate and run this script:

Location
Typically found in the scripts directory of your VoIPmonitor installation, such as /usr/share/voipmonitor/scripts/ or /var/www/html/scripts/.
Warning: Backup your database before running any schema migration!
mysql -u root -p voipmonitor < /path/to/scripts/ipv6_alter.sql

Step 3: Restart the Service

systemctl restart voipmonitor

Verification

After the service restarts, VoIPmonitor will begin logging IPv6 addresses for calls involving IPv6 endpoints. You can verify this by checking the CDR view for calls with IPv6 addresses.

Important Considerations for Existing Databases

Performance and Time

  • The migration process can be very time-consuming for large databases with millions of CDRs
  • The ipv6_alter.sql script adds columns to multiple tables, which requires copying existing data
  • During migration, the database may experience performance degradation

Impact on Historical Data

  • Converting existing IPv4 entries cannot retroactively convert them to IPv6 format
  • Historical statistics and reports may display inaccuracies after the migration, as pre-migration data will have NULL values in IPv6 columns
  • Some aggregations or filters may behave unexpectedly with the mixed IPv4/IPv6 data

Recommended Approach: Fresh Database

For most production environments, we recommend starting with a fresh database instead of migrating:

  1. Export or back up any data you need to preserve (raw PCAPs, reports, etc.)
  2. Use the GUI's Tools → Backup & Restore → Configuration TABLES feature to save your GUI settings, alerts, user permissions, and other configuration
  3. Flush or drop the old VoIPmonitor database
  4. Recreate it from scratch with ipv6 = yes enabled
  5. Restore your GUI configuration tables from the backup

This approach avoids migration time, eliminates potential data inconsistencies, and ensures clean IPv6 operation going forward.

Preserving GUI Settings

When resetting the database, you can preserve your GUI configuration:

  1. Access the VoIPmonitor GUI web interface
  2. Navigate to Tools → Backup & Restore
  3. Select Backup configuration TABLES
  4. Save the backup file to a safe location
  5. Create the new database with ipv6 = yes enabled
  6. Use Restore configuration TABLES to reapply your settings

This restores:

  • User accounts and permissions
  • Alert rules and email notifications
  • Dashboard configurations
  • GUI settings and preferences
  • Custom capture rules

Note: This does not restore CDR data or PCAP files—those must be backed up separately if needed.

Related Documentation

AI Summary for RAG

Summary: This guide covers enabling IPv6 support in VoIPmonitor. For new installations, set ipv6 = yes in voipmonitor.conf before first start. For existing systems with IPv4-only databases, run the ipv6_alter.sql migration script. The migration is time-consuming for large databases and may cause historical statistics inaccuracies. The recommended approach for production environments is to flush the old database, start fresh with IPv6 enabled, and use "Tools → Backup & Restore → Configuration TABLES" to preserve GUI settings.

Keywords: ipv6, ipv6 enable, migration, database migration, ipv6_alter.sql, historical data, configuration backup, gui settings, database flush

Key Questions:

  • How do I enable IPv6 on a new VoIPmonitor installation?
  • How do I enable IPv6 on an existing IPv4-only VoIPmonitor installation?
  • What is the ipv6_alter.sql migration script?
  • Why might migration be problematic for existing databases?
  • How can I preserve my GUI settings when recreating a database?