From owner-freebsd-questions@FreeBSD.ORG Wed Nov 24 15:36:43 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0826816A4E5 for ; Wed, 24 Nov 2004 15:36:43 +0000 (GMT) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42FD143D39 for ; Wed, 24 Nov 2004 15:36:41 +0000 (GMT) (envelope-from nvass@teledome.gr) Received: from [192.168.1.71] ([192.168.1.71])iAOFTA3R030662 for ; Wed, 24 Nov 2004 17:29:10 +0200 From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Wed, 24 Nov 2004 17:39:32 +0200 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 7bit Message-Id: <200411241739.32966.nvass@teledome.gr> Subject: netgraph problem? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2004 15:36:43 -0000 Hello all, I am using netgraph-based pptp and I am having this problem. It seems that there is a problem binding to INADDR_ANY or doing a single connect(2). My source address is given and everything works correctly: >>>>root:zuper:0:~# telnet -s X.X.137.252 X.X.137.252 22 >>>>Trying X.X.137.252... >>>>Connected to ppp-dsl-252.... >>>>Escape character is ^]. >>>>SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419 >>>> >>>>Protocol mismatch. >>>>Connection closed by foreign host. My source address is not given and that's what happens: >>>>root:zuper:0:~# telnet X.X.137.252 22 >>>>Trying X.X.137.252... >>>>telnet: connect to address X.X.137.252: Network is unreachable >>>>telnet: Unable to connect to remote host The problem appears only to the ng interface. The problem appears with other netgraph nodes(/usr/share/example/udp.tunnel for example). It is working correctly on 4.10-RELEASE. Any clues from any experienced netgraph user or hacker? Thanks in advance, Nikos Other info: root:zuper:0:~# uname -a FreeBSD zuper.duper 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Wed Nov 24 13:55:12 EET 2004 root@zuper.duper:/usr/src/sys/i386/compile/ZUPER i386 Interfaces root:zuper:0:~# ifconfig lnc0: flags=108843 mtu 1500 inet 192.168.1.149 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:0c:29:1d:4b:c6 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 ng0: flags=88d1 mtu 1500 inet X.X.137.252 --> X.X.128.70 netmask 0xffffffff Netgraph configuration root:zuper:0:~# kldstat Id Refs Address Size Name 1 9 0xc0400000 311594 kernel 2 1 0xc1350000 5000 ng_socket.ko 3 7 0xc135d000 12000 netgraph.ko 4 1 0xc136f000 4000 ng_iface.ko 5 1 0xc1373000 8000 ng_ppp.ko 6 1 0xc137b000 4000 ng_bpf.ko 7 1 0xc137f000 5000 ng_vjc.ko 8 1 0xc1385000 5000 ng_pptpgre.ko 9 1 0xc1394000 5000 ng_ksocket.ko