High-accuracy long distance measurements with a mode-filtered frequency comb