Hi everybody.
Su-17M4 (Su-22) can be fitted with one pair of SPPU facing forward and one pair facing backward, however only a forward-facing gunpods have the ability to change their depression angle. It is possible due to a targetting computer, which is able to provide a real-time firing solution but against a stationary target only. The circular aiming error is just about 6m (six meters!!), even when shooting backwards! A really accurate son-of-a-bitch! :D
Su-25, however, is not equipped with a targetting computer, just a simple ballistic computer. Thus it can also use the SPPU gunpods, but only in forward hemisphere. I don't have any information about more advanced Su-25 variants (like Su-25T or Su-39), but it is very likely that these aircraft have the appropriate equipment on-board, so they are able to use the gunpods in a same way as mentioned above.
This is a very simple explanation, but if needed, I can provide some more.