One way you could do that (it might require significant rework) is with the use of a differential /planetary gear system.
The planetary gear arrangement with the sun-planets-ring might lend itself more to the endeavour
i.e. attach:
- the red shaft to the sun
- the outer (blue) tube to the ring
- the gear to the planet carrier.