From owner-freebsd-questions Thu Jun 17 8:19:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.128.198]) by hub.freebsd.org (Postfix) with ESMTP id 2D3EC14F26 for ; Thu, 17 Jun 1999 08:19:35 -0700 (PDT) (envelope-from brian@keep.lan.Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id QAA49368; Thu, 17 Jun 1999 16:19:27 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id QAA05020; Thu, 17 Jun 1999 16:18:39 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199906171518.QAA05020@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Khetan Gajjar Cc: questions@freebsd.org Subject: Re: tun0 in promiscous mode ? In-reply-to: Your message of "Thu, 17 Jun 1999 01:45:16 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 17 Jun 1999 16:18:39 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi. > > I used tcpdump -i tun0 to set tun0 into promiscuous mode, > but it doesn't appear to have switched this bit off, > and I don't see anything in the ifconfig man pages on how > to set this. I've tried ifconfig tun0 down and then > ifconfig tun0 up, but this doesn't fix it. > > 37=[khetan] /$ ifconfig tun0 > + ifconfig tun0 > tun0: flags=8151 mtu 1500 > inet xxx.xxx.xxx.xxx --> yyy.yyy.yyy.yyy netmask 0xffffff00 > > Does anyone know how to get tun0 to switch the promisc bit off ? The driver should probably turn it off when the device is closed... but bear in mind, promiscuous mode means nothing on a non-broadcast interface. > --- > Khetan Gajjar (!kg1779) * khetan@os.org.za > http://khetan.os.org.za/ * Talk/Finger khetan@khetan.os.org.za > FreeBSD enthusiast * http://www2.za.freebsd.org/ -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message