Eccentric Developments


Raspberry Pi Access Point on Arch Linux

These are the files and file changes needed to configure a Raspberry Pi as an access point.

/usr/lib/systemd/system/wireless.service

[Unit]
Description=Bring up and configure ip for wlan0
After=network.target
[Service]
Restart=on-failure
ExecStart=/usr/bin/ifconfig wlan0 up 10.0.0.1 netmask 255.255.255.0
[Install]
WantedBy=multi-user.target

/usr/lib/systemd/system/dnsmasq.service

[Unit]
...
After=hostapd.service
...

/usr/lib/systemd/system/hostapd.service

...
After=wireless.service
...

/etc/hosts

...
10.0.0.1    home.local
...

/etc/dnsmasq.conf

...
interface=wlan0
dhcp-range=10.0.0.5,10.0.0.10,12h

/etc/hostapd/hostapd.conf

interface=wlan0
driver=nl80211
ssid=RPiAP
hw_mode=g
channel=7
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=PASSWORD
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

/etc/resolv.conf

nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4

/etc/dhcpcd.conf

...
nohook resolv.conf
Enrique CR - 2015-09-04