防火墙打开远程管理端口
添加端口如22或者使用
ipv6端口转发到ipv4
使用socat
opkg install socat
图形化界面: drophair / luci-app-socatg
wget -P /tmp https://github.com/big-tooth/luci-app-socatg/releases/download/v1.1/luci-app-socatg_1.1-1_all.ipk
opkg install /tmp/luci-app-socatg_1.1-1_all.ipk
映射示例,转发ipv6到路由器的22号端口用于ssh
root@OpenWrt:~# socat TCP6-LISTEN:7123seaddr,fork TCP4:192.168.11.1:22
可以添加到开机启动项
ipv6源失败
cp /etc/opkg/distfeeds.conf /etc/opkg/distfeeds.conf.bak
#tuna仅支持21和22
#sed -i 's_downloads.openwrt.org_mirrors6.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
标签:socatg,22,app,ipv6,上网,opkg,luci,Openwrt
From: https://www.cnblogs.com/cndaqiang/p/16632790.html