Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2001 15:52:20 +0300
From:      Yonatan Bokovza <Yonatan@xpert.com>
To:        "'drt@un.bewaff.net'" <drt@un.bewaff.net>, freebsd-questions@freebsd.org
Subject:   RE: FreeBSD Host which can't communicate with itself.
Message-ID:  <EB513E68D3F5D41191CA00025558810150D602@mailserv.xpert.com>

next in thread | raw e-mail | index | archive | help
> I have 4.2 host which can't sucessfully connect to itself via
> TCP. ICMP and UDP works.
<snip> 

> drt@c0re:~> nc -l -p 12345 localhost
> [waits forever, or at least several dozend minutes]

I don't think you need to specify "localhost" at the end.
 
> [other console]
> drt@c0re:~/rt-2-0-4> sudo /usr/local/sbin/lsof -i -n |grep 1234
> nc        55873     drt    3u  IPv4 0xca2dbb60      0t0    
> TCP *:12345 (LISTEN)
> nc        55888    root    3u  IPv4 0xca2e20c0      0t0    
> TCP 127.0.0.1:3158->127.0.0.1:1234 (SYN_SENT)

Two things:
1. You can use sockstat for that, you don't need lsof.
2. You sent SYN packet to 1234/tcp and wait for
it on 12345/tcp. Ofcourse it won't work.
 
> ktrace of the connecting nc shows:
> 55888 nc       CALL  connect(0x3,0x807c080,0x10)
> 55888 nc       RET   connect -1 errno 60 Operation timed out

That might be related to your firewall dropping the packet.
Try to compile the kernel with out it and see if it's getting
better, or that you'r getting log_in_vain messages.
 
when i use:
nc -l -p 12345
and
nc localhost 12345
everything work fine...

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EB513E68D3F5D41191CA00025558810150D602>