如何设置路由器虚拟服务器
2016-12-02
企业在内部搭建各种服务器,如FTP服务器、WEB服务器、邮件服务器、监控服务器等。而这些服务器并不仅仅是针对内网用户开放的,外网的用户也需要通过互联网来访问。虚拟服务器功能可以实现将内网的服务器映射到Internet,从而实现服务器对外开放。下面小编就教你如何设置路由器虚拟服务器!

路由器虚拟服务器设置的方法:
例如某企业使用企业路由器搭建网络,需要将邮件服务器和网页服务器对外网开放。用户网络参数如下:

服务器端口:服务器开放服务的真实端口。
对外开放端口:Internet访问该服务器的端口(通过路由器映射为服务器真实端口)。

设置虚拟服务器之前,请务必确认以下操作:


登录路由器的管理界面,点击 传输控制 >> 转发规则 >> 虚拟服务器,添加规则映射规则。
1、添加邮件服务器规则
发送邮件(SMTP:25号端口):

接收邮件(POP3:110号端口):

2、添加网页服务器的规则

3、确认规则启用
在服务列表中,查看到添加的规则状态均显示 已启用,表示创建成功。

至此,虚拟服务器规则设置完成。

根据以上设置,Internet中的客户端通过邮件客户端软件访问121.202.33.100,即可访问到邮件服务器。通过浏览器访问网页服务器,访问形式如下:

注意:具体的访问形式以实际服务器要求为准。
如果您的宽带并非静态IP地址,可以在 动态DNS 中申请域名账号并在路由器中登录该账号,登录后使用您的域名和开放的端口访问服务器。