OPNsense Forum

English Forums => General Discussion => Topic started by: meazz1 on January 11, 2021, 01:21:06 AM

Title: How to export only the firewall rules
Post by: meazz1 on January 11, 2021, 01:21:06 AM
How do I export the entire firewall /aliases rules so I can post it on a forum for specific suggestion?
I tries the export option but that did not give me the entire firewall rules in a format I can use.
Title: Re: How to export only the firewall rules
Post by: Greelan on January 11, 2021, 08:03:48 AM
Not sure whether this is in a format you want, but you can see them in /tmp/rules.debug or list them with pfctl -sr (or list everything with pfctl -sa)
Title: Re: How to export only the firewall rules
Post by: greeno on May 27, 2021, 05:12:07 PM
hi, can I export rules from one opnsense to an other? thanks guys.
Title: Re: How to export only the firewall rules
Post by: mulaparda on March 06, 2024, 11:22:26 AM
Hello greeno, you can do a backup config, and restore only FW rules only