Where are the firewall rules kept?

I have been reading on another forum that the f/w rules are kept in the registry. Is this so?

Assuming yes this does not seem a very satisfactory idea. It is quite easy to get a corrupted registry and when you do a roll back or restore an earlier registry you stand a chance of losing you rules or part of. Why not keep them in an encrypted file in the f/w folder. You also can save a set of rules and experiment with other versions.

https://forums.comodo.com/index.php/topic,2099.0.html