|
|
In essence, each SSID needs a BSSID. In a standard single-SSID configuration, the BSSID of your wireless card is the same hex value as the burned-in MAC address of the card. Every SSID requires its own BSSID, so hostapd needs to be told how these should be generated.
|
|
|
|
|
|
Check compability of used wireless card:
|
|
|
|
|
|
```bash
|
|
|
$ iw list
|
|
|
.
|
|
|
.
|
|
|
.
|
|
|
valid interface combinations:
|
|
|
* #{ AP } <= 8, ...
|
|
|
```
|
|
|
|
|
|
-> This card seems to support 8 SSID
|
|
|
|
|
|
The MAC-address of the Wireless NIC has to be changed. It has to end with '0':
|
|
|
|
|
|
```
|
|
|
09:ab:cd:ef:12:34 -> 02:ab:cd:ef:12:30
|
|
|
^- means locally administered
|
|
|
```
|
|
|
|
|
|
Hostapd will now assign BSSIDs of 02:ab:cd:ef:12:30, 02:ab:cd:ef:12:31, 02:ab:cd:ef:12:32, â¦
|
|
|
|
|
|
Now, additional SSIDs can be configured like so in `/etc/hostapd/hostapd.conf`:
|
|
|
|
|
|
```
|
|
|
# Change wlan0 to your wireless device
|
|
|
interface=wlan0
|
|
|
# Tell hostapd what your new MAC address is
|
|
|
bssid=02:ab:cd:ef:12:30
|
|
|
driver=nl80211
|
|
|
ssid=my-secured-ssid
|
|
|
channel=1
|
|
|
wpa=1
|
|
|
wpa_passphrase=thisismyreallylongwpapassphraseandiliketurtles
|
|
|
wpa_key_mgmt=WPA-PSK
|
|
|
rsn_pairwise=CCMP
|
|
|
|
|
|
bss=wlan0_0
|
|
|
ssid=guest
|
|
|
wpa=1
|
|
|
wpa_passphrase=crackthislongwpapassphraseifyoucanwhichidoubt
|
|
|
wpa_key_mgmt=WPA-PSK
|
|
|
rsn_pairwise=CCMP
|
|
|
```
|
|
|
|
|
|
Now a new interface wlan0_0 exists (after hostapd is restarted). This can be configured normally. |
|
|
\ No newline at end of file |