How to block outgoing ports?

I wanna close ALL outgoing ports except 443, 123, 853. How to block ALL except these ones?

Why: to avoid abuse of my network as much as possible.

Will this be a good idea? I use my Fedora only for home usage, and I wanna mitigate potential exploits