Basically, you're going to need a pneumatic framing nailer, and we've gathered some of the best nail guns for fencing to look over (and we go into what criteria .
The standard option is hot-dipped galvanized nails, which provide more corrosion-resistance than electro-galvanized or hot-galvanized materials. The most reliable material for pressure-treated wood is stainless steel. Use 6-d (2-inch) rink shank nails to fasten pickets and infill boards.
Would a roofing nail gun work, with galvanized nails?. That's overkill for fence boards, but was exactly what I needed for the barn and pergola .