I stupidly setup a complicated VPN setup under the TEMPORARY boot profile!
Is there any way I can save this temporary profile into a profile?
It seems you have to create and activate a profile before changes get saved to it.. I’ve only got remote access so shutting down the zeroshell machine to activate and reconfigure the profile isn’t an option.
Saving the temporary config right into a profile would be ideal, anyone got any handy methods to do this?
/Database is the mount point where the current Zeroshell profile is stored. /DB would normally mount to the first hard drive and then individual profiles would appear as directories in there.
Make a new profile normally, but don’t activate it. Note the directory’s name, like “_DB.001”. Then try going to a Bash prompt on the router’s console (or SSH?) and try this:
mount /dev/sda1 /DB (or whatever partition device it is)
/bin/cp -brf /Database/* /DB/_DB.001/
This should (I think) copy your current (temporary) profile to the new profile, including any VPN configuration. You should then be able to activate that profile and it should retain the contents of your temporary profile.
I DO NOT KNOW if this will work; it’s just something I tried to do without actually reproducing a complicated profile.
If you’re able to build another box (or maybe virtual machine) to run Zeroshell on, you could try following the steps I provided, then backing that profile up. Restore the backed-up profile to the second ZS system and see what happens when you try activating it.