I am trying to understand how to use the verb must in past tenses. 

Found a rule in "English grammar in use:
"You cannot use must to talk about the past".

But in real life I met a lot of phrases with "must have been". 

As I understand - we use "must have been" when the meaning is close to may/might. 
Is it correct?