Rear-flanged hydraulic cylinder