License

Copyright (C) 2008-2017 Oliver Bohlen.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

A copy of the license is included in the section entitled "GNU Free Documentation License".

Introduction

This documentation comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

Howto: WLAN Access Point for Gentoo Linux

This is a small howto for setting up yout own WLAN-Accesspoint. For this you need a WLAN-Card which can be put into "managed mode".
You have to link net.wlan0 against net.lo fpor getting it into a runlevel

ln -s /etc/init.d/net.lo /etc/init.d/net.wlan0

If you want to use this solution you need the following howto(s) finished:

Required software

The required software has to be installed with the following command(s):
emerge net-wireless/hostapd
emerge net-wireless/iw

Changes in /etc/conf.d/net

File permissions:
Owner: root
Group: root
Permissions: -rw-r--r--

Click here for a download of the complete file: /etc/conf.d/net

Changed on 13.10.15
Issued by olli
Beginning line 21

Configuration of the Interface

modules_wlan0="!iwconfig !wpa_supplicant"
config_wlan0="XXX.XXX.XXX.XXX/16"
rc_net_wlan0_provide="!net"

Changes in /etc/hostapd/hostapd.conf

File permissions:
Owner: root
Group: root
Permissions: -rw-------

Click here for a download of the complete file: /etc/hostapd/hostapd.conf

Changed on 13.10.15
Issued by olli
Beginning line 1998

Config for a WLAN Access Point with hostapd

interface=wlan0
# g simply means 2.5GHz a is for 5GHz
hw_mode=g
# the channel to use, 0 means the AP will search for the channel with the least interferences
channel=0
# limit the frequencies used to those allowed in the country
ieee80211d=1
country_code=DE
# 802.11n support
ieee80211n=1
# 802.11ac support
ieee80211ac=1
# QOS
wmm_enabled=1
# WLAN
ssid=WLAN
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=secret
# MAC Filter
macaddr_acl=1
accept_mac_file=/etc/hostapd/hostapd.macaccept
# Logging
logger_syslog_level=1

Changes in /etc/hostapd/hostapd.macaccept

File permissions:
Owner: root
Group: root
Permissions: -rw-------

Click here for a download of the complete file: /etc/hostapd/hostapd.macaccept

Changed on 13.10.15
Issued by olli
Beginning line 1

List of allowed Client-MACs

# gabosh-droid
XX:XX:XX:XX:XX:XX
# paddy
XX:XX:XX:XX:XX:XX
# luettje
XX:XX:XX:XX:XX:XX
# groot
XX:XX:XX:XX:XX:XX
# Hendriks Smartphone
XX:XX:XX:XX:XX:XX
# small-gabosh
XX:XX:XX:XX:XX:XX
# Eltern Smartphone
XX:XX:XX:XX:XX:XX
XX:XX:XX:XX:XX:XX
# Pias Notebook
XX:XX:XX:XX:XX:XX
# Martinas kleines Notebook/Windows-Tablet
XX:XX:XX:XX:XX:XX
# Rebeccas Smartphone
# alt
XX:XX:XX:XX:XX:XX
# htc
XX:XX:XX:XX:XX:XX
# Rebeccas Notebook (Medion)
XX:XX:XX:XX:XX:XX
# think-gabosh
XX:XX:XX:XX:XX:XX
# Rebecca Raspberry Edimax USB WLAN Adapter
XX:XX:XX:XX:XX:XX
# Katrins (Flo) Smartphone
XX:XX:XX:XX:XX:XX
# marie.example.com (Rebeccas kleines, altes medion Notebook)
XX:XX:XX:XX:XX:XX
# TEST/BACKUP HTCs
XX:XX:XX:XX:XX:XX
XX:XX:XX:XX:XX:XX
# Flos Smartphone
XX:XX:XX:XX:XX:XX
# Ingo iPhone
XX:XX:XX:XX:XX:XX
# Philips Handy
XX:XX:XX:XX:XX:XX

Setting up services

For starting the new service after system reboot you should add it to a runlevel with the following command(s):

rc-update add hostapd default
rc-update add net.wlan0 default

Please send a feedback to: doc<at>gabosh.net

Howto listing
File Index

Here you can find the official Gentoo Linux Forums where you can find a lot of answers.

Here a link to the official Gentoo Linux Homepage.

Edit Howto

About / Impressum

Click here for About / Impressum

Wishlist

If you want to support my work you can find my Amazon whishlist here