I don't think I understand how to create settlement defenses. I've built several guard posts and a tower, but my "defense" rating is still zero. I built a flame trap and brifely had a rating of 3, but the flames went out and the rating went back down to zero.
I assume the flame trap needs to have a switch of some sort on it, but what about the fortifications? How do I get those to count?