IRouter-OpenVPN-NAT-Port-Mapping

Sol.Sun
Sol.Sun This guy is lazy,Introduction has not been set

0 People liked this article · 5258 views

1. 新建OpenVPN Clinet,OpenVPN 隧道命名为:OpenVPN_T_1 (名称为自定义,但后面的NAT映射需要用到此隧道名,因为OpenVPN服务开启之后,会生成一个此名称的虚拟接口)。
openvpn-config.PNG
2. OpenVPN Client 建立成功。
openvpn-clinet-status.PNG
3. 将路由器下端设备192.168.2.2:8080&5002 端口映射到虚拟接口“OpenVPN_T_1”
openvpn-interface-portmaping.PNG
4.下端设备192.168.2.2 建立TCP Server 8080&5002 
LAN-PC-TCP-Server-Port-config.PNG
5.OpenVPN Server访问Client OpenVPN_T_1 接口IP 192.168.100.26:8080
test-8080.PNG
与下端设备192.168.2.2:8080 成功建立TCP链接
test-8080-connected.PNG
OpenVPN Server访问Client OpenVPN_T_1 接口IP 192.168.100.26:5002(图片后面的CMD命令框)
test-5002.PNG
与下端设备192.168.2.2:5002 成功建立TCP链接
test-5002-connected.PNG

Published on 2018-01-27 15:11

Disclaimers:

This document is written by Sol.Sun Original published on 技术社区 ,The copyright belongs to the author。

Log in,More exciting content waiting for you to find,Contribute wonderful answers,Participate in comment interaction

go Sign in! No accountgoregister