Updated

Russian President Vladimir Putin said Thursday that National Security Agency surveillance is necessary to fight terrorism, but added that the government needs to "limit the appetite" of the agency with a clear set of ground rules.

Putin's comment at a major news conference was surprising support for President Barack Obama's administration, which has faced massive criticism over the sweeping electronic espionage program.

Putin, a 16-year KGB veteran and the former chief of Russia's main espionage agency, said that while the NSA program "isn't a cause for joy, it's not a cause for repentance either" because it is needed to fight terrorism.

He argued that it's necessary to monitor large numbers of people to expose terrorist contacts.

"On political level, it's necessary to limit the appetite of special services with certain rules," he said.

Putin added that the efficiency of the effort -- and its damage to privacy -- is limited by the sheer inability to process such a huge amount of data.

Asked about former NSA contractor Edward Snowden, whom Russia has granted asylum, Putin insisted that Moscow isn't controlling him.

He argued that any revelations published by Snowden must have come from materials he provided before landing in Russia, and reaffirmed that Moscow made providing refuge to Snowden conditional on his halting what he called anti-American activities.

Putin said he hasn't met with Snowden and insists that Russian security agencies haven't worked with him and have not asked him any questions related to NSA activities against Russia.

Putin dismissed a report claiming that Moscow stationed its state-of-the art Iskander missiles in its Kaliningrad exclave region that borders NATO and EU members Poland and Lithuania, but added that he continues to consider such a move a possible way of countering the U.S.-led missile defense system in Europe.

Both Poland and Lithuania have expressed concern about such a possibility, and Washington warned Moscow against making destabilizing moves.

Putin said Russia has long considered it, but added that "we haven't made the decision yet" on deploying them.

Turning to Ukraine, Putin insisted that Russia's bailout of the economically struggling country was driven by a desire to help a partner in dire straits and wasn't linked to its talks with the European Union.

Putin said that Russia decided to buy $15 billion worth of Ukrainian securities and slash the price for Russian natural gas shipments to Ukraine to help a "brotherly" nation.

He added that the move is driven in part by pragmatic considerations, as Ukraine has been an important customer for Russian gas and a key partner in industrial cooperation since Soviet times.

The Kremlin's move comes as Ukrainian President Viktor Yanukovych faces massive street protests over his decision to spike a pact with the EU in favor of closer ties with Russia.