From owner-freebsd-current@FreeBSD.ORG Tue Jul 29 05:11:07 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86F8B37B40E for ; Tue, 29 Jul 2003 05:11:07 -0700 (PDT) Received: from happygiraffe.net (happygiraffe.net [81.6.215.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AC9043F3F for ; Tue, 29 Jul 2003 05:11:04 -0700 (PDT) (envelope-from dom@happygiraffe.net) Received: by happygiraffe.net (Postfix, from userid 1001) id 755825C7A; Tue, 29 Jul 2003 13:11:03 +0100 (BST) Date: Tue, 29 Jul 2003 13:11:03 +0100 To: Martin Blapp Message-ID: <20030729121103.GA45798@ppe.happygiraffe.net> References: <20030729094308.L41136@cvs.imp.ch> <20030729115106.GA45515@ppe.happygiraffe.net> <20030729140001.J25188@cvs.imp.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030729140001.J25188@cvs.imp.ch> User-Agent: Mutt/1.4.1i From: dom@happygiraffe.net (Dominic Mitchell) cc: current@freebsd.org Subject: Re: STEP 2, fixing dhclient behaviour with multiple interfaces X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2003 12:11:07 -0000 On Tue, Jul 29, 2003 at 02:01:36PM +0200, Martin Blapp wrote: > > > can access dhclient (or dhcpd) on the local machine without authentification. > > > > You can get omshell working without auth over tcp/ip - I managed this > > today when playing. But a unix domain socket would be nicer because the > > dhclient server binds to INADDR_ANY by default. > > Cool. Do you have any pointers for me to try ? Little example etc ? /etc/dhclient.conf contains: omapi port 7911; Then, as root: # dhclient -n -w And in another terminal: % netstat -an | grep -w 7911 tcp4 0 0 *.7911 *.* LISTEN % omshell > connect obj: > new control obj: control > open obj: control state = 00:00:00:00 > set state = 2 obj: control state = 2 > update obj: control state = 2 At this point, go back to the other window and notice that dhclient hs terminated. I haven't played much further than this yet, though. The only other thing I noticed is that getting a list of what objects are present doesn't seem to be supported. Well, I couldn't see how to do it... -Dom