I used to have a similar problem when I lived in a house with a property bordered by a very popular sidewalk. My dog scared so many pedestrians by running right up to the fence barking like hell. He never hurt anyone or anything, but I never got him to stop until we moved to a house where the fenced in area was in the back yard.
Fortunately my current home is pretty remote, so we get basically no pedestrians and definitely none close to where my current (different) dog can go. However, he does take affront to delivery people if they stick around too long; I’ve never heard him bark, but he’ll go to the windows nearest the front porch to huff and puff. Sometimes, when the delivery person has left, I’ll tell the dog he did a good job scaring them off … And as a result, my five year old has taken to huffing and puffing alongside him.
I don’t know if any delivery people have noticed, but it would be interesting to know what they think about it.
When I got my dog, I was told he was a “hound mutt.” You can see him in a few of my posts. If he were loose and thought you were an intruder, I’d wager it would be pretty scary. The delivery people just leave stuff on the porch, though, so they’re never in danger from him.
My five year old is pretty small, but I doubt they’d choose to bite any ankles. Probably just try to convince the delivery people to play.