redir for oracle database connections
I'm trying to configure a reverse proxy for Oracle Database connections.
What I have:
Host outside --> Reverse proxy --> Oracle Database
The "Revese proxy" has two IP, one for local and another for outside.
I've tried with iptables, but unable.
Now I'm trying with "redir". When I do a tnsping database, it works and says OK.
But executing sqlplus user/pass@database, it tries to connect but time later I receive a timeout.
What i do is a redir from port 1521 in "Reverse proxy" to 1521 in "Oracle database"
Can any tell me why this doesn't work or any other way to do it?