Consider this.
Most SWAT teams are 10-12 guys right? Maybe more for huge departments like LAPD but you get the idea.
Say that team comes to your neighborhood and you get a couple friends to fight back. You manage to kill/wound 5 of the SWAT guys.
Now that team is combat ineffective and incapable of carrying out raids until they find and train replacements.
While a common fantasy, my opinion is that the entire premise is fatally flawed I doubt anybody with a good amount of intelligence will come to the conclusion that it is a workable, desirable or even sane idea. Indeed even talking about such fantasies just gives propaganda fodder for those that hate freedom.
The problem is that unless we are in a full scale civil war and you have the support of a very large amount of people, such as most of the town / state, You'll have all their buddies and anyone they can call for assistance showing up to get you, so you won't be able to just stay comfortably in your homes, you'll be hunted fugitives & most likely it won't be long before you are dead or in prison.
If you however have that kind of support from the whole city / state / citizens, most likely it would render such situations non-existent, as then most likely you will with a bit of planning be able to make sure that situation never comes up, and ensure local public servants are doing what the local public want. If the police are not being paid to do so, and not being ordered to go do confiscations by the people that pay them, I doubt they will want to go do it on their own time & dime especially if that means being fired & loosing their pensions. Then you just have to worry about what comes from the outside which is a whole different game.
Just look at how the government in California is pretty much openly defying the Federal Government on people illegally in the country, as well as openly defying federal laws on drugs. The state threatens firing and state criminal charges to LE that choose to obey federal law & Federal LE requests for information / holds on people in the country illegally. Even going so far as the governor giving pardons to criminals so they won't be deported for their crimes. Result? Widespread save haven in CA for people in this country illegally even if they commit crimes.
You and your buddies to be shooting it out with the foot soldiers at your doorstep is for basically when you want to die a useless death, it's not going to help the "cause" much & will probably be used as propaganda fodder against your "cause". If you have lost the fight for the hearts and minds of the local public so completely that it has come to door to door targeted confiscation, then quite possibly, the best thing is to make sure when they come to your house, you can stand aside as they rampage around and they find nothing.
Study the local resistance to the Nazis across Europe, the Irish struggle against English rule in the 20th century, the underground fight against communism in eastern Europe and Russia during the late 20th century & for that matter our own current endless fight against anyone that hates our country in the name of The Prophet. Shooting it out with the police / swat / army when they show up at your doorstep is pretty much a loose / loose situation. History can teach you a lot about what works and doesn't.
You have to fight to win the war of public support & hearts and minds. If you loose that it won't be long before you loose the legal fight & then armed resistance to the foot soldiers door to door will be kind of pointless.