OPNsense 26.1 Firewall Rule Migration

From Thomas-Krenn-Wiki
Jump to navigation Jump to search

With the release of the OPNsense 26.1 version, work continued on the gradual migration of all configuration menus to MVC/API code. The firewall-rules area has been extended with this release by a MVC/API configuration menu Firewall → Rules [new]. The previous menu under Firewall → Rules will remain in parallel as a legacy and will receive a migration assistant. This article shows how to perform this migration of the firewall rules onto the new firewall configuration menu.

Please note: This migration worked perfectly with various OPNsense firewalls, but there is no guarantee that this migration will always work without problems. A backup of the configuration is essential.

Click here to view our OPNSense firewalls in the Thomas-Krenn online shop

Preparation to migrate the rules

Before the rules are exported and then imported into the new menu, you should follow the steps suggested by the migration assistant for safety reasons.

Export existing firewall rules

The actual migration process starts with this step and the rules are exported in a CSV-format.

Import exported rules

In this final step, the previously downloaded CSV file is now imported into the new firewall rule menu, and finally the old firewall rules are deleted.


Author: Thomas Niedermeier

Thomas Niedermeier working in the product management team at Thomas-Krenn, completed his bachelor's degree in business informatics at the Deggendorf University of Applied Sciences. Since 2013 Thomas is employed at Thomas-Krenn and takes care of OPNsense firewalls, the Thomas-Krenn-Wiki and firmware security updates.


Translator: Alina Ranzinger

Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.


Related articles

AMD based Thomas-Krenn Firewall Server
Querying FreeBSD hardware information
Using the LCD display of FWA-3034 under FreeBSD and OPNsense