I agree, you shouldn’t have to deal with other people’s dogs, if you aren’t willing to shoot them, and I understand the many reasons why you wouldn’t do that, then getting some pepper spray and using it on them every chance you get, then spraying in a perimeter around your place every 10-15 feet will remind them that this isn’t the place to visit, the dogs going home with pepper spray on them will be unpleasant to the dogs as well as unpleasant to their owners.
Getting a pellet gun or rifle will also deter the dogs, but the owners will not know about it, I’d prefer the pepper spray to begin with, then the pellet gun if need be.
Check the local ordinances, it’s possible that there ARE some laws against dogs roaming free.
What others are reading
For films about individuals and technologies for living off the grid X