From owner-freebsd-questions Mon Aug 13 5:53:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from void.xpert.com (xpert.com [199.203.132.1]) by hub.freebsd.org (Postfix) with ESMTP id 4D72C37B407 for ; Mon, 13 Aug 2001 05:53:00 -0700 (PDT) (envelope-from Yonatan@xpert.com) Received: from mailserv.xpert.com ([199.203.132.135]) by void.xpert.com with esmtp (Exim 3.20 #1) id 15WHC2-0000AU-00; Mon, 13 Aug 2001 15:51:42 +0300 Received: by mailserv.xpert.com with Internet Mail Service (5.5.2650.21) id ; Mon, 13 Aug 2001 15:52:26 +0300 Message-ID: From: Yonatan Bokovza To: "'drt@un.bewaff.net'" , freebsd-questions@freebsd.org Subject: RE: FreeBSD Host which can't communicate with itself. Date: Mon, 13 Aug 2001 15:52:20 +0300 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I have 4.2 host which can't sucessfully connect to itself via > TCP. ICMP and UDP works. > 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