Software Access Point

From Hack Sphere Labs Wiki
Revision as of 16:43, 18 November 2012 by Webdawg (talk | contribs) (hostapd)

Jump to: navigation, search

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
#HT capabilities (tuneme?)
ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40]
#require_ht=1
#ieee8021x=1
#eapol_version=2
#eap_message=hello
#eap_message=hello\0networkid=netw,nasid=foo,portid=0,NAIRealms=example.com
#wep_key_len_broadcast=5
#wep_key_len_unicast=5
#wep_rekey_period=300
eapol_key_index_workaround=0
#eap_reauth_period=3600
#use_pae_group_addr=1
eap_server=0
#eap_user_file=/etc/hostapd/hostapd.eap_user
#ca_cert=/etc/hostapd/hostapd.ca.pem
#server_cert=/etc/hostapd/hostapd.server.pem
#private_key=/etc/hostapd/hostapd.server.prv
#private_key_passwd=secret passphrase
#check_crl=1
#dh_file=/etc/hostapd/hostapd.dh.pe
#fragment_size=1400
#eap_sim_db=unix:/tmp/hlr_auc_gw.sock
#eap_fast_a_id=101112131415161718191a1b1c1d1e1f
#eap_fast_a_id_info=test server
#eap_fast_prov=3
#pac_key_lifetime=604800
#pac_key_refresh_time=86400
#eap_sim_aka_result_ind=1
#tnc=1
#iapp_interface=eth0
own_ip_addr=127.0.0.1
#nas_identifier=ap.example.com
#auth_server_addr=127.0.0.1
#auth_server_port=1812
#auth_server_shared_secret=secret
#acct_server_addr=127.0.0.1
#acct_server_port=1813
#acct_server_shared_secret=secret
#auth_server_addr=127.0.0.2
#auth_server_port=1812
#auth_server_shared_secret=secret2
#
#acct_server_addr=127.0.0.2
#acct_server_port=1813
#acct_server_shared_secret=secret2
#radius_retry_primary_interval=600
#radius_acct_interim_interval=600
#dynamic_vlan=0
#vlan_file=/etc/hostapd/hostapd.vlan
#vlan_tagged_interface=eth0
#radius_server_clients=/etc/hostapd/hostapd.radius_clients
#radius_server_auth_port=1812
#radius_server_ipv6=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


    1. ??##
  1. pacman -Sv ifplugd

pacman -Sv bridge-utils pacman -Sv netcfg pacman -Sv hostapd