Open Kaspersky internet security application go to ->Settings -> Protection -> Firewall Settings and click Configure packet rules.
Then click Add button and fill the each field like below picture and save it.
Below picture I have allowed SMPD TCP ports in same way you have to do UPD port also.