How Do You All Paint Wood When the Nail Heads Are Rusting?

I recommend Kilz. Used it once on some old fence posts. Worked great