OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: senseivita on January 06, 2019, 03:42:22 am

Title: Where to restore aliases backup
Post by: senseivita on January 06, 2019, 03:42:22 am
Hey guys, first post :)

I just moved to OPNsense and but it updated on me and lost the ability to import aliases and I have a ton (I'm coming from the other *sense) so I thought I'd outsmart it and deployed a local VM with it, extracted the aliases from the other platform's XMLs imported them into the dummy OPNsense to export them back out into an OPNsense native backup and merge them with the current config now almost stable.

However, when I went to the working install I couldn't quite figure out where to put merge the backup in. I only modified aliases in the dummy OPNsense, nothing else, not even the initial setup except for the interfaces (about 2 dozen vs 1 in the dummy) and the aliases there should be nothing to overwrite...I think.

I exported a backup from the working install searched for the alias lists and compared it to the backup from the dummy install and I saw that they're nothing alike, so there went my chances merging it myself, manually...plus I tried editing one of these files before and I guess it was digitally signed or something because I broke down horribly.

The best fit to restore them would be under Firewall, but there's no such option, the way it's listed it sorf of screams not here. Then I thought maybe DNS, because they're aliases...but System could work as well because they work system-wide. I'm going a little insane here. If you have any advice to offer I'd be immensely grateful ! <3
Title: Re: Where to restore aliases backup
Post by: chemlud on January 06, 2019, 11:41:18 am
The Alias stuff is under reconstruction, see here

https://forum.opnsense.org/index.php?topic=10260.0

...I think I installed the firewall rules from a pfsense config.xml and got the aliases for free ;-)

You can copy/paste them in the GUI (CSV) or use the API, as outlined in other recent posts on this topic.

But I also did the hard way, creating them in OPNsense GUI with 3 IPs/URLs and copying in the rest into the OPNsense config.xml, as outlined above.