Wagons

Must both endpoints lie inside a free wagon's service range?

No. At least one endpoint must lie within the station's service range. The other endpoint still needs accessible roads, sending/receiving permissions and valid demand. This is a free-transport task condition. Fixed routes identify stops along the drawn path instead.
Rule sources

Assets/Script/Game/WagonStation/FacilityWagonStation.cs:4

Based on this project’s current base configuration. Difficulty, education, equipment, skills, save state and mods can change actual results.