wifi hotspot is created easily and is visible to other devices too. but on the other hand after typing password to connect it just do nothing. can't able to connect my ubuntu 22.04 created hotspot can anyone help me with this ? By default hotspot configuration is WEP security which also can't be modified using nm-connection-editor. i have already tried this.
-
ufw enabled? Yesterday I tried Ubuntu Mate 22 and may for sure say that nm is not adding necessary rules, therefore, with running ufw it is not possible to connect. – Andra May 02 '22 at 16:00
-
@Andra I have got the same issue, and ufw is inactived. – J.Doe May 18 '22 at 08:02
5 Answers
This is the only solution worked with me, by downgrading wpa_supplicant-2.10 to wpa_supplicant-2.9:
Step 1: Add the required repository for downgrading
sudo nano /etc/apt/sources.list
Add the following “old-releases” repository to the end of the file.
deb http://old-releases.ubuntu.com/ubuntu/ impish main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ impish-security main restricted universe multiverse
And don’t forget to save it.
Step 2: Downgrade wpa_supplicant
sudo apt update
sudo apt --allow-downgrades install wpasupplicant=2:2.9.0-21build1
Then use the Network-Manager UI to create new HOTSPOT
- 201
- 2
- 6
-
1
-
Thanks!!! Just one repo is required for this: `deb http://old-releases.ubuntu.com/ubuntu/ impish-updates main`, the package there is `wpasupplicant=2:2.9-1ubuntu4` – gatopeich Feb 20 '23 at 09:23
-
BE CAREFUL WITH THE FIREWALL
First try:
sudo ufw disable
If that solves the problem, you can do:
sudo ufw enable
sudo ufw allow in on wlo1
sudo ufw route allow out on enp41s0
My system works with:
$ sudo ufw status numbered
[ 1] Anywhere on wlo1 ALLOW IN Anywhere
[ 2] Anywhere on enp41s0 ALLOW FWD Anywhere (out)
[ 3] Anywhere (v6) on wlo1 ALLOW IN Anywhere (v6)
[ 4] Anywhere (v6) on enp41s0 ALLOW FWD Anywhere (v6) (out)
Only [ 1] and [ 2] are strictly necessary.
#----------------------------------------------------- On my system:
With WiFi on:
ifconfig
> enp41s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.2.115 netmask 255.255.255.0 broadcast 192.168.2.255
> inet6 fe80::19b0:6542:ee4:5982 prefixlen 64 scopeid 0x20<link>
> ether 00:d8:61:9e:2b:52 txqueuelen 1000 (Ethernet)
> RX packets 46282 bytes 39478576 (39.4 MB)
> RX errors 0 dropped 4 overruns 0 frame 0
> TX packets 38257 bytes 7380268 (7.3 MB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> enp42s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
> ether 00:d8:61:9e:2b:53 txqueuelen 1000 (Ethernet)
> RX packets 0 bytes 0 (0.0 B)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 0 bytes 0 (0.0 B)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
> inet 127.0.0.1 netmask 255.0.0.0
> inet6 ::1 prefixlen 128 scopeid 0x10<host>
> loop txqueuelen 1000 (Local Loopback)
> RX packets 1981 bytes 318831 (318.8 KB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 1981 bytes 318831 (318.8 KB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.2.115 netmask 255.255.255.0 broadcast 192.168.2.255
> inet6 fe80::1c39:c0d6:43bd:fcf0 prefixlen 64 scopeid 0x20<link>
> ether 38:00:25:95:18:02 txqueuelen 1000 (Ethernet)
> RX packets 50 bytes 17772 (17.7 KB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 48 bytes 7067 (7.0 KB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
This means that the WiFi hotspot:
input is from wlo1
Output is to enp42s0
Edit (June 03, 2023):
For those who haven't yet figured out how to identify the input and output, here is the right way: ufw stores its logs in this location: /var/log/ufw.log
So you can enable the firewall and start monitoring updates from ufw using this command in a new terminal:
tail -f /var/log/ufw.log
Now when you connect to hotspot and attempt to view some webpage, and if the request gets blocked by ufw, you will find a line like this in the terminal (sample line from my system):
Jun 3 09:44:04: [UFW BLOCK] IN=wlo1 OUT=ppp0 MAC=ac:12:03:69:63:6a:16:5...
This indicates that the IN is wlo1 and OUT is ppp0. You should be able to use the method above to whitelist this path and the hotspot will start working as expected.
- 103
- 4
- 131
- 2
- 4
-
`sudo ufw disable` work like a charm, but `ufw allow` didn't work for me. Mine is input from wlp0s20f3 and output to enp1s0 – Doan Van Thang Sep 22 '22 at 02:45
-
`sudo ufw disable` alone solved this problem. This might be a noob question but why should I follow other steps if the disabling command fixes the hotspot issue? – Sanjay Nov 15 '22 at 04:02
-
Thanks, this worked perfectly for me. I was stuck finding input and output, and later realized that it is available in `/var/log/ufw.log`. For those who haven't figured it out yet, you will find a line like `[UFW BLOCK] IN=wlo1 OUT=ppp0` in the ufw.log file, which will tell you the in and out you need to configure – Mani Jun 03 '23 at 06:04
-
`sudo ufw route allow out on
` fixed my issues, *UFW* will create a FWD `forward' rule to enable traffic forwarding from Wifi to Ethernet. thanks a lot. – Oussama Boumaad Jul 23 '23 at 00:22
I've the same problem.
If it's any use, I got it working but without security.
Turn off the wifi, via the drop down top menu. Then go to:
Show Applications --> Advanced Network
Then in "Network Connections" dialog:
- Remove the Hotspot connection
- Add a new one (+ sign)
- choose WIFI for type of connection
- Name it and give it a SSID
- Change MODE to Hotspot
- Save Then restart the wifi via the top menu, and try to connect with your phone.
I didn't mess much with a passwords as I don't need them.
- 21
- 1
-
This worked for Android 11. But, after my mobile auto-upgraded to Android 12, this isn't working any longer :( Is there any other possible solution ? – programmer Jun 27 '22 at 09:04
-
This is still an issue now it’s my problem trying to use hotspot with kde on Ubuntu and yeah works fine no password. I will try the package downgrade hack/patch thanks – A N Faction Sep 01 '22 at 00:41
I needed both the answers from GNassro and Mario Galinda to get a working workaround. So you need to configure the firewall AND you need to downgrade the wpasupplicant package. If I do only the firewall thing, the connection still drops after a while.
- 632
- 1
- 6
- 20
Seems there are issues with firewall.
For me it's worked:
Turn off wifi.
Be sure that firewall disabled.
$ sudo ufw enable $ sudo ufw disableTurn on wifi and hotspot.
-
yeah, firewall issues are at least part of the problem, but turning it off is a dangerous solution – Maarten Sep 28 '22 at 14:50
-
@Maarten do you have any detailed solution? Could you share it with me, please? – Soyuzbek Orozbek Uulu Oct 05 '22 at 06:01
-