WLAN Access Point (TP-Link TL-WN822N) mit FreeBSD
Aus Port23Wiki
(Unterschied zwischen Versionen)
Robin (Diskussion | Beiträge) |
Robin (Diskussion | Beiträge) |
||
Zeile 7: | Zeile 7: | ||
root@fbsd-ap:~ # usbconfig |
root@fbsd-ap:~ # usbconfig |
||
ugen2.2: <Realtek 802.11n NIC> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) |
ugen2.2: <Realtek 802.11n NIC> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) |
||
+ | |||
+ | Der HOSTAP Modus wird unterstützt: |
||
root@fbsd-ap:~ # ifconfig wlan0 list caps |
root@fbsd-ap:~ # ifconfig wlan0 list caps |
||
Zeile 24: | Zeile 26: | ||
cloned_interfaces="br0" |
cloned_interfaces="br0" |
||
ifconfig_br0="addm re0 addm wlan0 up" |
ifconfig_br0="addm re0 addm wlan0 up" |
||
+ | |||
+ | Installation des Pakets hostapd mit "pkg install hostapd" |
||
+ | |||
+ | Auszug aus der Datei /etc/hostapd.conf |
||
+ | |||
+ | interface=wlan0 |
||
+ | |||
+ | driver=bsd |
||
+ | logger_syslog=-1 |
||
+ | logger_syslog_level=2 |
||
+ | logger_stdout=-1 |
||
+ | logger_stdout_level=2 |
||
+ | |||
+ | ctrl_interface=/var/run/hostapd |
||
+ | ctrl_interface_group=0 |
||
+ | |||
+ | ssid=fbsd-ap |
||
+ | |||
+ | country_code=DE |
||
+ | ieee80211d=1 |
||
+ | |||
+ | hw_mode=g |
||
+ | channel=1 |
||
+ | |||
+ | beacon_int=100 |
||
+ | dtim_period=2 |
||
+ | max_num_sta=255 |
||
+ | rts_threshold=-1 |
||
+ | fragm_threshold=-1 |
||
+ | macaddr_acl=0 |
||
+ | ignore_broadcast_ssid=0 |
||
+ | |||
+ | wmm_enabled=1 |
||
+ | wmm_ac_bk_cwmin=4 |
||
+ | wmm_ac_bk_cwmax=10 |
||
+ | wmm_ac_bk_aifs=7 |
||
+ | wmm_ac_bk_txop_limit=0 |
||
+ | wmm_ac_bk_acm=0 |
||
+ | wmm_ac_be_aifs=3 |
||
+ | wmm_ac_be_cwmin=4 |
||
+ | wmm_ac_be_cwmax=10 |
||
+ | wmm_ac_be_txop_limit=0 |
||
+ | wmm_ac_be_acm=0 |
||
+ | wmm_ac_vi_aifs=2 |
||
+ | wmm_ac_vi_cwmin=3 |
||
+ | wmm_ac_vi_cwmax=4 |
||
+ | wmm_ac_vi_txop_limit=94 |
||
+ | wmm_ac_vi_acm=0 |
||
+ | wmm_ac_vo_aifs=2 |
||
+ | wmm_ac_vo_cwmin=2 |
||
+ | wmm_ac_vo_cwmax=3 |
||
+ | wmm_ac_vo_txop_limit=47 |
||
+ | wmm_ac_vo_acm=0 |
||
+ | |||
+ | eapol_key_index_workaround=0 |
||
+ | eap_server=0 |
Version vom 15. November 2023, 13:17 Uhr
Konfiguration von FreeBSD als WLAN Access Point
Wichtig: Ein von FreeBSD unterstützter WLAN Adapter (auch als Host AP). In diesem Fall ein TP-Link TL-WN822N V4, dieser hat einen Realtek RTL8192EU WLAN-Controller.
root@fbsd-ap:~ # usbconfig ugen2.2: <Realtek 802.11n NIC> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
Der HOSTAP Modus wird unterstützt:
root@fbsd-ap:~ # ifconfig wlan0 list caps drivercaps=591c541<STA,FF,IBSS,HOSTAP,SHSLOT,SHPREAMBLE,MONITOR,WPA1,WPA2,WME> cryptocaps=b<WEP,TKIP,AES_CCM> htcaps=7002c<SHORTGI20>
Auszug aus /etc/rc.conf fuer WLAN:
# WLAN if_rtwn_usb_load="YES" wlans_rtwn0="wlan0" create_args_wlan0="wlanmode hostap" hostapd_enable="YES" ifconfig_wlan0="ssid freebsd-ap country DE mode 11ng" # Bridge cloned_interfaces="br0" ifconfig_br0="addm re0 addm wlan0 up"
Installation des Pakets hostapd mit "pkg install hostapd"
Auszug aus der Datei /etc/hostapd.conf
interface=wlan0
driver=bsd logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2
ctrl_interface=/var/run/hostapd ctrl_interface_group=0
ssid=fbsd-ap
country_code=DE ieee80211d=1 hw_mode=g channel=1 beacon_int=100 dtim_period=2 max_num_sta=255 rts_threshold=-1 fragm_threshold=-1 macaddr_acl=0 ignore_broadcast_ssid=0
wmm_enabled=1 wmm_ac_bk_cwmin=4 wmm_ac_bk_cwmax=10 wmm_ac_bk_aifs=7 wmm_ac_bk_txop_limit=0 wmm_ac_bk_acm=0 wmm_ac_be_aifs=3 wmm_ac_be_cwmin=4 wmm_ac_be_cwmax=10 wmm_ac_be_txop_limit=0 wmm_ac_be_acm=0 wmm_ac_vi_aifs=2 wmm_ac_vi_cwmin=3 wmm_ac_vi_cwmax=4 wmm_ac_vi_txop_limit=94 wmm_ac_vi_acm=0 wmm_ac_vo_aifs=2 wmm_ac_vo_cwmin=2 wmm_ac_vo_cwmax=3 wmm_ac_vo_txop_limit=47 wmm_ac_vo_acm=0 eapol_key_index_workaround=0 eap_server=0