If your opponent has a passed pawn on the rook file and they have a rook or queen behind it then this is a really dangerous position. The best thing to do is to avoid that situation. Try not to let your opponent get such a pawn.
If you can't do anything about it then you have to blockade; which means you put a piece on the file that blocks the pawn's advance. In general use your least valuable piece (e.g. knight or bishop) for this.
Apparently this isn't even such a strong strategy but I have lost against this attack several times. I have tried just ignoring it and concentrating on building my center. I have tried addressing it exclusively spending all my time on defence of it. Please share some moves with me.