how to allow incoming UDP packets with iptables

I am looking for an iptables command to allow incoming UDP packets for my Linux server

also is there a command I can use to set the default action for outgoing packets to accept?

Thank you

change default policy:

iptables -P OUTPUT ACCEPT

allow all UDP

iptables -I INPUT -p udp -j ACCEPT