*
华为AR系列路由一台,其他系列我就不知道行不行了。

*
连上路由的电脑一台

方法/步骤

*
我的网路拓扑图

PS:我需要内外网都能通过外网IP+端口号(193.25.48.25:50080)访问内网服务器(192.168.1.19:80)。

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=2>

*
打开浏览器进入路由的管理网页

PS:默认地址192.168.1.1(这里以默认管理地址为例,后文也一样)

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=3>

*
登录界面输入管理员的用户名和密码点击登录

PS:默认用户名是admin默认密码:Admin@huawei

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=4>

*
登陆之后默认显示图中这个界面

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=5>

*
点击右上角的切换按钮,如图所示

*
在弹出的提示框上点击取消,如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=7>

*
上一步做完之后就切换到了WEB网管界面了,马上开始进入正题了

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=8>

*
点击左侧的IP业务,如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=9>

*
点击NAT,如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=10>

*
1.勾选FTP选项

2.点击应用按钮

如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=11>

*
点击左侧的安全

如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=12>

*
选择高级ACL配置选项卡

如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=13>

*
点击新建按钮

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=14>

*
1.输入ACL名称a3002

2.点击确定

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=15>

*
点击a3002右侧的的添加规则

,如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=16>

*
再点击刚弹出的高级按钮

如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=17>

*
对照下图分别填写

1.规则编号填写5

2.动作选择允许

3.协议类型选择IP

4.指定源IP填写192.168.1.0

5.通配符0.0.0.255

6.指定目的地IP填《你当前的外网ip地址》(例如我的外网ip为193.25.48.25)

7.通配符0.0.0.0

8.没有说明的不需要填写

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=18>

*
确认填写的信息无误之后点击确定按钮

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=19>

*
下图为刚添加的规则

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=20>

*
点击左侧的IP业务,如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=21>

*
点击NAT,如图所示

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=22>

*
点击新建按钮,如图所示

*
弹出新建外网访问窗口

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=24>

*
如图中点击方框按钮

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=25>

*
1.选择接口Vlanif1

2.点击确定

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=26>

*
如图所示

1.转换方式选择Easy IP

2.ACL名称填写a3002

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=27>

*
填写完毕后点击确定

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=28>

*
图为刚添加的项目

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=29>

*
如图所示

点击静态NAT

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=30>

*
点击新建

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=31>

*
在弹出的新建静态NAT窗口中填写以下项目

1.接口名称:

Vlanif1

2.转换类型:

协议转换

3.协议类型:

TCP

4.外部IP:

指定接口

5.选择Dialer1

6.外部端口号:

映射单个:自定义 50080

7.内部IP:

192.168.1.19

8.内部端口号:

www(80)

确认无误之后点击确定

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=32>

*
图为刚添加的项目

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=33>

*
如图点击内部服务器

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=34>

*
如图点击新建

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=35>

*
在弹出的新建内部服务器窗口中填写以下项目

1.接口名称:

Dialer1

2.转换类型:

协议转换

3.协议类型:

TCP

4.外部IP:

当前接口IP地址(193.25.48.25)

5.外部端口号:

映射单个

6.自定义:

50080

7.内部IP:

192.168.1.19

8.内部端口号:

www(80)

9.确认无误之后点击确定

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=36>

*
1.浏览器输入 193.25.48.25:50080 即可访问内部服务器

2.图为内部服务器网页的默认界面

<http://jingyan.baidu.com/album/375c8e19ebb27225f2a229a3.html?picindex=37>

*
到此教程已全部结束

友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信