wiki:OpenRCConfig
Last modified 8 months ago

Configuring OpenRC

Please contribute how you solve common configuration issues with OpenRC.

Bridged wireless AP using hostapd

The configuration for this is relatively simple but still less than obvious. You must allow hostapd to put the interface into master mode rather than trying to do this yourself. hostapd must also be started before you attempt to bridge the interface. The following outlines the important parts.

/etc/conf.d/net

bridge_br0="eth1"
rc_need_br0="net.eth1"
config_br0="192.168.1.200/24"
modules_wlan0="!iwconfig !wpa_supplicant"
config_wlan0="null"
rc_need_wlan0="hostapd"
bridge_add_wlan0="br0"

/etc/conf.d/hostapd

INTERFACES="br0"

/etc/hostapd/hostapd.conf

interface=wlan0
bridge=br0