nmcli access point configuration
by clsgis from LinuxQuestions.org on (#6GQTS)
I found from various forum postings that NetworkManager will create a wifi access point. Not a word about it in https://developer-old.gnome.org/Netw...ager.conf.html
I found https://developer-old.gnome.org/Netw...cessPoint.html but it's nonsense. Seems to be a fragment of some presentation but I couldn't find the overview.
Patching together half a dozen forum postings, I found I could create an access point with
nmcli con add type wifi ifname wlan0 con-name myhotspot autoconnect yes ssid SpambotsHere
nmcli con modify myhotspot wifi-sec.key-mgmt wpa-psk wifi-sec.psk hardpassword
it seems to set up a built-in dnsmasq access point at an arbitrary default IPA 10.42.0.1/24. Which it did by executing this:
/usr/sbin/dnsmasq --conf-file=/dev/null --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.254,60m --dhcp-leasefile=/var/lib/NetworkManager/dnsmasq-wlan0.leases --pid-file=/run/nm-dnsmasq-wlan0.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.d
1. Where does the 10.42.0.1 come from? /etc/NetworkManager/dnsmasq-shared.d is empty. The string "10.42" appears nowhere in the /etc/directory.
2. Where is the current nmcli documentation? Is "developer-old" all there is?
I found https://developer-old.gnome.org/Netw...cessPoint.html but it's nonsense. Seems to be a fragment of some presentation but I couldn't find the overview.
Patching together half a dozen forum postings, I found I could create an access point with
nmcli con add type wifi ifname wlan0 con-name myhotspot autoconnect yes ssid SpambotsHere
nmcli con modify myhotspot wifi-sec.key-mgmt wpa-psk wifi-sec.psk hardpassword
it seems to set up a built-in dnsmasq access point at an arbitrary default IPA 10.42.0.1/24. Which it did by executing this:
/usr/sbin/dnsmasq --conf-file=/dev/null --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.254,60m --dhcp-leasefile=/var/lib/NetworkManager/dnsmasq-wlan0.leases --pid-file=/run/nm-dnsmasq-wlan0.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.d
1. Where does the 10.42.0.1 come from? /etc/NetworkManager/dnsmasq-shared.d is empty. The string "10.42" appears nowhere in the /etc/directory.
2. Where is the current nmcli documentation? Is "developer-old" all there is?