OPNsense Forum

English Forums => General Discussion => Topic started by: TheLatestWire on December 30, 2015, 11:59:07 pm

Title: How to Import M0n0wall Rules?
Post by: TheLatestWire on December 30, 2015, 11:59:07 pm
Sorry if I'm missing something obvious. I looked through the documentation, did some google searches and searched through the GUI, but I can't seem to find a way to import my m0n0wall rules. Is this possible? Or can I edit a single file on the console and insert them? Most of the rules are specific CIDR network denies.
Title: Re: How to Import M0n0wall Rules?
Post by: TheLatestWire on December 31, 2015, 08:31:06 pm
I'm
Title: Re: How to Import M0n0wall Rules?
Post by: weust on December 31, 2015, 10:23:38 pm
IIRC you can't. The config files are one big bunch of settings, and importing that will either fail or mess things up beyond repair.
Title: Re: How to Import M0n0wall Rules?
Post by: BertM on January 07, 2016, 10:30:15 pm
I think it should not be too difficult if you know what you are doing.

In OPNsense WebGUI, go to System ==> Config Manager ==> Backups.
In the download part of the screen (top half), select Firewall Rules in the Backup area dropdown and download the XML.

You could edit the XML file and upload the edited file again using the Restore part of the screen (bottom half).
Select Firewall Rules in the Restore area dropdown, browse to the file and restore it.

I think that should work.