Early in the war, Confederate strategists believed the primary threat to New Orleans would come from the north, and made their defensive preparations accordingly. As forces under Grant made gains in the Western Theater, much of the military equipment and manpower in the city's vicinity was sent up the Mississippi River in an attempt to stem the victorious Union tide. When Flag Officer David Farragut was able to force the Union Navy's West Gulf Blockading Squadron past the Confederacy's only two forts below the city in the Battle of Forts Jackson and St. Philip, New Orleans had no means to oppose capture. Thus the port, by far the largest Confederate city, fell undamaged into Union hands, tightening its grip on the Mississippi River and fulfilling a key element of the Anaconda Plan for the South's defeat. Although the occupation under Maj. Gen. Benjamin Butler was detested, he was astute enough to build a base of political support among the poorer classes and create an extensive intelligence and counterespionage capability, nullifying the threat of insurrection. The Confederacy's loss of its greatest port had significant diplomatic consequences. Confederate agents abroad were generally received more coolly, if at all, after news of the city's capture reached London and Paris.