IR900-OpenVPN-NAT-Maping

http://www.m2mlib.com/uploads/article/20180126/8642edc50d935d73c74ff62432b9e1bc.png
 1.IR900 OpenVPN Client 配置
http://www.m2mlib.com/uploads/article/20180126/fd6e05e2ccbcf399841d496b5d3a1b89.png
OpenVPN Client 连接状态
http://www.m2mlib.com/uploads/article/20180126/51d6c3f436ddeb41feae82650a5ec97b.png
OpenVPN服务器端测试连通性,ping 客户端 IP 10.8.0.6
http://www.m2mlib.com/uploads/article/20180126/d72ac54bb914e6869e23ae4626ae5c93.png
2.NAT端口映射 内网LAN 端口
http://www.m2mlib.com/uploads/article/20180126/d021634a74964ee7b898a3d9d75a7430.png
http://www.m2mlib.com/uploads/article/20180126/f8c575cfb70af23d01a0650efc3b171e.png
DNAT 目的地址NAT,源网络为Outside 类型为 Interface port to IP port 协议TCP(根据实际情况定义TCP or UDP) 接口: openvpn 1 ( OpenVPN Client 所创建的接口) 端口范围:1024-1028 (可以只填写1个,也可以是对应的连续范围) 转换成为的地址 IP地址 192.168.2.10 (LAN端口所连接设备) 端口范围:1024-1028 (openvpn1 与上面的端口一致)
http://www.m2mlib.com/uploads/article/20180126/19d2726d34e9797f2965a4aa1e94327a.png
3.IR900 LAN端口设备配置
http://www.m2mlib.com/uploads/article/20180126/2bcd0454f03838d209100949c46f775f.png
LAN端口设备 TCP 服务器配置,这里使用tcpudp debug 工具,创建并启动TCP Server。 启动服务器,该工具开始监听所创建的端口。
http://www.m2mlib.com/uploads/article/20180126/e723f751b696b200f56aef6907c3ff2d.png
4.OpenVPN服务器访问设备端口 使用 telnet 10.8.0.6 1024 放弃192.168.2.10:1024 端口
http://www.m2mlib.com/uploads/article/20180126/6ca326a400fa0422d16004e326e8b2b3.png
http://www.m2mlib.com/uploads/article/20180126/51a79fd3dc05256150515c1843eb0ede.png
TCP Server 收发数据正常:
http://www.m2mlib.com/uploads/article/20180126/a240e07796772a0cec4cb64985ba847d.png
 

0 个评论

要回复文章请先登录注册