Step 1.

Create an IM/P2P object in Objects Setting >> IM Object Profile/P2P Object.

Step 2.

Create a CSM profile in CSM >> IM/P2P Filter Profile

Step 3.

Create a filter in Firewall >> Filter setup, and select the profile you just created in ‘IM/P2P Filter’ field.