See the FAQ and threads of note.
The Forester shares the same chassis as the Impreza. An EJ series motor will motor to the same mounting points as any other EJ series motor. However, the crossmember would need to be changed to accomodate the up-pipe.
-Jon