notes
%0A# 说明
当 KVM 存在多个 IP 地址(例如同时连接以太网和 Wi‑Fi,或启用了 VPN)时,H.264 视频模式可能会因为多 IP 环境下的 ICE 错误而无法播放。可以通过限制 WebRTC 使用的网卡来解决此问题。
- SSH 登录 KVM,并运行
ifconfig查看接口名称,例如:
root@blikvm(rw):~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.8 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::3609:81d9:30b1:858c prefixlen 64 scopeid 0x20<link>
inet6 2409:8a1e:7bd5:24a0:a75:9560:80e:7086 prefixlen 64 scopeid 0x0<global>
ether d8:3a:dd:26:a8:1d txqueuelen 1000 (Ethernet)
RX packets 31424 bytes 4853302 (4.6 MiB)
RX errors 0 dropped 4420 overruns 0 frame 0
TX packets 56486 bytes 59463233 (56.7 MiB)
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 1257 bytes 162450 (158.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1257 bytes 162450 (158.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1420
inet 10.0.0.2 netmask 255.255.255.255 destination 10.0.0.2
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 22796 bytes 3297976 (3.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 55462 bytes 57044224 (54.4 MiB)
TX errors 8 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.45 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2409:8a1e:7bd5:24a0:d82e:28b5:f282:3ce2 prefixlen 64 scopeid 0x0<global>
inet6 fe80::63b:12f1:44bd:24f2 prefixlen 64 scopeid 0x20<link>
ether d8:3a:dd:26:a8:1e txqueuelen 1000 (Ethernet)
RX packets 8506 bytes 516509 (504.4 KiB)
RX errors 0 dropped 4406 overruns 0 frame 0
TX packets 457 bytes 43843 (42.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- 运行
rw将系统重新挂载为可写,然后编辑nano /mnt/exec/release/lib/pi/janus_configs/janus.jcfg。找到ice_ignore_list配置并设置。例如上面的 KVM 有三个接口,如果你希望 WebRTC 使用wg0,可以配置为:
ice_ignore_list = "eth0,wlan0"
-
重启 web 服务:
systemctl restart kvmd-web。 -
使用
ro将系统恢复为只读。
- use
roto set system to readonly. :::