APF/OPOS as Wi-Fi Access Point

From ArmadeusWiki
Revision as of 11:16, 25 October 2017 by JulienB (Talk | contribs) (Configuration)

Jump to: navigation, search

Page under construction... Construction.png Informations on this page are not guaranteed !!

Installation

  • You will need hostapd (installed by default on APF6):
$ make menuconfig
Target packages  --->
    Networking applications  --->
        [*] hostapd
        [ ]   Enable EAP
        [ ]   Enable WPS

Configuration

  • Bring up your Wi-Fi interface and give it an address (here 192.168.2.1):
# ifconfig wlan0 up 192.168.2.1 netmask 255.255.255.0
  • Create /etc/hostapd/ directory and put it this hostapd.conf configuration file:
# mkdir -p /etc/hostapd/
# cat > /etc/hostapd/hostapd.conf <<EOF
interface=wlan0
ssid=APF6
hw_mode=g
channel=6
#auth_algs=1
wpa=2
wpa_passphrase=YOUHOULESBILOUS
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256
EOF

  • here we used fixed channel (6) (as some drivers can't allow hostapd to find less occupied channel through scanning)
  • security is WPA2-PSK. To have "Open" Access Point uncomment #auth_algs=1 and comment 3 wpa lines
  • Launch hostapd:
# hostapd -B /etc/hostapd/hostapd.conf
  • If the devices connecting to your Access Point require dynamic IP adress allocation, you will need to install a DHCP server on your APF/OPOS too.