找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: ufo1cn

请问hs8145x6电信版内置的openwrt可用的软件源地址

[复制链接]
发表于 2022-3-12 01:17:17 | 显示全部楼层
ufo1cn 发表于 2022-3-11 15:56
多谢,不愧是牛人,刚才好像看到你的HN8145X6安装虚拟机openwrt 21.02.2以及17.01.7懒人版 ,请问这个电信版 ...

应该能,不过17那个打包了r21s50的电信插件,不一定兼容你的主系统。
发表于 2022-3-14 16:37:46 | 显示全部楼层
不错,火线留名
 楼主| 发表于 2022-4-5 01:32:08 | 显示全部楼层
张小牛 发表于 2022-3-12 01:17
应该能,不过17那个打包了r21s50的电信插件,不一定兼容你的主系统。

我的hs8145x6主系统是V5.20.C00S035  用了17.01.7懒人版,装了个samba能正常用。
因为今天想把主系统的iptables 放到openwrt里面,打算在启动时自动执行脚本,发现复制过去后有Error relocating,请问下是这个懒人包的主系统版本与我光猫的主系统版本不一样?


发表于 2022-4-5 07:44:39 | 显示全部楼层
养猫不易,赚点猫粮
发表于 2022-4-5 09:59:15 | 显示全部楼层
好有技术含量,希望能早日成功。
发表于 2022-4-5 19:50:32 | 显示全部楼层
ufo1cn 发表于 2022-4-5 01:32
我的hs8145x6主系统是V5.20.C00S035  用了17.01.7懒人版,装了个samba能正常用。
因为今天想把主系统的ip ...

应该是兼容的,不知道你哪里出错了,我打包里面应该已经有iptables了,你不需要自己复制。
 楼主| 发表于 2022-4-6 11:04:09 | 显示全部楼层
本帖最后由 ufo1cn 于 2022-4-6 11:12 编辑
张小牛 发表于 2022-4-5 19:50
应该是兼容的,不知道你哪里出错了,我打包里面应该已经有iptables了,你不需要自己复制。 ...

我是想用ip6tables 命令来给内网开放外部端口, 但是在openwrt找不到这个命令,所以就复制了主系统的iptables相关文件.
主系统
cd /tmp
tar czf iptables.tgz /lib/xtables /lib/libip* /lib/libxt* /sbin/ip* /sbin/xtables-multi /lib/pkgconfig/*
然后在openwrt
tar xzf /e8ctmp/iptables.tgz -C /

晚上回家再重新仔细删除并解压一次懒人包看看.
发表于 2022-4-6 11:47:54 | 显示全部楼层
你再检查下我的压缩包,iptables和ip6tables在17包的/sbin里面,在21包的/usr/sbin/里面,原版也是在这些位置,见图。即使拷贝的话,只需要cp /sbin/*tables*行,不需要拷贝库文件,更不能ip开头的全拷贝。你已经覆盖了op的文件,没问题才怪。还要,再说明一次,主系统的tar不正常,尽量不要用。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
 楼主| 发表于 2022-4-6 22:17:02 | 显示全部楼层
本帖最后由 ufo1cn 于 2022-4-6 22:28 编辑
张小牛 发表于 2022-4-6 11:47
你再检查下我的压缩包,iptables和ip6tables在17包的/sbin里面,在21包的/usr/sbin/里面,原版也是在这些位 ...

确实openwrt17里面的/sbin有iptables和ip6tables,但是运行也一样会出错。
  1. root@SAF:/sbin# ip6tables
  2. Error relocating /sbin/ip6tables: __lstat_time64: symbol not found
  3. Error relocating /sbin/ip6tables: __select_time64: symbol not found
  4. Error relocating /sbin/ip6tables: __ctime64: symbol not found
  5. Error relocating /sbin/ip6tables: __gmtime64: symbol not found
  6. Error relocating /sbin/ip6tables: __time64: symbol not found
  7. Error relocating /sbin/ip6tables: __mktime64: symbol not found
复制代码
而且openwrt17的tar解压openwrt-17.01.7-saf.tar.gz会报tar: invalid tar magic但是电信主系统和电信的openwrt系统自带的tar解压openwrt-17.01.7-saf.tar.gz就正常。
应该是hs8145x6的固件和你的openwrt一些编译库版本不一致吧?

我对lxc不熟,请问下如何通过lxc命令进入电信自带的openwrt的shell?是上面说的saf-huawei console吗?具体命令是执行什么?
我是通过主系统在opt/upt/apps/apps/etc/rc.local ,加入/usr/sbin/telnetd -p 2121 -F -l /bin/ash & 由telnet登陆电信的openwrt的。
比较麻烦。

*滑块验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-9-19 16:28 , Processed in 0.038744 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表