Great question! For me, I met a lot of people through more traditional "serve on a board or commission"-type activity in my twenties. But what I found most enjoyable was hands-on volunteering: stream cleanups, teaching kids bicycle safety, composting demos, that kind of thing. Those more hands-on activities were often more inconsistent, though, with the folks showing up every week or month rotating quite a bit.
The sweet spot for me was somewhere in the middle, taking on more of an organizer role with civic meetups and that kind of thing. I still got to do some of the hands-on stuff by teaching the rotating cast of volunteers, but formed closer relationships with other organizers.