What the dog in the farmyard is guarding
A farm dog loose in a yard is usually not uncontrolled or abandoned — he is on duty. Farm dogs are kept to deter thieves, foxes and stray dogs, and many are bonded to the yard, buildings and livestock rather than socialised to passing walkers. His barking, charging to the gate and pacing the boundary are territorial behaviour aimed at moving you and your dog along, and from his perspective your dog is the most provocative thing that passes all day. Trouble starts when the boundary is open — a five-bar gate ajar, a yard that spills onto the lane, a gap in the hedge — and the guard dog decides his territory includes the stretch of road you are standing on.
Set up the pass before you reach the yard
You can usually hear a farm dog before you see the farm. As you approach, shorten your lead, bring your dog to the side away from the yard, and cross the lane early if the far side gives you more distance. Keep him close and calm, with treats or a steady stream of quiet attention if he tends to react, because a dog who starts barking and lunging at the gate converts a noisy pass into a confrontation. Decide before the narrowest point — the gate, the yard entrance, a blind corner — whether to proceed or turn back, since retreating from halfway past a yard you have already stirred up is harder than choosing a detour calmly.
On routes you walk often, learn which farms have loose dogs and at what times yards are busiest, and simply choose the alternative lane or field path for those stretches. A longer, quiet route is not defeat; it is route planning around a known hazard, the same as avoiding a flooded track.
During the pass, and if a dog comes out
Walk at a calm, ordinary pace. Running excites pursuit, stopping invites investigation, and shouting at the farm dog or waving a stick raises the stakes for both dogs. Avoid staring at the guard dog, keep your voice low and boring, and keep your own dog moving forward with you rather than letting him plant his feet and bark back. Most yard dogs escort you to the edge of their territory and turn back once you are clearly leaving it.
If a dog comes out into the lane and approaches, stop, put your dog behind you, and stand still and sideways rather than backing away fast, which can trigger a chase. Speak in a low, firm voice, avoid direct eye contact, and move off slowly once the dog's intensity drops or a farmer appears — call toward the house if you need help, since the dog's owner is the one person who can recall him instantly. Do not let your dog off the lead to sort it out himself, and do not pick up a small dog in a jerky movement that excites the approaching dog further; lift smoothly only if you judge you can do so safely.
After an incident, and planning ahead
Check your dog over once you are clear, including for bites hidden under thick coats after any physical contact, and contact a veterinarian promptly if skin was broken, because farmyard bites carry a high infection risk. Report a dog who repeatedly leaves the yard and attacks on a public lane to the local authority or police, with the farm location and time, since a dog loose on a highway endangers drivers as well as walkers.
Should the encounter end with your dog bolting across unfamiliar farmland, turn to KinsLe: the Lost Pet Alert System sits inside his profile without charge, appears as a map listing, and enables whoever spots him among the fields to contact you by direct message.