From owner-freebsd-questions@FreeBSD.ORG Tue Dec 10 22:01:34 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7297C3A6 for ; Tue, 10 Dec 2013 22:01:34 +0000 (UTC) Received: from x.it.okstate.edu (x.it.okstate.edu [139.78.2.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 45C51147D for ; Tue, 10 Dec 2013 22:01:33 +0000 (UTC) Received: from x.it.okstate.edu (localhost [127.0.0.1]) by x.it.okstate.edu (8.14.5/8.14.5) with ESMTP id rBALuZ6a000955 for ; Tue, 10 Dec 2013 15:56:35 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201312102156.rBALuZ6a000955@x.it.okstate.edu> From: Martin McCormick To: freebsd-questions@freebsd.org Subject: Starting the wpa_supplicant Daemon from rc.conf Date: Tue, 10 Dec 2013 15:56:35 -0600 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2013 22:01:34 -0000 We are using 802.1x on our wired network and the wpa_supplicant on this system works like it should to authenticate with the network if manually called as in sudo ./etc/testwpa which is the name I gave the script that calls wpa_supplicant and gives it the configuration file and interface information to authenticate. The only thing that is not yet working is getting wpa_supplicant to authenticate automatically upon reboot or startup. I presently have the following in /etc/rc.conf: #wpa_supplicant wpa_supplicant_enable="YES" wpa_supplicant_program="/usr/sbin/wpa_supplicant" #executable wpa_supplicant_flags="-B -c/etc/wpa_supplicant.conf -D wired -i le0" The test script doesn't daemonize so there is no -B flag. We send: sudo wpa_supplicant -c /etc/wpa_supplicant.conf -D wired -i le0 We get messages saying that the authentication was successful and the port opens. There are no log entries until I ran the sudo command in the test so I don't think that wpa_supplicant is ever run by the command in rc.conf. Thanks for all constructive ideas. Martin McCormick