34 lines
1.2 KiB
Markdown
34 lines
1.2 KiB
Markdown
#tldr : #TODO
|
|
**Resources**:
|
|
- https://variwiki.com/index.php?title=Wifi_NetworkManager#Configuring_WiFi_Access_Point
|
|
- https://wiki.archlinux.org/title/Dnsmasq
|
|
- https://thekelleys.org.uk/dnsmasq/doc.html
|
|
- https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
|
|
- https://thekelleys.org.uk/dnsmasq/docs/FAQ
|
|
|
|
|
|
## Configuring WiFi Access Point with NetworkManager
|
|
|
|
NetworkManager can also be used to turn WiFi interface into Access Point.
|
|
The benefit of using NetworkManager in this scenario is the complete automation of WiFi, DHCP server and NAT configuration.
|
|
|
|
### Disabling standalone dnsmasq service
|
|
|
|
Dnsmasq is a lightweight DNS forwarder and DHCP server.
|
|
By default dnsmasq runs as a standalone service and will conflict with dnsmasq instance launched by NetworkManager.
|
|
To prevent the conflict, disable dnsmasq service by running the following commands:
|
|
|
|
```
|
|
systemctl disable dnsmasq
|
|
```
|
|
```
|
|
systemctl stop dnsmasq
|
|
```
|
|
|
|
For NetworkManager to run dnsmasq as a local caching DNS server, edit/create /etc/NetworkManager/NetworkManager.conf and add the following
|
|
```system
|
|
[main]
|
|
dns=dnsmasq
|
|
```
|
|
#note: Maybe must disable #NetworkManager #dnsmasq and enable system service dnsmasq.
|