There is a script around that will reset the iptables settings to theorigianal unrestricted state. Do a search on "rescue script ubuntu" and youshould find it. If not let me know and I'll dig it up and post it.