[pfSense Support] custom files in /var/etc/ gone after reboot
Hello everyone, We have multiple deployments of pfsense running for clients and recently after one unexpected power failure the custom files we put in /var/etc disappeared. Then last night we rebooted another pfsense box and it did the same thing. The custom files are custom authentication for openvpn. Both of these firewalls are nano bsd. I guess my question is, I know Pfsense keeps files in /var/etc/ but is it different for Pfsense Nanobsd? -- Scott - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org
Re: [pfSense Support] custom files in /var/etc/ gone after reboot
On Wed, Dec 15, 2010 at 11:45 AM, Scott Benson sben...@a-1networks.com wrote: Hello everyone, We have multiple deployments of pfsense running for clients and recently after one unexpected power failure the custom files we put in /var/etc disappeared. Then last night we rebooted another pfsense box and it did the same thing. The custom files are custom authentication for openvpn. Both of these firewalls are nano bsd. I guess my question is, I know Pfsense keeps files in /var/etc/ but is it different for Pfsense Nanobsd? Yes, that's a RAM disk. - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org
Re: [pfSense Support] custom files in /var/etc/ gone after reboot
On 12/15/2010 11:45 AM, Scott Benson wrote: Hello everyone, We have multiple deployments of pfsense running for clients and recently after one unexpected power failure the custom files we put in /var/etc disappeared. Then last night we rebooted another pfsense box and it did the same thing. The custom files are custom authentication for openvpn. Both of these firewalls are nano bsd. I guess my question is, I know Pfsense keeps files in /var/etc/ but is it different for Pfsense Nanobsd? On NanoBSD, /var is a RAM disk. You can only rely on /conf/ being there long term. What some people do is put their files there in /conf/ and setup a shellcmd to copy them into place at boot time. Jim - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org
Re: [pfSense Support] custom files in /var/etc/ gone after reboot
[r...@host]/conf(16): ls -lsa total 58 1 drwxr-xr-x 4 root wheel512 Dec 14 06:01 . 1 drwxr-xr-x 4 root wheel512 Dec 7 2009 .. 1 drwxr-xr-x 2 root wheel512 Dec 14 06:01 backup 30 -rw-r--r-- 1 root wheel 30517 Dec 14 06:01 config.xml 0 -rw-r--r-- 1 root wheel 0 Dec 7 2009 ez-ipupdate.cache 26 -rw-r--r-- 1 root wheel 26397 Dec 31 1999 rrd.tgz 1 drwxr-xr-x 2 root wheel512 Feb 17 2010 sshd [1.2.3-RELEASE] [r...@host]/conf(17): mkdir blah mkdir: blah: Read-only file system [1.2.3-RELEASE] [r...@host]/conf(18): Any suggestions? On 12/15/10 10:05 AM, Jim Pingle wrote: On 12/15/2010 11:45 AM, Scott Benson wrote: Hello everyone, We have multiple deployments of pfsense running for clients and recently after one unexpected power failure the custom files we put in /var/etc disappeared. Then last night we rebooted another pfsense box and it did the same thing. The custom files are custom authentication for openvpn. Both of these firewalls are nano bsd. I guess my question is, I know Pfsense keeps files in /var/etc/ but is it different for Pfsense Nanobsd? On NanoBSD, /var is a RAM disk. You can only rely on /conf/ being there long term. What some people do is put their files there in /conf/ and setup a shellcmd to copy them into place at boot time. Jim - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org -- Scott Benson A1 Networks (707)570-2021 x203 - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org
Re: [pfSense Support] custom files in /var/etc/ gone after reboot
On Wed, Dec 15, 2010 at 11:14 AM, Scott Benson sben...@a-1networks.com wrote: [r...@host]/conf(17): mkdir blah mkdir: blah: Read-only file system [1.2.3-RELEASE] [r...@host]/conf(18): /etc/rc.conf_mount_rw db - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org
Re: [pfSense Support] custom files in /var/etc/ gone after reboot
On 12/15/10 10:05 AM, Jim Pingle wrote: What some people do is put their files there in /conf/ and setup a shellcmd to copy them into place at boot time. Where would you put this shellcmd to make it stay after reboots, if the only location for custom code on a nanobsd is in /conf/? Also is /conf/ persistent after reboots on non nanobsd pfsense boxes? if it is we'll just use /conf/ instead of /var/etc/. -- Scott Benson A1 Networks (707)570-2021 x203 - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org
Re: [pfSense Support] custom files in /var/etc/ gone after reboot
On 12/15/2010 1:50 PM, Scott Benson wrote: On 12/15/10 10:05 AM, Jim Pingle wrote: What some people do is put their files there in /conf/ and setup a shellcmd to copy them into place at boot time. Where would you put this shellcmd to make it stay after reboots, if the only location for custom code on a nanobsd is in /conf/? Also is /conf/ persistent after reboots on non nanobsd pfsense boxes? if it is we'll just use /conf/ instead of /var/etc/. A shellcmd is a tag in config.xml - install the shellcmd package for an easy way to create them. It could be set to call a .sh script also held in /conf/ As someone else mentioned, /etc/rc.conf_mount_rw is needed to make the fs read/write before making edits. And /etc/rc.conf_mount_ro can be used to switch back to read only. Jim - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org