无法连接到ubuntu 22.04热点

Kri*_*hna 12 wireless networking hot-spot wifi-direct ap-hotspot

wifi 热点很容易创建,并且对其他设备也可见。但另一方面,输入密码进行连接后什么也不做。无法连接我的 ubuntu 22.04 创建的热点有人可以帮我吗?默认情况下热点配置是 WEP 安全,也无法使用 nm-connection-editor 进行修改。我已经尝试过了。

GNa*_*sro 13

这是对我有用的唯一解决方案,通过降级wpa_supplicant-2.10wpa_supplicant-2.9

\n

步骤1:添加降级所需的存储库

\n
sudo nano /etc/apt/sources.list\n
Run Code Online (Sandbox Code Playgroud)\n

将以下 \xe2\x80\x9cold-releases\xe2\x80\x9d 存储库添加到文件末尾。

\n
deb http://old-releases.ubuntu.com/ubuntu/ impish main restricted universe multiverse\ndeb http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted universe multiverse\ndeb http://old-releases.ubuntu.com/ubuntu/ impish-security main restricted universe multiverse\n
Run Code Online (Sandbox Code Playgroud)\n

并且不要忘记保存它。

\n

步骤2:降级wpa_supplicant

\n
sudo apt update\nsudo apt --allow-downgrades install wpasupplicant=2:2.9.0-21build1\n
Run Code Online (Sandbox Code Playgroud)\n

然后使用网络管理器 UI 创建新的 HOTSPOT

\n

来源

\n

  • 这成功了。不需要其他任何东西。 (2认同)
  • 最后用`sudo apt-markhold wpasupplicant`锁定版本 (2认同)

小智 10

小心防火墙

第一次尝试:

sudo ufw disable
Run Code Online (Sandbox Code Playgroud)

如果这解决了问题,您可以执行以下操作:

sudo ufw enable
sudo ufw       allow in  on wlo1
sudo ufw route allow out on enp41s0
Run Code Online (Sandbox Code Playgroud)

我的系统适用于:

$ 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)
Run Code Online (Sandbox Code Playgroud)

只有[ 1][ 2]是绝对必要的。

#------------------------------------------------- ---- 在我的系统上:

WiFi 打开时:

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
Run Code Online (Sandbox Code Playgroud)

编辑(2023 年 6 月 3 日):

对于那些还没有弄清楚如何识别输入和输出的人,这是正确的方法:ufw 将其日志存储在这个位置:/var/log/ufw.log

因此,您可以在新终端中使用以下命令启用防火墙并开始监控 ufw 的更新:

tail -f /var/log/ufw.log

现在,当您连接到热点并尝试查看某些网页时,如果请求被 ufw 阻止,您将在终端中找到如下行(来自我的系统的示例行):

Jun 3 09:44:04: [UFW BLOCK] IN=wlo1 OUT=ppp0 MAC=ac:12:03:69:63:6a:16:5...

这表示 IN 为wlo1且 OUT 为ppp0。您应该能够使用上述方法将此路径列入白名单,并且热点将开始按预期工作。


小智 2

我有同样的问题。
如果有任何用处,我让它工作但没有安全性。

通过顶部下拉菜单关闭 wifi。然后转到:
显示应用程序 --> 高级网络

然后在“网络连接”对话框中:

  1. 删除热点连接
  2. 添加一个新的(+ 号)
  3. 连接类型选择 WIFI
  4. 为其命名并指定 SSID
  5. 将模式更改为热点
  6. 保存然后通过顶部菜单重新启动wifi,并尝试与手机连接。

我没有过多地使用密码,因为我不需要它们。