avast firewall doesn`t save custom rules

hello
I have a program that need a specific open ports for in/out connections.
but every time i make the rules, next time i reboot de pc the rules doesn`t appear,
what can be wrong?

Is your firewall in puplic or private mode? … if in puplic try private and restart computer

Setting up Firewall Application Rules in Avast Antivirus
https://support.avast.com/en-eu/article/Antivirus-Firewall-Application-Rules

=================================================================

NOTE:The Network profiles control the settings which determine how strictly Firewall protects your PC.

Private: a lower level of security suitable for when your PC is connected to a trusted network such as your home or work network.
This profile enables better connectivity, and permits all communication within the network.

Public: a higher level of security suitable for when your PC is connected to a public network such as in a cafe or airport.
Because public networks present greater security risks, no incoming communication is permitted when this profile is set.

=================================================================

it may also be related to the rules bug?
https://forum.avast.com/index.php?topic=233251.msg1542178#msg1542178