This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linuxmce_ap [2016/01/23 20:39] – [/etc/hostapd/hostapd.conf] admin | linuxmce_ap [2016/07/22 20:24] (current) – admin | ||
---|---|---|---|
Line 4: | Line 4: | ||
sudo apt-get install bridge-utils hostapd | sudo apt-get install bridge-utils hostapd | ||
- | ===== Run hostap ===== | ||
- | |||
- | sudo hostapd / | ||
- | |||
- | |||
- | |||
- | ===== Change firewall ===== | ||
- | |||
- | pluto main -> firewall -> IntIF -> eth0 to br0 | ||
===== Configs ===== | ===== Configs ===== | ||
Line 45: | Line 36: | ||
iface br0 inet static | iface br0 inet static | ||
+ | | ||
+ | | ||
| | ||
| | ||
Line 178: | Line 171: | ||
ssid=test | ssid=test | ||
hw_mode=g | hw_mode=g | ||
- | channel=1 | + | channel=7 |
+ | ieee80211n=1 | ||
+ | wmm_enabled=1 | ||
+ | ht_capab=[SHORT-GI-40] | ||
macaddr_acl=0 | macaddr_acl=0 | ||
auth_algs=1 | auth_algs=1 | ||
Line 189: | Line 185: | ||
</ | </ | ||
- | ===== Guest Network ===== | + | |
+ | ==== / | ||
+ | |||
+ | <code config hostapd> | ||
+ | # Defaults for hostapd initscript | ||
+ | # | ||
+ | # See / | ||
+ | # methods of managing hostapd. | ||
+ | # | ||
+ | # Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration | ||
+ | # file and hostapd will be started during system boot. An example configuration | ||
+ | # file can be found at / | ||
+ | # | ||
+ | # | ||
+ | DAEMON_CONF="/ | ||
+ | |||
+ | # Additional daemon options to be appended to hostapd command:- | ||
+ | # -d show more debug messages (-dd for even more) | ||
+ | # -K | ||
+ | # -t | ||
+ | # | ||
+ | # Note that -B (daemon mode) and -P (pidfile) options are automatically | ||
+ | # configured by the init.d script and must not be added to DAEMON_OPTS. | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | ===== Change firewall ===== | ||
+ | |||
+ | pluto main -> firewall -> IntIF -> eth0 to br0 | ||
+ | |||
+ | ===== Run hostap ===== | ||
+ | |||
+ | sudo hostapd / | ||
+ | |||
+ | ====== Guest Network | ||
+ | |||
+ | old mac address: | ||
+ | |||
+ | 10: | ||
+ | |||
+ | change it to **02**: | ||
+ | |||
+ | ifconfig wlan0 down | ||
+ | ifconfig wlan0 hw ether 02: | ||
+ | ifconfig wlan0 up | ||