Where I've rough camped (boondocks) I carried plastic trash bags and a burlap bag with cord for suspending it over a tree limb. Soon as I got to camp I'd look for a tree limb to use. Tie a rock or weigh to the end of the line
so I could throw the rock over the limb which was fairly high above the ground.
The food in question went into the new trash bag and tied up with a twist tie. That into the burlap which was then tied to the cord. (rock was removed) When the other end of the cord is pulled to raise the bag to where
the bottom of the bag is about 9 ft above the ground, that end can be tied fairly high up on another tree.
I once saw a guy who had a metal trash can lid with a small hole in the center of it. He put it on his cord and tied a know under it above where he would tie onto the bag of food items. He called it a squirrel guard. He said he
only had problems with squirrels once. I would imagine that if it rained, it kept the rain off the food bag too.