修改 linux 内核版本解决 Tailscale 报错不能路由转发问题

200次阅读
没有评论

共计 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元/年
正文完
 0
阿蛮君
版权声明:本站原创文章,由 阿蛮君 于2025-04-10发表,共计903字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)
Copyright © 2023-2025 阿蛮君博客 湘ICP备2023001393号
本网站由 亿信互联 提供云计算服务 | 又拍云CDN 提供安全防护和加速服务
Powered by Wordpress  Theme by Puock