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
- Assign a static IP to
wlan0 - Configure
udhcpdas the DHCP server - Configure
hostapdas the AP daemon - Enable IP forwarding and NAT between
wlan0andeth0 - 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: