Past and present variability of the solar-terrestrial system door