Template:HOSTAPD ACCESS POINT: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
dnsmasq is a suitable option for providing DHCP and DNS services alongside hostapd. It's a lightweight DNS forwarder and DHCP server that can be easily integrated with hostapd. | dnsmasq is a suitable option for providing DHCP and DNS services alongside hostapd. It's a lightweight DNS forwarder and DHCP server that can be easily integrated with hostapd. | ||
=== | === Make sure interface is not managed by NetworkManager === | ||
Before starting with hostapd, it's important that NetworkManager is not managing the access point interface (uap0). If NetworkManager is running, make sure uap0 is unmanaged: | Before starting with hostapd, it's important that NetworkManager is not managing the access point interface (uap0). If NetworkManager is running, make sure uap0 is unmanaged: | ||
Line 16: | Line 16: | ||
unmanaged-devices=interface-name:uap0; | unmanaged-devices=interface-name:uap0; | ||
=== | === Create /etc/hostapd.conf === | ||
The next step is to create /etc/hostapd.conf. The following table shows how to configure 802.11bgn, 802.11ac, and 802.11ax access points: | The next step is to create /etc/hostapd.conf. The following table shows how to configure 802.11bgn, 802.11ac, and 802.11ax access points: | ||
Line 31: | Line 31: | ||
|} | |} | ||
=== | === Configure /etc/dnsmasq.conf === | ||
Then, configure dnsmasq: | Then, configure dnsmasq: | ||
Line 51: | Line 51: | ||
At this point, devices can connect and dhcp an ip address using the access point on uap0. | At this point, devices can connect and dhcp an ip address using the access point on uap0. | ||
=== | === Optionally configure NAT between uap0 and eth0: === | ||
Optionally, it is possible to configure a NAT between uap0 and eth0: | Optionally, it is possible to configure a NAT between uap0 and eth0: |