Login into your router and enable UPnP (universal plug and play). Your router is currently blocking ports that you need to play online. UPnP allows your PS3 games to open ports on the router that are needed to play online. When you are done gaming, the router then closes those ports again.