以下在梅林测试通过,理论上基于LINUX的路由都能行,无非是安装方式的区别。
SSH连接路由后:
// An highlighted block
opkg update
opkg install socat
socat TCP6-LISTEN:8000,reuseaddr,fork TCP4:192.168.2.3:8000
监听公网传入的IPV6的8000端口,转发到内网的192.168.2.3主机的8000端口。
如此可在公网通过IPV6地址或域名加端口号访问内网的服务。
以下在梅林测试通过,理论上基于LINUX的路由都能行,无非是安装方式的区别。
SSH连接路由后:
// An highlighted block
opkg update
opkg install socat
socat TCP6-LISTEN:8000,reuseaddr,fork TCP4:192.168.2.3:8000
监听公网传入的IPV6的8000端口,转发到内网的192.168.2.3主机的8000端口。
如此可在公网通过IPV6地址或域名加端口号访问内网的服务。