i need to block access to udp except for an application that i can add a rule for

how do i ping test the udp is blocked?