Guys, I need help.
According to the Debian Wiki, to create a Wi-Fi Hotspot via NetworkManager, I would just need to run:However, after running it, I can't connect to the network via my Android device, for example. My laptop also has no connection.
I can see the following logs using journalctl -feu NetworkManager:I don't have much knowledge about networks and I don't know what I'm missing. Any help would be very valuable!
PS: If I can provide more information or logs from other places, please don't hesitate to let me know.
According to the Debian Wiki, to create a Wi-Fi Hotspot via NetworkManager, I would just need to run:
Code:
nmcli device wifi hotspot ifname wlp2s0 ssid 'hotspot' password 'password'
I can see the following logs using journalctl -feu NetworkManager:
Code:
Jul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6537] device (wlp2s0): disconnecting for new activation request.Jul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6538] device (wlp2s0): state change: activated -> deactivating (reason 'new-activation', sys-iface-state: 'managed')Jul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6538] dhcp4 (wlp2s0): canceled DHCP transactionJul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6538] dhcp4 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)Jul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6539] dhcp4 (wlp2s0): state changed no leaseJul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6540] dhcp6 (wlp2s0): canceled DHCP transactionJul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6540] dhcp6 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)Jul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6541] dhcp6 (wlp2s0): state changed no leaseJul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6552] manager: NetworkManager state is now CONNECTED_LOCALJul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6555] audit: op="connection-add-activate" uuid="f2d805e4-4335-43b3-af3b-2c689eb12d7a" name="Hotspot" pid=365816 uid=1000 result="success"Jul 07 16:19:51 kirigaya NetworkManager[1132]: <info> [1720379991.6560] dns-mgr: Removing DNS information from /usr/sbin/resolvconfJul 07 16:19:52 kirigaya NetworkManager[1132]: <info> [1720379992.0084] device (wlp2s0): state change: deactivating -> disconnected (reason 'new-activation', sys-iface-state: 'managed')Jul 07 16:19:52 kirigaya NetworkManager[1132]: <info> [1720379992.0440] device (wlp2s0): set-hw-addr: set MAC address to A1:B2:C3:D4:E5:F6 (scanning)Jul 07 16:19:52 kirigaya NetworkManager[1132]: <info> [1720379992.5568] device (wlp2s0): Activation: starting connection 'Hotspot' (f2d805e4-4335-43b3-af3b-2c689eb12d7a)Jul 07 16:19:52 kirigaya NetworkManager[1132]: <info> [1720379992.5571] device (wlp2s0): supplicant interface state: completed -> disconnectedJul 07 16:19:52 kirigaya NetworkManager[1132]: <info> [1720379992.5571] device (wlp2s0): supplicant interface state: disconnected -> interface_disabledJul 07 16:19:52 kirigaya NetworkManager[1132]: <info> [1720379992.5573] device (wlp2s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')Jul 07 16:19:52 kirigaya NetworkManager[1132]: <info> [1720379992.5574] manager: NetworkManager state is now CONNECTINGJul 07 16:19:52 kirigaya NetworkManager[1132]: <info> [1720379992.5790] device (wlp2s0): set-hw-addr: reset MAC address to G7:H8:I9:J0:K1:L2 (preserve)Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0886] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0888] device (wlp2s0): Activation: (wifi) access point 'Hotspot' has security, but secrets are required.Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0888] device (wlp2s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0897] device (wlp2s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0904] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0907] device (wlp2s0): Activation: (wifi) connection 'Hotspot' has security, and secrets exist. No new secrets needed.Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0907] Config: added 'ssid' value 'hotspot'Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0908] Config: added 'mode' value '2'Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0908] Config: added 'frequency' value '2412'Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0908] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 SAE'Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0908] Config: added 'psk' value '<hidden>'Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0908] Config: added 'proto' value 'RSN'Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0908] Config: added 'pairwise' value 'CCMP'Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.0908] Config: added 'group' value 'CCMP'Jul 07 16:19:53 kirigaya NetworkManager[1132]: <info> [1720379993.6257] device (wlp2s0): supplicant interface state: interface_disabled -> disconnectedJul 07 16:19:54 kirigaya NetworkManager[1132]: <info> [1720379994.2807] device (wlp2s0): supplicant interface state: disconnected -> completedJul 07 16:19:54 kirigaya NetworkManager[1132]: <info> [1720379994.2808] device (wlp2s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Started Wi-Fi Hotspot "hotspot"Jul 07 16:19:54 kirigaya NetworkManager[1132]: <info> [1720379994.2815] device (wlp2s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')Jul 07 16:19:54 kirigaya NetworkManager[1132]: <info> [1720379994.4719] dnsmasq-manager: starting dnsmasq...Jul 07 16:19:54 kirigaya NetworkManager[1132]: <info> [1720379994.4768] device (wlp2s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')Jul 07 16:19:54 kirigaya dnsmasq[366366]: started, version 2.90 cachesize 150Jul 07 16:19:54 kirigaya dnsmasq[366366]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth cryptohash DNSSEC loop-detect inotify dumpfileJul 07 16:19:54 kirigaya dnsmasq[366366]: chown of PID file /run/nm-dnsmasq-wlp2s0.pid failed: Operation not permittedJul 07 16:19:54 kirigaya dnsmasq-dhcp[366366]: DHCP, IP range 10.42.0.10 -- 10.42.0.254, lease time 1hJul 07 16:19:54 kirigaya dnsmasq[366366]: no servers found in /etc/resolv.conf, will retryJul 07 16:19:54 kirigaya dnsmasq[366366]: cleared cacheJul 07 16:19:54 kirigaya NetworkManager[1132]: <info> [1720379994.4790] device (wlp2s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')Jul 07 16:19:54 kirigaya NetworkManager[1132]: <info> [1720379994.4792] device (wlp2s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')Jul 07 16:19:54 kirigaya NetworkManager[1132]: <info> [1720379994.4795] manager: NetworkManager state is now CONNECTED_LOCALJul 07 16:19:54 kirigaya NetworkManager[1132]: <info> [1720379994.4799] device (wlp2s0): Activation: successful, device activated.
PS: If I can provide more information or logs from other places, please don't hesitate to let me know.
Statistics: Posted by rhuanpk — 2024-07-07 19:41 — Replies 0 — Views 29