The 2nd Amendment of the US Constitution guarantees that each citizen has the right to keep and bear arms for self-defense.
The 2nd amendment qualifies that right with words about a "well regulated militia". Not everyone agrees that individuals have the right to bear arms when they are not acting as participants in a state sanctioned militia. Courts have ruled both ways on this and there is still quite a bit of debate.
If you wish to live in community that heavily regulates firearms, then band together and do so - nothing restricts a locality/city/region from banning the things of their own initiative (see also Chicago, D.C, New York City, etc.)
It is not true that communities can ban fire arms on their own. That notion has been over turned in court along with all the related local laws. I live in Chicago and the city and state are now grappling with how far they can go to restrict even concealed carry much less the possession of guns. We actually have to post signs if we don't want people to bring fire arms on our property.