问题:内网用户通过外网IP地址访问内网服务器 - 梦飞科技
[Router-acl-basic-3000] rule 5 permit ip source 192.168.88.0 0.0.0.255 destination 106.3.45.3 0
interface GigabitEthernet 0/0/2
[Router-GigabitEthernet 0/0/2 ip address 192.168.1.1 255.255.255.0
[Router-GigabitEthernet 0/0/2 nat static global 106.3.45.3 inside 192.168.88.2 netmask 255.255.255.255 //配置内网服务器地址的一对一NAT
[Router-GigabitEthernet 0/0/2 nat outbound 3000 //内网用户直接访问106.3.45.3 时做Easy IP,域名注册,将源地址改为GE0/0/2的地址,保证内网服务器和主机间的交互都经过Router转发
interface GigabitEthernet 0/0/1
[Router-GigabitEthernet 0/0/1] ip address 106.3.45.2 255.255.255.192
[Router-GigabitEthernet 0/0/1] nat static global 106.3.45.3 inside 192.168.88.2 netmask 255.255.255.255 //保证外网用户使用106.3.45.3可以访问内网服务器
[Router] ip route-static 0.0.0.0 0.0.0.0 106.3.45.1 //配置缺省路由,保证内网用户与外网互通 ,免备案空间 香港服务器