Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open port question

Status
Not open for further replies.

reinstalled

IS-IT--Management
Feb 18, 2003
178
Hey All,

RH newbie with a port question

Running RH EL5
Have Sybase installed ans listening on port, say 2025
Can connect to that port locally from the server and log in to the db that is there just fine. But when trying from a client pc on the same LAN seg it fails.
I've added the port to iptables and even disabled iptables altogether with the same results.

I can see that port 2025 is LISTENING but still can't connect from the LAN. IT guys there say they are not blocking and I can connect via other ports from the LAN

Anything I am missing here?
 
possible that it's bound to a specific ip/interface rather than listening on all.

netstat -na|grep 2025 = is it 0.0.0.0:2025 or?
 
netstat

tcp 0 0 127.0.0.1:2025 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:60241 127.0.0.1:2025 ESTABLISHED
tcp 0 0 127.0.0.1:2025 127.0.0.1:43310 TIME_WAIT
tcp 0 0 127.0.0.1:2025 127.0.0.1:43309 TIME_WAIT
tcp 0 0 127.0.0.1:2025 127.0.0.1:43308 TIME_WAIT
tcp 0 0 127.0.0.1:43308 127.0.0.1:2025 TIME_WAIT
tcp 0 0 127.0.0.1:2025 127.0.0.1:60241 ESTABLISHED
 
In that case exsnafu's guess was correct, it is only listening for connections on the local host. You'll need to examine the configuration of the Sybase listener to find out how to make it listen on all interfaces, or at least allow you to add other interfaces apart from the local host (127.0.0.1).

Annihilannic.
 
Don't know why I didn't notice this before but it would explain things but it also raises another question....

Here's the hosts file:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 xxx xxx.localdomain localhost
::1 localhost6.localdomain6 localhost6

With the IP being the loop back no wonder. But, I didn't set up the OS just configured afterward, where is the actual IP Address stored then? I am connecting remotely so it obviously knows it's IP. It's not in sysconfig/network.....
 
Your hosts file is standard but what was being put forth by Annihilannic is Sybase has a configuration file somewhere on the file system that tells the listener to bind itself to the loopback address instead of the network address.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top