I haven't had to worry about rain so much, but I have had to prepare my pack and other items for a trip through surf. Dry bags are the answer. Something critical like a down sleeping bag also gets an interior plastic bag, sealed and taped.