The calculated distance (air line) between Freiburg and Ettenheim is approximately 18 miles respectively 29 kilometers.
By car or train, the actual journey to Ettenheim is certainly longer, as only the direct route (as the crow flies) between Freiburg and Ettenheim has been calculated here.