<map lat='54.77217736682661' lng='56.02752685546875' zoom='10' view='3' float='right' height='400' width='400'/> Ufa (Russian: Уфа́; Bashkir/Tatar: Өфө) is the capital of the Republic of Bashkortostan, Russia.
It seems to be pretty difficult to hitch rides from the M5 onto the M7 (and vice versa), so if considering hitchhiking to Moscow (coming from the east) one should consider if it's worth the time to go through the whole city or hitch further along the M5, which might be some 200 km more to travel.
There's lot's of traffic passing the DPS police post along the M5 south-west of Dema, but most traffic seems to drive only towards nearby settlements.
East towards Chelyabinsk, Ural mountains, West towards Samra
Take Bus Nr.: 110 from the city center into the direction airport. It takes you about 30min to the bus stop "Kafe Otdyh". You will pass by under the M5, so you can easily know when to get out - from the station you have to walk back for about 200m until you reach the M5. You can stay directly after the driveway.