I was having a problem connecting to the internet, i tried to access the modem's gateway but for some reason it won't let me, so i tried the windows network diagnostics, it told me that the DHCP was disabled while i am certain that it was enabled. Anyway, the problem was solved, i can access the internet again plus the modem's gateway.

Since that diagnostic test, the ping is always at 474ms and the speed is always at 0.43mbps, i have the 1mb plan from IDM, i called them and they told me to unplug all the telephones in the home and reset the modem, it didn't solve anything, i called them again and they told me that they can contact Ogero so they can come to my house and replace all the phone wires running inside the walls. It's a very annoying process and i know that there is nothing wrong with them, something went wrong since that diagnostic test and i couldn't figure it out yet. So anyone had this issue before and know a solution for it? please let me know.
There's not much help I can provide you except for the following:

1- Ogero does NOT do house wiring, even if you call them, the only thing they can do is come and ensure that the line is properly reaching the central box in your building; They will also issue a test from your house but if they do find a problem, they will tell you to get someone to fix the wiring.

2- Are you connecting to the modem through WIFI? if so there are a few tests you can make. First, ping your gateway, the reply must never exceed 2ms. If it has wireless interface enabled, open the web interface to your modem and check how many devices are connected to it or have connected to it. Ensure that you know these devices and if not, your security level is low, make sure you move your security to WPA2 and delete all the device entries you see in the interface.

Just report back what you test so that we can help you.
Do you want to test your phone line in the wall to see if there is a problem ?
ping idm.net.lb -t
If the reply is between 40-60ms then there is absolutely no problem with your connection, in that case IDM had transfered you to an Internet via satellite route.
In case the delay between you and idm.net.lb is 300-400 ms then they are right there will be something wrong with your cables.
xterm

I tried both wired and WiFi, i am getting the same results, i pinged the gateway and i got 0ms. I am already using WPA2 for the wireless security.

Aly

When i tried to ping IDM, i got request timed out. The problem isn't just the high ping, the speed is pretty messed up and not stable, always below 0.50mbps.

Edit: Okay, so i managed to ping IDM, it replies 42-47ms, for now the speed is back to normal but the ping is still showing 471ms.

There is one weird thing about the ping, it's giving me 471ms on speedtest.net and about 156ms on pingtest.net
I am frustrated, ping is so important to me because i play online a lot :(
42-47 ms to IDM means there is nothing wrong with your cables, speedtest and pingtest are not 100% accurate, some ISPs cache the speedtest site to fake the results, anyway check your latencies ingame, if they are good, dismiss speedtest and pingtest.
Yeah i tried some online games, they aren't as bad as speedtest is showing, but they used to be better, i hope that the ping will improve soon since the speed went back to normal.

Thanks for the help.
H.S, please use the Internet in Lebanon Q&A topic for your future questions.