Difference between revisions of "Software Access Point"
From Hack Sphere Labs Wiki
(→hostapd) |
|||
Line 3: | Line 3: | ||
=hostapd= | =hostapd= | ||
+ | Concern rests with the file (Most of these are default): | ||
+ | /etc/hostapd/hostapd.conf | ||
+ | interface=wlan0 | ||
+ | bridge=br0 | ||
+ | #note: madwifi is ath chipsets | ||
+ | driver=nl80211 | ||
+ | #logsettings | ||
+ | logger_syslog=-1 | ||
+ | logger_syslog_level=2 | ||
+ | logger_stdout=-1 | ||
+ | logger_stdout_level=2 | ||
+ | dump_file=/tmp/hostapd.dump | ||
+ | ctrl_interface=/var/run/hostapd | ||
+ | ctrl_interface_group=0 | ||
+ | ssid=BridgeTest | ||
+ | country_code=US | ||
+ | #ieee80211d=1 | ||
+ | hw_mode=g | ||
+ | channel=1 | ||
+ | #Note: 802.11n builds on the settings above, and adds additional functionality and configuration will come later. | ||
+ | beacon_int=100 | ||
+ | dtim_period=2 | ||
+ | max_num_sta=255 | ||
+ | rts_threshold=2347 | ||
+ | fragm_threshold=2346 | ||
+ | #no rates enabled = support all | ||
+ | #supported_rates=10 20 55 110 60 90 120 180 240 360 480 540 | ||
+ | #no basic rate set = sane default | ||
+ | #basic_rates=10 20 | ||
+ | #basic_rates=10 20 55 110 | ||
+ | #basic_rates=60 120 240 | ||
+ | #Below Applies to 802.11b only | ||
+ | #preamble=1 | ||
+ | macaddr_acl=0 | ||
+ | #accept_mac_file=/etc/hostapd/hostapd.accept | ||
+ | #deny_mac_file=/etc/hostapd/hostapd.deny | ||
+ | # Both open and shared auth | ||
+ | auth_algs=3 | ||
+ | ignore_broadcast_ssid=0 | ||
+ | # Low priority / AC_BK = background | ||
+ | #tx_queue_data3_aifs=7 | ||
+ | #tx_queue_data3_cwmin=15 | ||
+ | #tx_queue_data3_cwmax=1023 | ||
+ | #tx_queue_data3_burst=0 | ||
+ | # Note: for IEEE 802.11b mode: cWmin=31 cWmax=1023 burst=0 | ||
+ | # | ||
+ | # Normal priority / AC_BE = best effort | ||
+ | #tx_queue_data2_aifs=3 | ||
+ | #tx_queue_data2_cwmin=15 | ||
+ | #tx_queue_data2_cwmax=63 | ||
+ | #tx_queue_data2_burst=0 | ||
+ | # Note: for IEEE 802.11b mode: cWmin=31 cWmax=127 burst=0 | ||
+ | # | ||
+ | # High priority / AC_VI = video | ||
+ | #tx_queue_data1_aifs=1 | ||
+ | #tx_queue_data1_cwmin=7 | ||
+ | #tx_queue_data1_cwmax=15 | ||
+ | #tx_queue_data1_burst=3.0 | ||
+ | # Note: for IEEE 802.11b mode: cWmin=15 cWmax=31 burst=6.0 | ||
+ | # | ||
+ | # Highest priority / AC_VO = voice | ||
+ | #tx_queue_data0_aifs=1 | ||
+ | #tx_queue_data0_cwmin=3 | ||
+ | #tx_queue_data0_cwmax=7 | ||
+ | #tx_queue_data0_burst=1.5 | ||
+ | # Note: for IEEE 802.11b mode: cWmin=7 cWmax=15 burst=3.3 | ||
+ | #wmm is needed for wireless n btw | ||
+ | wmm_enabled=1 | ||
+ | # | ||
+ | # WMM-PS Unscheduled Automatic Power Save Delivery [U-APSD] | ||
+ | # Enable this flag if U-APSD supported outside hostapd (eg., Firmware/driver) | ||
+ | #uapsd_advertisement_enabled=1 | ||
+ | # | ||
+ | # Low priority / AC_BK = background | ||
+ | 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 | ||
+ | # Note: for IEEE 802.11b mode: cWmin=5 cWmax=10 | ||
+ | # | ||
+ | # Normal priority / AC_BE = best effort | ||
+ | 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 | ||
+ | # Note: for IEEE 802.11b mode: cWmin=5 cWmax=7 | ||
+ | # | ||
+ | # High priority / AC_VI = video | ||
+ | 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 | ||
+ | # Note: for IEEE 802.11b mode: cWmin=4 cWmax=5 txop_limit=188 | ||
+ | # | ||
+ | # Highest priority / AC_VO = voice | ||
+ | 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 | ||
+ | # Note: for IEEE 802.11b mode: cWmin=3 cWmax=4 burst=102 | ||
+ | #wep_default_key=0 | ||
+ | #wep_key0=123456789a | ||
+ | #wep_key1="vwxyz" | ||
+ | #wep_key2=0102030405060708090a0b0c0d | ||
+ | #wep_key3=".2.4.6.8.0.23" | ||
+ | #ap_max_inactivity=300 | ||
+ | #disassoc_low_ack=1 | ||
+ | #max_listen_interval=100 | ||
+ | #wds_sta=1 | ||
+ | #wds_bridge=wds-br0 | ||
+ | #ap_isolate=1 | ||
+ | ieee80211n=1 | ||
=Notes= | =Notes= |
Revision as of 16:29, 18 November 2012
Just your basic bridge and hostapd setup. I am doing this with a raspberry pie and a alpha AWUSO36NH. One of the biggest issues is understanding the new systemctl methods of archlinux.
hostapd
Concern rests with the file (Most of these are default):
/etc/hostapd/hostapd.conf
interface=wlan0 bridge=br0 #note: madwifi is ath chipsets driver=nl80211 #logsettings logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 dump_file=/tmp/hostapd.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=0 ssid=BridgeTest country_code=US #ieee80211d=1 hw_mode=g channel=1 #Note: 802.11n builds on the settings above, and adds additional functionality and configuration will come later. beacon_int=100 dtim_period=2 max_num_sta=255 rts_threshold=2347 fragm_threshold=2346 #no rates enabled = support all #supported_rates=10 20 55 110 60 90 120 180 240 360 480 540 #no basic rate set = sane default #basic_rates=10 20 #basic_rates=10 20 55 110 #basic_rates=60 120 240 #Below Applies to 802.11b only #preamble=1 macaddr_acl=0 #accept_mac_file=/etc/hostapd/hostapd.accept #deny_mac_file=/etc/hostapd/hostapd.deny # Both open and shared auth auth_algs=3 ignore_broadcast_ssid=0 # Low priority / AC_BK = background #tx_queue_data3_aifs=7 #tx_queue_data3_cwmin=15 #tx_queue_data3_cwmax=1023 #tx_queue_data3_burst=0 # Note: for IEEE 802.11b mode: cWmin=31 cWmax=1023 burst=0 # # Normal priority / AC_BE = best effort #tx_queue_data2_aifs=3 #tx_queue_data2_cwmin=15 #tx_queue_data2_cwmax=63 #tx_queue_data2_burst=0 # Note: for IEEE 802.11b mode: cWmin=31 cWmax=127 burst=0 # # High priority / AC_VI = video #tx_queue_data1_aifs=1 #tx_queue_data1_cwmin=7 #tx_queue_data1_cwmax=15 #tx_queue_data1_burst=3.0 # Note: for IEEE 802.11b mode: cWmin=15 cWmax=31 burst=6.0 # # Highest priority / AC_VO = voice #tx_queue_data0_aifs=1 #tx_queue_data0_cwmin=3 #tx_queue_data0_cwmax=7 #tx_queue_data0_burst=1.5 # Note: for IEEE 802.11b mode: cWmin=7 cWmax=15 burst=3.3 #wmm is needed for wireless n btw wmm_enabled=1 # # WMM-PS Unscheduled Automatic Power Save Delivery [U-APSD] # Enable this flag if U-APSD supported outside hostapd (eg., Firmware/driver) #uapsd_advertisement_enabled=1 # # Low priority / AC_BK = background 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 # Note: for IEEE 802.11b mode: cWmin=5 cWmax=10 # # Normal priority / AC_BE = best effort 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 # Note: for IEEE 802.11b mode: cWmin=5 cWmax=7 # # High priority / AC_VI = video 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 # Note: for IEEE 802.11b mode: cWmin=4 cWmax=5 txop_limit=188 # # Highest priority / AC_VO = voice 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 # Note: for IEEE 802.11b mode: cWmin=3 cWmax=4 burst=102 #wep_default_key=0 #wep_key0=123456789a #wep_key1="vwxyz" #wep_key2=0102030405060708090a0b0c0d #wep_key3=".2.4.6.8.0.23" #ap_max_inactivity=300 #disassoc_low_ack=1 #max_listen_interval=100 #wds_sta=1 #wds_bridge=wds-br0 #ap_isolate=1 ieee80211n=1
Notes
systemctl and the /etc/conf.d dir? I edited dhcpcd and added -t 30
Notes:
https://bbs.archlinux.org/viewtopic.php?pid=1191806
- ??##
- pacman -Sv ifplugd
pacman -Sv bridge-utils pacman -Sv netcfg pacman -Sv hostapd