How do I fix this problem with my firewall?

okay, so I’ve set the firewall to custom policy mode with alerts on high, not very high and left defense plus on safe mode. Whenever a popup for a safe program comes on, I tell it to remember my answer, but the problem comes whenever I restart my computer. Whenever that happens, Comodo remembers my rules, but it deletes them in the network security policy. How do I keep it from doing this? I’ve had a lot of custom rules set in the nsp, but now they are not there. How can I get them back or do I have to go through the whole process over again?

You need to do two things. First is to enable Create rules for safe applications .

Second is to remove the “All Application” rule from the firewall’s Application Rules (Firewall → Network Security Policy).