How to configure an embedded Linux board (Colibri VF61) as a WiFi access point using hostapd, udhcpd, and iptables.

Test Setup

  • Colibri VF61 V1.1A
  • Colibri Evaluation Board V3.1a / Iris V1.1
  • Ambicom WL250N-USB (Ralink RT3070 chipset)

Steps Overview

  1. Assign a static IP to wlan0
  2. Configure udhcpd as the DHCP server
  3. Configure hostapd as the AP daemon
  4. Enable IP forwarding and NAT between wlan0 and eth0
  5. Wire it all up with systemd service files

1. Static IP for wlan0

ifconfig wlan0 192.168.0.1 up

2. udhcpd configuration

/etc/udhcpd.conf: