So, I did a telnet test from source to target. But I was getting 'Closed by foreign host' error. It seems to get connected for a second, but then I get the 'closed by foreign host' error
$ telnet 192.168.0.179 15001
Trying 192.168.0.179...
Connected to 192.168.0.179.
Escape character is '^]'.
Connection to 192.168.0.179 closed by foreign host.
But , ping is working fine
$ ping 192.168.0.179
192.168.0.179 is alive
And I am able to ssh from source to the target machine without any issues.
After some googling, I uncommented the following line in /etc/inetd.conf
Why are you targeting port 15001? Port 15001 is not a standard port number that I am aware of. I presume you have some reason for it.
Is the port in /etc/services? Could you post the output from grep 15001 /etc/services
Is the service in /etc/inetd.conf? Using the name returned above (e.g. my-svc tcp/15001) could you post the output from grep my-svc /etc/inetd.conf
Is the server listening? On the target server, could you run netstat -na|grep 15001 and post the response. If you have lsof installed, could you post the output from lsof -i tcp:15001
Is the listener logging an error, if you know where it would?
From your telnet attempt, it would suggest that the server is listening, but doesn't respond to telnet, and why should it. It is presumably a different service.
Me i should ask to the networkteam if firwall rule allow port 15001 on your box.
I have allready seen a firwall that said that to me
$ telnet 192.168.0.179 15001
Trying 192.168.0.179...
Connected to 192.168.0.179.
Escape character is '^]'.
Connection to 192.168.0.179 closed by foreign host.
It was a msg sent by firwall not by your target hosts. For security reason.
$ telnet 192.168.0.179 1532
Trying 192.168.0.179...
Connected to 192.168.0.179.
Escape character is '^]'.
Connection to 192.168.0.179 closed by foreign host.
---------- Post updated at 10:30 AM ---------- Previous update was at 10:24 AM ----------
Thank you Sylvian .
These solaris machines are virtual machines running is my home based network.
Guest OS : Solaris 10
Host OS : Windows 7
Virtual Box version: 4.1.18-78361-Win
I haven't enabled any firewall . Is there any way I could disable it ?
I tried changing the port to 2012 and restarted the service in target. Now, when I try to telnet from source the telnet command hangs. I kept trying Ctrl+C to get the prompt back, but not luck. I had to close and start another putty session.
Source: 192.168.0.178
Target : 192.168.0.179 (the server which has the port I want to check if it is open)
-- Trying to check if port 2012 in 192.168.0.179 is open
-- From 192.168.0.178 I am running the below telnet command
$ telnet 192.168.0.179 2012
Trying 192.168.0.179...
Connected to 192.168.0.179.
Escape character is '^]'.
^C
^C^C^C^C
^C^C
^D
--- Netstat Output from Target
-- When trying to access 192.168.0.179:2012
$ telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
login: oracle
Password:
Last login: Thu Nov 8 22:18:20 from tigris179
Oracle Corporation SunOS 5.10 Generic Patch January 2005
$
$
You still haven't told us what is listening. No point connecting with telnet if that's not what is expected, but if on the server side you see the session ESTABLISHED, then the contact is there. You obviously know how to change the listening port, so what's it for?
In the target (192.168.0.179) , I am running a process called mgr which is part of an application called Golden Gate.
mgr process seems to have some issue holding on to this port.
I tried running another process (Oracle DB listener) on the same port 2012. This time the it hung for about 40 seconds and I got
Connection closed by foreign host error without hitting Ctrl+C
$ telnet 192.168.0.179 2012
Trying 192.168.0.179...
Connected to 192.168.0.179.
Escape character is '^]'. ----------------------> hung for about 40 seconds and then received the below error without the need for Ctrl+C
Connection to 192.168.0.179 closed by foreign host.
Both processes (mgr and lsnr) are run by the same OS user called oracle.
---------- Post updated at 11:12 AM ---------- Previous update was at 11:09 AM ----------
Since this is just a home based VM setup created for testing, I would like to disable all security/filter features in Solaris.
With the Oracle listener running configured for port 2012, can you open an ODBC connection? You might need to tweak tnsnames.ora on the client side to point to the correct port.
If that opens correctly (as a telnet would not handshake properly) then you have proved that this is not a network error (even if it's between to local VMs) and you need to be looking at the Golden Gate server to see if there is a configuration for that to allow certain connections, e.g. does it have an allowed IP address list, allowed users (e.g. does username/uid on client match username/uid on servers and is it allowed) It might depend how Golden Gate works.
Have you contacted the supplier? I can't find any matches after a quick web-search.