1. Park the vehicle on a level surface and engage the parking brake. Chock the front wheels.
2. Loosen the lug nuts on the rear wheel that you will be working on, but do not remove them yet.
3. Raise the rear of the vehicle with a jack and place a jack stand under the frame for support.
4. Remove the lug nuts and take off the wheel.
5. Remove the brake caliper and hang it out of the way with a piece of wire or bungee cord.
6. Remove the two 14mm bolts that hold the brake rotor to the hub.
7. Pry the brake rotor off of the hub using a pry bar. Be careful not to damage the rotor.
8. Remove the four 17mm bolts that hold the hub to the spindle.
9. Pull the hub straight off of the spindle. You may need to use a pry bar to help you remove it.
10. Once the hub is removed, you can access the rear wheel bearing.
11. Use a bearing puller to remove the old wheel bearing from the hub.
12. Clean the hub and bearing surface.
13. Press the new wheel bearing into the hub.
14. Reassemble the hub and spindle, and torque the bolts to the specified torque.
15. Reinstall the brake rotor, brake caliper, and wheel.
16. Lower the vehicle and remove the jack stand.
17. Test drive the vehicle to ensure that the repair was successful.
Note: The steps may vary slightly depending on the model and year of your Forester. It's always a good idea to refer to a repair manual or service information for your specific vehicle.