Node works fine for an hour then loses all peers and does not sync. Restart fixes it but then it loses all peers in an hour or two

My node will work fine and then eventually have zero peers and will not be synced with the blockchain. I turn it off, then back on, and it gets 10+ Peers for about an hour and then loses them. Anybody please help me, been trying to fix it for a month now.