Note - you can only drain about 4 quarts from the auto transmission. (I'm assuming you have an auto?)
The transmission can be flushed through and refilled but this has risks if the transmission fluid has not been changed in a long while. Lots of threads about this on this forum.
We’re the best Subaru Forester Owners Forum to talk about the best years of the Subaru Forester, modifications and reliability history of the Subaru Forester.