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.

104 lines
2.1 KiB

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