IRouter-OpenVPN-NAT-Port-Mapping

1. 新建OpenVPN Clinet,OpenVPN 隧道命名为:OpenVPN_T_1 (名称为自定义,但后面的NAT映射需要用到此隧道名,因为OpenVPN服务开启之后,会生成一个此名称的虚拟接口)。
http://www.m2mlib.com/uploads/article/20180127/99f39393c1cd792e4b8cec4b97983e33.PNG
2. OpenVPN Client 建立成功。
http://www.m2mlib.com/uploads/article/20180127/a0f62f2e3409c5805a2af1285b9a8db1.PNG
3. 将路由器下端设备192.168.2.2:8080&5002 端口映射到虚拟接口“OpenVPN_T_1”
http://www.m2mlib.com/uploads/article/20180127/a660aecf32f36e7bc1b30c67bd9b7a59.PNG
4.下端设备192.168.2.2 建立TCP Server 8080&5002 
http://www.m2mlib.com/uploads/article/20180127/f58d7f14c818eb376f640df872930ad4.PNG
5.OpenVPN Server访问Client OpenVPN_T_1 接口IP 192.168.100.26:8080
http://www.m2mlib.com/uploads/article/20180127/4c576d667aaa2998edfcf6df59409cac.PNG
与下端设备192.168.2.2:8080 成功建立TCP链接
http://www.m2mlib.com/uploads/article/20180127/93932aeef77bac1acfa1833f159a7e3c.PNG
OpenVPN Server访问Client OpenVPN_T_1 接口IP 192.168.100.26:5002(图片后面的CMD命令框)
http://www.m2mlib.com/uploads/article/20180127/a7ee696f507345a0a2f011be7d5d4d2c.PNG
与下端设备192.168.2.2:5002 成功建立TCP链接
http://www.m2mlib.com/uploads/article/20180127/4807d92ddac45679873e04e426287176.PNG

0 个评论

要回复文章请先登录注册