首先在两台centos上安装socat (sockets cat)
yum -y install socat
服务端运行:(使用tcp:3443作为VPN的服务 端)
socat -d -d tcp-LISTEN:3443,reuseaddr TUN:192.168.255.1/24,up
客户端运行
socat tcp: 1.2.3.4:3443 TUN:192.168.255.2/24,up
然后两台电脑就可以使用192.168.255.1与192.168.255.2互通了