No mater whether it is a freight train or a passenger train; the lights on the rear were called “Marker Lights”. They were RED to the rear…that’s when there were cabooses, and lights used on the rear of trains. Today with new rules, there is usually just a flashing light and box on the rear of freight trains, and sometimes passenger trains too. The box contains equipment used to monitor brake line pressure. Some passenger trains still show red markers to the rear, as in the example of Amtrak, and sometimes on VIA Rail.
Contrary to what a great number of people outside of real railroad workers; the lights that appear on some model locomotives, on their front end, are NOT marker lights, they are/were Classification lights… The common statement is “Markers bring up the rear”, and a train in the old days was not complete without Markers on the rear. (According to operating rules)
Classification lights were used to indicate the class of train. Green indicated a second section of a train was following. White indicated that the train was an EXTRA train, not on the timetable. Red was NOT a normal colour on the front of a locomotive. Usually if a locomotive was to be run backwards for any length of time, a red lantern was hung on the pilot. When Diesel Electric locomotives became standard, there were often two or three extra lights on both sides of the front end. They were usually Green and White, but the third light would be red, if there was a third one. It would only be used if the locomotive was running in reverse on the back end of a train.