Did you Ever Edit a pfSense XML Config File in VScode?
-
Good Morning!
Did you ever edit a pfSense XML config file in VScode?
If so, I would like to draw upon your experience. Which modifications do you recommend I should make from anout-of-the-box VScode installation? Are there any extensions that you recommend to have installed when editing pfSense XML config files that you found make your life easier, be it with pfSense config files in particular or with XML config files in general.
Your advice is much appreciated.
(I need to migrate a complex pfSense installation from failed physical hardware to a VM. I have a recent configuration backup. The only practical way to make the massive changes to the networking and firewalls rules sections that this migration will require is to restore from an already-edited config file).
I used VScode to edit config files before, but those were mostly in YAML. I learned that there are definitely a few extensions that you will want to have installed when editing YAML config files. I suspect the same holds true for editing XML config files.
Your advice is much appreciated,
-- Lucky -
What about the first available text editor like notepad ? or better :: Notepad++ or even nano and if you insist : vi.
The pfsense xml file can be edited if needed, but in reality, during the last decade or so, I really had to do so.
Btw : my config.xml is auto backed up. All I have to do, every 3 months or so, is checking if this still works - if I have my daily copies.
The day the machine breaks, I can throw away the disk without looking back.I'm certainly not installing a several Gbytes monster like VScode to do so.
It could be done of course, as it probably understands XML and formats it nicely.
But I don't care. it's a plain ASCII (utf8 ?) file anyway. -
Never used VSCode but it's just xml.
What changes do you need to make though?
Usually a config move between hardware should only require re-assigning the interfaces (renaming them in the config). I assume this is a more extensive network change?Steve