Question: where are ufw rules saved?
Answer: All user rules are stored in etc/ufw/user. rules and etc/ufw/user6. rules for IPv4 and IPv6 respectively.