We live in the middle of a forest, and so far no trouble, although there are many foxes around.... we have fences, although not the whole garden is enclosed. Some are electric fences (because of the ponies). We do the pee trick. Bit of a chore, but you can do it, (and yes, even if you are a female, just takes a bit longer)... nettle tea helps, lol.
We have ducks, but we lock them up at night in a very safe little hut and we have small lights going around the hut at night.
We keep all the rubbish in secure bins (we don't produce much rubbish attractive to foxes anyway)
We have a dog and two cats and they are fairly alert to intruders (my white pussycat Muffin is our best 'watch-dog'... she will warn us of anything from stray cats to wild boars, and she's been known to kill magpies and snakes!). All the feed is in secure bins.
If any foxes did show up, I'd add to the electric fences, and I would consider getting a motion activated water scarecrow. And a goose.
I understand that in towns their populations escalated to unhealthy numbers and they have become parasites, but in the countryside they are part of the ecosystem and while I do protect my garden and pets as best I can, I don't think we have a right to exterminate predators... they were here before I came, and I knew they were. They belong here more than I do. If the foxes were gone we'd hve a plague of rats rabbits which are even more difficult to exclude.