wireless hints: AP, username, password - does not work

Warren Block wblock at wonkity.com
Wed Aug 3 23:47:35 UTC 2016

On Wed, 3 Aug 2016, Ben Woods wrote:

> On FreeBSD, it is as you said. Assuming you have atheros, put the following
> in your /etc/rc.conf (replacing your_ssid_here with the wifi SSID):
> wlans_ath0="wlan0"
> ifconfig_wlan0="ssid *your_ssid_here* DHCP"
> Run:
> # service netif restart
> Once you are connected and have an IP address, open your browser and
> navigate to any webpage which DOESNT USE HTTPS. I commonly use
> www.distrowatch.com, but any others you know which don't use https will
> work. This is the part that tricks many people, as the captive portal will
> redirect all web traffic to the portal until authenticated, but https
> traffic will detect the server is not who they are supposed to be and fail.
> Once authenticated, you should get a connection. Note that if can be easier
> to connect with a mobile phone to confirm how it should work, and what the
> SSID is etc, and then replicate on your FreeBSD laptop.

This can be done in /etc/wpa_supplicant.conf with just:


Then it is not necessary to change /etc/rc.conf.

More information about the freebsd-questions mailing list