OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • How to Import M0n0wall Rules?
« previous next »
  • Print
Pages: [1]

Author Topic: How to Import M0n0wall Rules?  (Read 4333 times)

TheLatestWire

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 6
    • View Profile
How to Import M0n0wall Rules?
« 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.
Logged

TheLatestWire

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 6
    • View Profile
Re: How to Import M0n0wall Rules?
« Reply #1 on: December 31, 2015, 08:31:06 pm »
I'm
« Last Edit: December 31, 2015, 10:07:24 pm by ObecalpEffect »
Logged

weust

  • Hero Member
  • *****
  • Posts: 650
  • Karma: 57
    • View Profile
Re: How to Import M0n0wall Rules?
« Reply #2 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.
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

BertM

  • Jr. Member
  • **
  • Posts: 53
  • Karma: 12
    • View Profile
Re: How to Import M0n0wall Rules?
« Reply #3 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.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • How to Import M0n0wall Rules?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2