>>> I have tried using the iptables command to open port 1521, but I still can't connect.
It's better if your stop iptables at:
service iptables stop
http://www.cryer.co.uk/brian/oracle/ORA12560.htm"Oracle classify this as a â generic protocol adapter errorâ . In my experience it indicates that Oracle client does not know what instance to connect to or what TNS alias to use."
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?