Hamas is a branch of the Muslim Brotherhood, which is now in control of Egypt. Mubarak was opposed to the Muslim Brotherhood/Hamas, as they are one and the same. Two sides of the same Rafah.
Opposition leader Isaac Herzog calls on government to allow Syrian refugees into Israel (Haaretz)
from the article: Opening of Rafah crossing spells end of Israel's blockade of Gaza