for more than a thousand years after the restrengthening of the federation forces , the msf fought to keep the federation together ; then , as the centipede gates continued to bring new territories closer to the federation , a war broke out between the federation and several independent civilizations on the far side of the great red nebula .