From owner-freebsd-net Fri Dec 27 5:33:14 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FAA137B401 for ; Fri, 27 Dec 2002 05:33:13 -0800 (PST) Received: from epita.fr (hermes.epita.fr [163.5.255.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46E0B43EDC for ; Fri, 27 Dec 2002 05:33:11 -0800 (PST) (envelope-from le-hen_j@epita.fr) Received: from carpediem (carpediem [10.42.42.5]) by epita.fr id gBRDX1H23786 for net@freebsd.org EPITA Paris France Fri, 27 Dec 2002 14:33:01 +0100 (MET) Date: Fri, 27 Dec 2002 14:33:00 +0100 From: jeremie le-hen To: net@freebsd.org Subject: hping strange behaviour Message-ID: <20021227133300.GA7461@carpediem.epita.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I was just trying to send an ICMP address mask request to my provider default gateway with hping from my FreeBSD 4.7-STABLE, but the latter gave me this error message: yoda:tataz# hping -n -I tun0 -V --icmp --dontfrag --icmp-addr 193.252.50.1 using lo0, addr: 127.0.0.1, MTU: 1500 HPING 193.252.50.1 (lo0 193.252.50.1): icmp mode set, 28 headers + 0 data bytes [send_ip] sendto: Can't assign requested address. This seems obious that hping doesn't use the right interface tun0 to send his datagrams. Note that I'm connected to Internet through a DSL connexion, using PPPoE. My firewall rules don't care about outgoing ICMP and let them go on. When I try to use ep0 which is not a kind of virtual interface like tun0 might be considered as, the behaviour is exactly the same. But when I try the exactly same command line on another FreeBSD 4.7-STABLE box from my private network, here is the output: z6po:tataz# hping -n -I ep0 -V --icmp --dontfrag --icmp-addr 193.252.50.1 using ep0, addr: 192.168.0.45, MTU:1500 HPING 193.252.50.1 (ep0 193.252.50.1): icmp mode set, 28 headers + 0 data bytes ^C --- 193.252.50.1 hping statistic --- 3 packets transmitted, 0 packets received, 100% packet loss round-trip min/avg/max = 0.0/0.0/0.0 ms So does anyone have an idea on my problem ? Thanks in advance. Regards, -- Jeremie aka T{ata,t}Z le-hen_j@epita.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message