Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
A few questions from a PFSense convert
« previous
next »
Print
Pages: [
1
]
Author
Topic: A few questions from a PFSense convert (Read 1676 times)
CosmicRay
Newbie
Posts: 7
Karma: 2
A few questions from a PFSense convert
«
on:
May 06, 2020, 02:55:24 pm »
Hi everyone,
First, thanks for OPNsense! I finally made the switch from pfsense, for reasons you all are probably aware of, in addition to the Wireguard support in opnsense. There are a few things that are still puzzling me:
1) What are the "periodic backups" in settings -> miscellaneous? Does this imply that the RRD is normally only in RAM and not on disk? (Same for Netflow) If I set the RRD backup to, say, 6 hours, will it also be backed up on power off? Where is it being backed up to? Was it on disk to begin with? (I'm puzzled because RRD normally would be on disk anyhow)
2) Is there a way to restore a config.xml file at install time? Eg, by copying it to a spot on the USB drive?
3) It appears that restoring a config.xml file -- although it does record the list of plugins used -- doesn't reinstall the necessary plugins. Is there a way to do that?
4) I want to maintain a ssh connection from opnsense to a remote box, which uses -R to permit a port forward from another secure machine. On pfsense, I used the Filer plugin, which lets me define a file to be installed on the system, which is saved as part of config.xml. I used it to define a shell script that would make sure that the SSH keys were set, and acted as a watchdog for the ssh process. Then I used its cron plugin, which would run the shell script periodically to keep the tunnel up.
opnsense has cron built in, but Filer isn't, and it doesn't support an arbitrary command. Sites like
https://forum.opnsense.org/index.php?topic=2263.0
and
http://kb.unixservertech.com/other/networking/opnsense/cron-jobs
advocate adding a file to /usr/local/opnsense/service/conf/actions.d/, restarting configd, and then using this in the cron GUI. I would presumably drop my script under /usr/local or something.
Questions about this:
A) Does this stuff get backed up in config.xml? (the file under actions.d) If no, then would the missing service imply a problem for restoring a config.xml backup?
B) Would this file, or my script, get blown away on reboot? On upgrade? Is there any way to persist it (and my script)
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
A few questions from a PFSense convert