Hello,
It is recommended that you open the Group Policy and refer to the following to see if the set firewall rules are effective.
Use the Win+r shortcut key to enter gpedit.msc to open the Group Policy Editor and navigate to the location shown below.
In Settings, this "Apply local firewall rules" configuration item determines: after the various stacking/exiting rules are configured and pushed in the group policy, whether the additional customized "rules" on the local firewall can also be applied and effective.
I hope the information above is helpful.
Best regards
Zunhui