Configure allowed ip ufw

I have rebooted my server a couple of times without disable ufw. Which result in I am locked out. I have seen somewhere that you can make a change in a config file to avoid this and allow my fixed ip even after a reboot. I cant find it now, can anyone point me to the post please

https://manpages.ubuntu.com/manpages/xenial/man8/ufw.8.html
https://www.cyberciti.biz/faq/ufw-allow-incoming-ssh-connections-from-a-specific-ip-address-subnet-on-ubuntu-debian/

Thanks very much, Evening reading is found.
I dont know if anyone lse use this but I attach a link