This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linuxmce_ap [2016/01/23 19:13] – [Headline] admin | linuxmce_ap [2016/07/22 20:24] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== LinuxMCE WLAN Access Point ====== | ====== LinuxMCE WLAN Access Point ====== | ||
| - | ===== Run hostap | + | ===== Install software |
| - | + | ||
| - | sudo hostapd / | + | |
| + | sudo apt-get install bridge-utils hostapd | ||
| ===== Configs ===== | ===== Configs ===== | ||
| Line 33: | Line 31: | ||
| # --- Internal NIC --- | # --- Internal NIC --- | ||
| - | iface eth0 inet static | + | iface eth0 inet manual |
| - | address 192.168.80.1 | + | |
| - | netmask 255.255.255.0 | + | |
| - | pre-up sysctl -q -e -w net.ipv6.conf.eth0.disable_ipv6=1 | + | |
| - | # DNS Settings for Internal Net | + | |
| - | dns-nameservers 192.168.80.1 | + | |
| - | dns-search LinuxMCE | + | |
| - | # --- Wlan0 --- | + | iface wlan0 inet manual |
| - | iface wlan0 inet static | + | |
| - | address 192.168.81.1 | + | |
| - | netmask 255.255.255.0 | + | |
| - | pre-up sysctl -q -e -w net.ipv6.conf.eth0.disable_ipv6=1 | + | |
| - | dns-nameservers 192.168.81.1 | + | |
| - | #iface br0 inet static | + | iface br0 inet static |
| - | # bridge_ports eth0 wlan0 | + | post-up / |
| - | # address 192.168.80.1 | + | |
| - | # netmask 255.255.255.0 | + | bridge_ports eth0 wlan0 |
| - | # # DNS Settings for Internal Net | + | |
| - | # dns-nameservers 192.168.80.1 | + | |
| - | # dns-search LinuxMCE | + | # DNS Settings for Internal Net |
| + | | ||
| + | | ||
| ##### | ##### | ||
| Line 137: | Line 126: | ||
| } | } | ||
| - | |||
| - | # option routers 192.168.81.1; | ||
| - | # option domain-name-servers 192.168.81.1; | ||
| - | |||
| - | #subnet 192.168.81.0 netmask 255.255.255.0 { | ||
| - | # next-server 192.168.80.1; | ||
| - | # filename "/ | ||
| - | # option pxelinux.reboottime = 30; | ||
| - | # option routers 192.168.81.1; | ||
| - | # option domain-name-servers 192.168.81.1; | ||
| - | # | ||
| - | ## | ||
| - | # max-lease-time 604800; | ||
| - | # pool { | ||
| - | # allow unknown-clients; | ||
| - | # range 192.168.81.129 192.168.81.150; | ||
| - | # range 192.168.81.152 192.168.81.199; | ||
| - | # } | ||
| - | # | ||
| - | # zone | ||
| - | # primary localhost; | ||
| - | # key " | ||
| - | # } | ||
| - | # zone LinuxMCE. { | ||
| - | # primary localhost; | ||
| - | # key " | ||
| - | # } | ||
| - | # | ||
| - | #} | ||
| - | |||
| # PXE booting machines | # PXE booting machines | ||
| Line 201: | Line 160: | ||
| <code config isc-dhcp-server> | <code config isc-dhcp-server> | ||
| - | INTERFACES=" | + | INTERFACES=" |
| </ | </ | ||
| Line 212: | 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 222: | Line 184: | ||
| rsn_pairwise=CCMP | rsn_pairwise=CCMP | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ==== / | ||
| + | |||
| + | <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 (IGNORE) ====== | ||
| + | |||
| + | old mac address: | ||
| + | | ||
| + | 10: | ||
| + | | ||
| + | change it to **02**: | ||
| + | |||
| + | ifconfig wlan0 down | ||
| + | ifconfig wlan0 hw ether 02: | ||
| + | ifconfig wlan0 up | ||
| + | |||
| + | |||