张小牛
发表于 2022-3-12 01:17:17
ufo1cn 发表于 2022-3-11 15:56
多谢,不愧是牛人,刚才好像看到你的HN8145X6安装虚拟机openwrt 21.02.2以及17.01.7懒人版 ,请问这个电信版 ...
应该能,不过17那个打包了r21s50的电信插件,不一定兼容你的主系统。
markcqm
发表于 2022-3-14 16:37:46
不错,火线留名
ufo1cn
发表于 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,请问下是这个懒人包的主系统版本与我光猫的主系统版本不一样?
yjf8888
发表于 2022-4-5 07:44:39
养猫不易,赚点猫粮
xuanhf
发表于 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了,你不需要自己复制。
qq1292000868
发表于 2022-4-6 08:26:31
前来围观。
ufo1cn
发表于 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不正常,尽量不要用。
ufo1cn
发表于 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,但是运行也一样会出错。root@SAF:/sbin# ip6tables
Error relocating /sbin/ip6tables: __lstat_time64: symbol not found
Error relocating /sbin/ip6tables: __select_time64: symbol not found
Error relocating /sbin/ip6tables: __ctime64: symbol not found
Error relocating /sbin/ip6tables: __gmtime64: symbol not found
Error relocating /sbin/ip6tables: __time64: symbol not found
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的。
比较麻烦。