Galaxy S2 ICS 4.0.3 Wi-Fi connecting but not able to browse
Have you enabled the MAC Filter on your Router?

If you've then you should disable it or enter the MAC Adress of your S2 in the Routerconfig.