Front of engine is where the injection pump is, rear is where the starter engages.
Front and rear relate to the engine, not it's location in a particular piece of equipment.
If your machine has a reverse mounted engine, and the starter is at the front of the tractor, the seal at the front of the tractor would be the rear main seal.