Just saying dude, without a cover (caravan company compound/Habitation blocks / Market) the extra security just makes your palace into a honey pot attracting every raider, their dog, and robot to attack. They will besiege you, and technology has a habit of failing you at the worst moment.
I for example, would create my Private Fort, wall that [censored] off, then surround the outside with habitation blocks for rent, wall around them, then wall further around for a market. Tenant's Human flesh / non exential facilities are easy to replace. Better some of them die, they form a militia, help you defend the place, while still PAYING YOU for the Priveledge of living in the Habitation Blocks.