How rust passes from juniper to pear
In spring, after rain, the horns on the juniper swell and wind and rain carry spores onto young pear leaves, from bud burst to the end of flowering. About a month later, from late spring, orange spots appear on the pear leaves, and from midsummer spore pads form underneath them. In late summer and autumn these spores infect junipers, and a year and a half to two years later new horns appear there. Pears don't infect pears and junipers don't infect junipers: without both hosts the cycle can't close.
Pear rust in Britain
Pear rust used to be almost confined to mainland Europe and was rarely recorded in the UK. Over roughly the last twenty years it has become much more common here, and the RHS says the reasons are not understood. Branch cankers on pear trees, common in mainland Europe, have not been common in the UK so far. Severe infections may reduce the crop.
How far to plant junipers from pears
The risk is very high within about 30 m and drops sharply at 300–500 m, but spores can travel further, so in a town you can't rely on distance alone. A pear can be infected even if there are no junipers in your garden: the source may be next door, and swellings are easy to overlook.
Which junipers don't get pear rust
Creeping juniper ('Blue Chip', 'Wiltonii'), Juniperus squamata ('Blue Star', 'Blue Carpet'), 'Blue Arrow' and Chinese juniper 'Blue Alps' are not susceptible to pear rust. Most European sources say common juniper (J. communis) doesn't carry it either. These are the junipers to plant near pears.
Will a fungicide help?
A fungicide won't cure an infected juniper. On pears the RHS advises against fungicides, and no product with activity against rust is made for home gardeners on pear trees whose fruit will be eaten. Copper sprays are not available to UK home gardeners either. Your best tools are cutting out swellings, removing badly infected junipers and planting non-susceptible ones.