i dont know how to do that. i know i should do stuff like that but i dont know where to start haven't had time to look into it. also, wont the snapshot backup my "bad" configuration if i didnt notice i broke something? like now. im sure i borked the permissions over a month ago, but it didnt impact my jails because i never turn this system off, so i was unaware of the problem. the backup isnt useful if it gets backed up "broken"
but i got it back up without too much trouble. copying the proper files over worked.
1. created new jail "OpenVPN_2"
2. changed OpenVPN_2's IP to old jail's IP
3. installed openvpn in the jail
4. make openvpn directory
5. exit jail shell, back to root freenas shell
6. copy entire old openvpn directory to new openvpn directory, recursive, copies all the keys and certs and openvpn.conf
7. copy ipfw.rules file
8. copy rc.conf file
9. copy syslog.conf file
10. copy newsyslog.conf file
11. restart jail
then it all worked again. i made sure to double check the contents of the directories and config files to verify they all copied correctly.
but i got it back up without too much trouble. copying the proper files over worked.
1. created new jail "OpenVPN_2"
2. changed OpenVPN_2's IP to old jail's IP
3. installed openvpn in the jail
Code:
pkg update pkg upgrade -y pkg install -y nano openvpn mpack
4. make openvpn directory
Code:
mkdir /usr/local/etc/openvpn
5. exit jail shell, back to root freenas shell
6. copy entire old openvpn directory to new openvpn directory, recursive, copies all the keys and certs and openvpn.conf
Code:
cp -r /mnt/Media/jails/OpenVPN/usr/local/etc/openvpn/* /mnt/Media/jails/OpenVPN_2/usr/local/etc/openvpn
7. copy ipfw.rules file
Code:
cp -r /usr/local/etc/ipfw.rules /usr/local/etc
8. copy rc.conf file
Code:
cp -r /etc/rc.conf /etc
9. copy syslog.conf file
Code:
cp -r /etc/syslog.conf /etc
10. copy newsyslog.conf file
Code:
cp -r /etc/newsyslog.conf /etc
11. restart jail
then it all worked again. i made sure to double check the contents of the directories and config files to verify they all copied correctly.