I am passing through a router where only the port 1521 is open. TNSPing and ping are working fine.
here is my LISTENER.ORA:
SAVE_CONFIG_ON_STOP_LISTENER = TRUE
STARTUP_WAIT_TIME_LISTENER = 0
LISTENER = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = x.x.x.x)(PORT = 1521)))
CONNECT_TIMEOUT_LISTENER = 10
#note I have increased timeout with no success
here is my TNSNAMES.ORA
CONTRG =(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = y.y.y.y)(PORT = 1521)))
(CONNECT_DATA = (SID = TEST)))
Is there a .ORA file that must be configured to force the llistner to use only port 1521. (other than TNSNames.ORA and Lisner.ORA.) If so which one and
how exactly is it done?
I ran a sniffer to see what was getting through the router. I noticed that the client on x.x.x.x trys to use a soccet 2771. (This soccet changes randomely at each attempt. I am only opened at 1521) Note that ICMP is opened for all cases. The following results are observed.
SOURCE DESTINATION PROT PORT
X.X.X.X Y.Y.Y.Y TCP 2771 > 1521 [SYN]
Y.Y.Y.Y X.X.X.X TCP 1521 > 2771[SYN,ACK]
X.X.X.X Y.Y.Y.Y TCP 2771 > 1521 [ACK]
X.X.X.X Y.Y.Y.Y TNS Request connect (1)
Y.Y.Y.Y X.X.X.X TCP 1521 > 2771 [ACK]
Y.Y.Y.Y X.X.X.X TNS Response redirect (5)
Y.Y.Y.Y X.X.X.X TCP 1521 > 2771 [FIN,ACK]
X.X.X.X Y.Y.Y.Y TCP 2771 > 1521 [ACK]
X.X.X.X Y.Y.Y.Y TCP 2771 > 1521 [FIN,ACK]
X.X.X.X Y.Y.Y.Y TCP 2772 > 1229 [SYN]
Y.Y.Y.Y X.X.X.X TCP 1521 > 2771 [SYN]
X.X.X.1 X.X.X.X ICMP Destination unreachable
X.X.X.X Y.Y.Y.Y TCP 2772 > 1229 [SYN]
X.X.X.X Y.Y.Y.Y TCP 2772 > 1229 [SYN]
X.X.X.1 X.X.X.X ICMP Destination unreachable
Thanks in advance