From owner-freebsd-questions@freebsd.org Wed Mar 15 16:18:42 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08229D0DD1B for ; Wed, 15 Mar 2017 16:18:42 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C492564F for ; Wed, 15 Mar 2017 16:18:41 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x233.google.com with SMTP id z13so23620415iof.2 for ; Wed, 15 Mar 2017 09:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-transfer-encoding; bh=G48awRXTCGSdLIkmN+8czXWcbE9WNs3no2jS9SPvdZ4=; b=nog986bt43U1surw0OvDrN8uAO2tO2cDFzgU6eHiOOvRrlhvSIsgK2r6kxk6dgWkzr lTmFwMBMSrsVj3hLmu3IAM3MwswS9QjRZ6bF891+bTLcWMcAcS6IWy3l96aX7fzqFC8A D5OZ7RPhINSURayeYmnEPq0bG3EswRCAcyzvPL6hmioYqEGbnQpRz5cFeyh7IUQKySi+ KoKvp8fnv7l/jsiJCQ+ykmUXR3jinslHDW90HmVf6Kg1OVFwl+Ne0XeFUKPPqlR7f3eN EL/y8Z3CyI+R5gOtZKY+EqUPFMbez1W9wmycWnyJc5opH9wvA6yGBRH6S5CnZgF67iQ3 uW2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=G48awRXTCGSdLIkmN+8czXWcbE9WNs3no2jS9SPvdZ4=; b=SaqnPmZ/h+3WtCpk0y1anq5DVebjzAYxczRGqNnfMJIKxtJMnYGiJ6w55i+lgOFAJZ g7VGJpEgiDOmeSVZT86xOhChPHe3GIe7XTmW4PcCexFGX1uLwNo9GAmjmaO2toLmQ+hS VrSmGB71UMu0Bb+xZaGJdJjEKdVJYwFtak3vBxcOOfEvp3+9VqIaDTbxU34c57IoFjsH kuv/nE8U+qC7jarSx7C72+xjkD+vemhyhm/Joc64GmEGZTn73eGD0nLVCSJwc3KqxAqf Simm9UqoBGlgiN1WkUAiZlOs4TIRqNbK3p1kV4HvFivu/98uO68PZba5995yuI0XeEj2 gW7Q== X-Gm-Message-State: AFeK/H3HdhmKfowSKxx9xwItYjGpCc6na0lGONbKP4Dt9WZuxopllnkwrI1w7QZw7gA8xQ== X-Received: by 10.107.143.3 with SMTP id r3mr5774198iod.187.1489594720975; Wed, 15 Mar 2017 09:18:40 -0700 (PDT) Received: from [10.0.10.3] (cpe-74-141-88-74.neo.res.rr.com. [74.141.88.74]) by smtp.googlemail.com with ESMTPSA id b88sm350806itd.21.2017.03.15.09.18.40 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Mar 2017 09:18:40 -0700 (PDT) Message-ID: <58C96961.9010804@gmail.com> Date: Wed, 15 Mar 2017 12:18:41 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Subject: Re: WIFI as access point References: <58C08444.8060600@gmail.com> <58C17FEB.1020905@FreeBSD.org> In-Reply-To: <58C17FEB.1020905@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 16:18:42 -0000 Dima Panov wrote: > > Ernie Luzar wrote: >> Hello List; >> >> I have this wifi card >> http://www.dlink.com/al/sq/products/dwa-556-xtreme-n-pci-express-desktop-adapter >> >> >> I recovered it from a decommissioned win7 box. On win7 this wifi card >> could only be used to connect to a router access point. >> >> If I add this wifi card to my FreeBSD 11.0 system can it be configured >> to function as an access point? > > This card is fully support by ath driver as "AR5418 Wireless Network > Adapter". > Copmlete examples with various AP setup described in manual page for driver. > > I have followed the handbook "30.3.6 Freebsd Host Access Points" Chapter in setting up this ath0 wifi card that is installed into my gateway box that has a LAN on it. A win7 laptop can see the ssid and connect to it. But it can not gain public internet access. Win7 wifi trouble shooting says no valid ip address and not end point. To me this sounds like a network configuration problem on my Freebsd gateway box. /root >ifconfig wlan0 wlan0: flags=8843 metric 0 mtu 0 ether 00:18:e7:d5:b3:84 inet 10.0.10.100 netmask 0xffffff00 broadcast 10.0.10.255 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid FBSD_AP channel 1 (2412 MHz 11g ht/40+) bssid 00:18:e7:d5:b3:84 regdomain FCC indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 27 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 -dfs groups: wlan /root >cat /etc/hostapd.conf interface=wlan0 debug=2 ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=FBSD_AP wpa=2 wpa_passphrase=test wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP /root >cat /etc/rc.conf Snip gateway_enable="YES" ifconfig_em0="DHCP" # from cable modem ifconfig_vge0="inet 10.0.10.2" # to LAN switch # Wifi in hostap mode wlans_ath0="wlan0" create_args_wlan0="wlanmode hostap" ifconfig_wlan0="inet 10.0.10.100 netmask 255.255.255.0 ssid FBSD_AP mode 11g" hostapd_enable="YES" dhcpd_enable="YES" dhcpd_conf="/usr/local/etc/dhcpd.conf" dhcpd_ifaces="vge0" # ASRock Server Lan Nic dhcpd_flags="-q" This general config has been working for many years, since release 3.0 of Freebsd. The only thing new is the wifi card being used as a gateway hostap. I do not understand what this is doing fconfig_wlan0="inet 10.0.10.100 netmask 255.255.255.0 I can not find any documentation on this as to it's purpose. I am trying to duplucate my cisco wifi router config which has this security mode = wpa2 personal encrytion = tkip or aes network mode = BGN Thanks for any help you can give me