基于internet layer icmp协议,而不是传输层,理论上比较不受干扰。

步骤 01-配置服务端

隧道 1

执行命令,形成 Tunnel 隧道的服务端

root@server:~# /usr/bin/TunNEL -type server -key 102030 -noprint 1 -nolog 1

简单点 :sudo nohup pingtunnel -type server &

配置在落地机

步骤 02-配置客户端

sudo nohup pingtunnel -type client -l :YYY -s AAA.AAA.AAA.AAA -t AAA.AAA.AAA:BBB -tcp 1 &
配置在本地

参数说明:

YYY 为监听本地端口
AAA.AAA.AAA.AAA 为服务器端地址,可以为 taiscale 内网地址(直连)
BBB 为服务器端开启的 tcp 端口

-l 本地的地址,发到这个端口的流量将转发到服务器
Local address, traffic sent to this port will be forwarded to the server

-s 服务器的地址,流量将通过隧道转发到这个服务器
The address of the server, the traffic will be forwarded to this server through the tunnel

-t 远端服务器转发的目的地址,流量将转发到这个地址
Destination address forwarded by the remote server, traffic will be forwarded to this address


Avatar photo

sontjer

For the amatuer tech nerds & life maniacs.

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用*标注