Toggle between client and router mode on network interface (Linux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.7 KiB

6 years ago
  1. #############################
  2. interface=wlan0
  3. #bridge=br0
  4. #############################
  5. # Name of the Wireless Access Point (SSID)
  6. ssid=WAP
  7. #############################
  8. # Driver interface type (hostap/wired/none/nl80211/bsd)
  9. driver=nl80211
  10. # Country code (ISO/IEC 3166-1)
  11. country_code=US
  12. # Limit frequencies to those allowed in the country
  13. #ieee80211d=1
  14. #############################
  15. # 802.11n support
  16. #ieee80211n=1
  17. # 802.11ac support
  18. #ieee80211ac=1
  19. # QoS support
  20. #wmm_enabled=1
  21. #############################
  22. # Operation mode
  23. # a = IEEE 802.11a (5 GHz), g = IEEE 802.11b (2.4 GHz)
  24. hw_mode=g
  25. # Channel number
  26. # Channel 0 means that hostapd tries to find out the best channel to use
  27. # Channel 0 may fail on some configurations
  28. # Usually channel 0 sets the best channel available, but not on all configurations
  29. # If channel 0 causes troubles, change the channel to a fixed one
  30. channel=7
  31. # Maximum number of connected clients (stations) allowed
  32. max_num_sta=5
  33. #############################
  34. # 1 = WPA1, 2 = WPA2
  35. wpa=2
  36. # 1 = WPA, 2 = WEP, 3 = both
  37. auth_algs=1
  38. #############################
  39. # Set of accepted cipher suites
  40. rsn_pairwise=CCMP
  41. # Set of accepted key management algorithms
  42. wpa_key_mgmt=WPA-PSK
  43. #############################
  44. # Alternative A: Hashed password (recommended)
  45. wpa_psk=45f4df5c5afedcacb396d9ac95be210babd26150343da6ae7507364306b843bf
  46. # Generate this with wpa_passphrase
  47. # wpa_passphrase <SSID> <password>
  48. #############################
  49. # Alternative B: Plain text password (not recommended)
  50. #wpa_passphrase=mitmWireBand12
  51. #############################
  52. #ap_isolate=1
  53. ##############################
  54. # hostapd event logger configuration
  55. logger_stdout=-1
  56. logger_stdout_level=2