共计 903 个字符,预计需要花费 3 分钟才能阅读完成。
可能由于不小心升级了 linux 内核,导致 tailscale 虽然能组网,但是不能路由转发了,也就是无法通过这台机器访问局域网内其他机器了。
docker exec -it tailscaled tailscale status
具体报错为:
# Health check:
# - router: adding [-i tailscale0 -j MARK --set-mark 0x40000/0xff0000] in v6/filter/ts-forward: running [/sbin/ip6tables -t filter -A ts-forward -i tailscale0 -j MARK --set-mark 0x40000/0xff0000 --wait]: exit status 2: Warning: Extension MARK revision 0 not supported, missing kernel module?
ip6tables v1.8.8 (legacy): MARK: bad value for option "--set-mark", or out of range (0-4294967295).
Try `ip6tables -h' or 'ip6tables --help' for more information.
这是由于内核版本升级到了 6.8.0-52-generic
,所以需要版本降级。
通过命令查找自己机器安装的旧版本。
dpkg -l |grep linux-image
或者通过 grub
菜单查找之前的版本。
cat boot/grub/grub.cfg
比如我之前的版本是 6.8.0-52-generic
,所以需要 vim /etc/default/grub
修改引导。
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 6.8.0-52-generic"
更新 grub 配置。
sudo update-grub
重启系统。
sudo reboot
查看内核版本是否切换成功。
uname -r
卸载旧版本内核。
sudo apt-get purge linux-image-6.8.0-57-generic linux-headers-6.8.0-57-generic
AD:【腾讯云服务器大降价】2核4G 222元/3年 1核2G 38元/年
正文完