No, they were whatever tribes in the Caucusus were warring with people at the time. They could have refered to anyone up in that direction, but not to one people or place. They are mythical.
Here is a great run-down of how this has been interpreted. I was always told that it was the Russians...but that's probably more because the Soviet Union seemed so evil to everyone.
"Here is the first form of the legend. Before about 500 AD, references to Gog and Magog occur many times, in the preserved sermons and letters of St Jerome and other early Christians; whenever Christendom was threatened by invaders, the names of Gog and Magog seem to have been bandied about.
There is evidence of a lively debate on just whom was meant by Gog and Magog: when the Scythians threatened, it was the Scythians; when the Huns threatened, it was the Huns; and when the Alans threatened, someone would call the Alans 'Gog and Magog'; so too with the Khazars, the Turks, the Magyars, the Parthians, the Mongols. Marco Polo in the thirteenth century thought that Gog and Magog must be represented by the Mongol horde which had just conquered most of the East . . . And so on, and so on--presumably, just as a present-day demagogue might say: "So-and-so is the Antichrist!" or, perhaps, "America is the Great Satan!" Gog and Magog were the enemy beyond the gate--just waiting to pounce.
This state of affairs continued about the end of the 17th century, at which time the legend of Gog and Magog died away; today it is largely forgotten. And the reason for this? Until the 17th century, Asia for Europeans was terra incognita. The Christians of Europe were certain that the land of Gog and Magog lay somewhere to the northeast; after the 17th century, Europeans began to travel in Asia and write accounts of their experiences . . . and as they explored, they pushed back the location of Gog and Magog's land until at last it was fairly certain there was no Gog and Magog's land; and once that became known, the legend ceased to be told.
And the reason that Europeans did not travel in Asia? Well, the East was vast, and the trade routes across it were guarded by Persian and Arab merchants; the Christians of Rome and Byzantium never got much further than the Holy Land. After the time of the Prophet (in the seventh century) the Islamic revolution swept across all Persia--almost in an eyeblink against the map of the centuries. Christians were not welcome in Muslim lands; the Zoroastrian and Buddhist peoples of Persia fled into India and the Himalayas; the Jews coexisted with the Muslims, basing themselves around Baghdad. In the north, the Islamic armies swept up into the present-day Soviet republics . . . and were turned back by formidable land barriers--deserts, seas, mountains ranges galore, arranged in a de facto wall encircling Persia. These mountains and deserts and seas were not impassable--for caravan travel and small parties on horseback and camelback. But the only portal for armies was the Gate of Gates, through the area between the Black and Caspian seas. This strait was mostly blocked by the Caucasus mountains; today, the remnants of fortifications can be found everywhere in the area; but at two points, the mountain barrier could be easily crossed.
Here, at the Caucasus, the Muslims ran smack into the empire of Khazaria. This nation, largely forgotten by history, seems to have been peopled by nomadic horsemen descended from the Huns, numerous enough and fierce enough to turn back the Muslims and retain their territory; at its height, the Khazar empire stretched from the rivers Volga to the Don and controlled the Caspian (then called the Khazar Sea) and the Caucasus mountains and large stretches of the northern coast of the Black Sea. In or about the time of the Islamic revolution, the people of Khazaria converted to Judaism. And until about 965 AD (after which they vanish from historical accounts) the Jewish Khazars controlled the area around the Caucasus.
Commerce went on . . . but until Marco Polo's time, no Christian merchants crossed Asia and left records for posterity. Not until the Mongols conquered and pacified the area in the thirteenth century do we have any accounts whatsoever of Christian travelers. The East seems to have just been too dangerous for exploration."
http://www.iras.ucalgary.ca/~volk/sylvi ... dMagog.htm