Go to your routers settings page (usually
http://192.168.0.1/) and forward these ports:
TCP: 80, 443, 5223
UDP: 3478, 3479, 3658
If you don't know how, post the make and model of router and I'll try to help.
You can also place the PS3 in the DMZ and not worry about forwarding ports.