|
家里面是一台老的极路由B51(我并没有在官网找到这个型号),也不想刷系统。但是又想搞公网ipv6到内网ipv6
先直接上答案:
针对极路由的内核版本,要从这儿下载一个socat才能安装
https://archive.openwrt.org/barr ... ckages/oldpackages/
安装指令很简单 opkg install 路径/socat_1.7.2.1-1_ramips_24kec.ipk 就完事了
然后
socat TCP6-LISTEN:19999,ipv6-v6only=1,reuseaddr,fork TCP6:[内网本机ipv6地址]:19999
socat UDP6-LISTEN:19999,ipv6-v6only=1,reuseaddr,fork UDP6:[内网本机ipv6地址]:19999
ipv6-v6only=1 参数 意思是监听IPv6的同时不占用IPv4相同端口
瞬间搞定~~~~
过程:
但是看了一下CPU型号
- root@Hiwifi:/www/cgi-bin# cat /proc/cpuinfo
- system type : Mediatek MT7620A ver:2, eco:6
- machine : HiWiFi Wireless R32 Board
- processor : 0
- cpu model : MIPS 24KEc V5.0
- BogoMIPS : 385.84
- wait instruction : yes
- microsecond timers : yes
- tlb_entries : 32
- extra interrupt vector : yes
- hardware watchpoint : yes, count: 4, address/irw mask: [0x0ff8, 0x0ff8, 0x0ff8, 0x0ff8]
- isa : mips1 mips2 mips32r1 mips32r2
- ASEs implemented : mips16 dsp
- shadow register sets : 1
- kscratch registers : 0
- core : 0
- VCED exceptions : not available
- VCEI exceptions : not available
复制代码 因为极路由的opkg资源服务器已经挂掉,所以不好用opkg来在线安装,然后又不确定版本型号。
于是想通过端口转发,结果openwrt的firewall不支持ipv6的端口转发
然后又尝试自己配置ip6tables,反正也没搞定。
于是折腾准备安装kmod-ipt-nat6,从这个库下了一个包 https://archive.openwrt.org/barr ... -1_ramips_24kec.ipk
但是又遇见安装架构问题,于是改/etc/opkg.conf 以及 /etc/opkg.d/ 各个 .conf,添加一行
极路由是
- arch mtmips_24kec 10
- arch ralink 20
- arch mtmips_24kec 20
- arch mtmips_1004kc 20
复制代码
需要新添加一个openwrt的架构名称进去
但是~~~~然并卵~~~
因为编译的系统内核版本不同,所以~~~我操,现在极路由没有可以用的nat6包了。
- root@Hiwifi:~# opkg install kmod-ipt-nat6_3.10.49-1_ramips_24kec.ipk
- Installing kmod-ipt-nat6 (3.10.49-1) to root...
- Collected errors:
- * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod- ipt-nat6:
- * kernel (= 3.10.49-1-3df3ab26a49a04478a9633bf83827ca3) *
- * opkg_install_cmd: Cannot install package kmod-ipt-nat6.
复制代码
好在天无绝人之路,想了一下,可以搞个Socat~~~
完美分分钟解决问题。
|
|