Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to check the TCP/UDP port of a connection Post 302073816 by tayyabq8 on Thursday 18th of May 2006 12:55:24 AM
Old 05-18-2006
Host refused connection

Hi,

Actually, I want to know the port where the remote party is coming from. Any ways, I checked my syslog after logging in from the same client and found the following:
Code:
May 17 15:53:43 unix1 in.telnetd[10742]: connect from AGB

It means my KCML client, comes thru telnet(TCP port 23), I forwarded this port 23 from my router to UNIX box(for Remot users i.e. comming from the internet), it reaches UNIX because I can see its log in syslog. But client gets "Host refused connection". There is no problem for the connections comming from local subnet or from the subnets for routes are already added. I checked my /etc/inetd.conf file and found following there:
Code:
telnet  stream  tcp     nowait  root    /usr/sbin/in.tcpd       in.telnetd
telnet  stream  tcp     nowait  root    /usr/sbin/in.telnetd    in.telnetd

So this is not the problem either, as well as hosts.allow has the entry to allow telnet comming from unknown host. I tried to telnet UNIX box from the Internet, but no luck. My default gateway is set properly also and system accepts connections from VPN without any problem, so there is no problem for the connections from unknown hosts.

And I don't know also where system logs the record of rejected connections. I'm totally blank here. Any idea.....

FYI, I'm at SCO UNIXWARE 7.1.1.


Regards,
Tayyab

Last edited by tayyabq8; 05-18-2006 at 02:08 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

TCP/UDP Ports

Just starting to work with unix, wondering if there is any good on-line documentation explaining TCP/UDP ports, how to use them, etc... Thanks.... (1 Reply)
Discussion started by: eugene_mayo
1 Replies

2. IP Networking

TCP/UDP Ports

Just wondering if anyone knows of any good on-line documentation on TCP/UDP Ports. Basically i want to know how to check if they are in use, learn how to close them, etc... Thanks... (5 Replies)
Discussion started by: eugene_mayo
5 Replies

3. UNIX for Advanced & Expert Users

3600 tcp/udp, trap-daemon, text relay-answer

3600 tcp/udp, trap-daemon, text relay-answer Does anyone know what this service is responsible for, or how significant it is? Thanks.....James (1 Reply)
Discussion started by: cassj
1 Replies

4. UNIX for Dummies Questions & Answers

How can I check UDP connection to other server?

Hi, My network dep. telles me that they have opened the FW but my application still can not get through to other server. If it was TCP I could simply test it myself with "telnet", but how can I check it when the connection is UDP? Tnx (1 Reply)
Discussion started by: mehrdad68
1 Replies

5. UNIX for Advanced & Expert Users

bind 9 forwarders: use UDP or TCP?

I use forwarders for a subzone, but TCP 53 is blocked, So does forwarders really need TCP? If forwaders use UDP, I can't get following scenario to work: main zone is master, but subzone is forwad. Is it possible? (On name sever itself, resolution of xx.stub.abc.com worked fine.) #sub zone... (2 Replies)
Discussion started by: honglus
2 Replies

6. Infrastructure Monitoring

UDP Port 161

hi guys My linux server have SNMP configure port by default is 161 (UDP) now my monitor team - who are using Nagios - say the server are not being monitor so check netstat -lnu and I see all is OK and snmp service is running fine what else should I check about this port 161? to see if it is... (0 Replies)
Discussion started by: karlochacon
0 Replies

7. AIX

TCP/UDP port range for default AIX NFS?

May I know what is the TCP/UCP port range for any default AIX NFS? Based on rpcinfo -p, I got the following output: program vers proto port service 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100000 4 ... (4 Replies)
Discussion started by: famasutika
4 Replies

8. Programming

TCP connection check

Hi. I am writing client - server application using TCP sockets. I need some very basic functionality, namely: how to check if another "participant" of the connection is still present? I want to handle situations, when client is gone, or server breaks down, etc. (25 Replies)
Discussion started by: Shang
25 Replies

9. Shell Programming and Scripting

How to check UDP port example = 31011?

We have open port UDP port 31011, how to verify if port were working or traffic were receive. (2 Replies)
Discussion started by: avtalan
2 Replies

10. IP Networking

Tcp ip port open but no such process (merged: Release A Port)

i want to kill a tcp connection by killing its pid with netstat -an i got the tcp ip connection on port 5914 but when i type ps -a or ps-e there is not such process running on port 5914 is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies
in.echod(1M)						  System Administration Commands					      in.echod(1M)

NAME
in.echod - UDP or TCP echo protocol service daemon SYNOPSIS
in.echod FMRI svc:/internet/echo:default DESCRIPTION
FMRI stands for Fault Management Resource Identifier. It is used to identify resources managed by the Fault Manager. See fmd(1M) and smf(5). The in.echod service provides the server-side of the echo protocol. This protocol is used for debugging and bandwidth measurement and is available on both TCP and UDP transports, through port 7. The in.echod service is an inetd(1M) smf(5) delegated service. The in.echod detects which transport is requested by examining the socket it is passed by the inetd daemon. TCP-based service Once a connection is established, the in.echod echoes any data received from the client back to the client. The server echoes data until the client program terminates the connection. UDP-based service The in.echod listens for UDP datagrams. When a datagram is received, the server creates a UDP datagram containing the data it received and sends it to the client. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNW | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
inetd(1M), attributes(5), smf(5) RFC 862 SunOS 5.10 23 Aug 2004 in.echod(1M)
All times are GMT -4. The time now is 04:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy