C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索

军衔等级:

亚星游戏官网-yaxin222  新兵

注册:2009-5-31
发表于 2010-4-1 09:04:07 |显示全部楼层
端口映射功能,都是为实现MODEM里建立一条五元组表PAT表:
Port Forwarding
配置:
Application         = a
Start Port          = 10
End port            = 20
Protocol            = TCP
WAN-side IP address = 1.1.1.1
LAN-side IP address = 192.168.8.3

此配置表示:内网主机192.168.8.3的TCP报文端口任意 对应 公网IP1.1.1.1的TCP报文端口为10~20;
即从公网主动访问的TCP报文,其目的端口为10到20之间,MODEM会把它转发给192.168.8.3主机;

Port Triggering
配置:
Application     = b
Service User    = 192.168.8.4
Service Type    = TCP
Triggering Port = 12345

Inbound Connection
Connection Type = TCP
Start Port      = 123
End   Port      = 1234

此配置表示:内网主机192.168.8.4向公网发TCP报文且目的端口为12345,modem会被触发生成一条PAT表项:
内网主机192.168.8.4的TCP报文端口为端口为123到1234 对应 公网IP的TCP报文端口为123到1234;

UPnP
配置:只有开关;表项通过协议,由主机主动下发;
upnpd[420]: HTTP connection from 192.168.8.3:1059
upnpd[420]: HTTP REQUEST : POST /ctl/IPConn (HTTP/1.1)
upnpd[420]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
upnpd[420]: AddPortMapping: ext port 87 to 192.168.8.3:89 protocol TCP for: BitSpirit - Powered by LANSPIRIT.NET!
upnpd[420]: no permission rule matched : accept by default (n_perms=4)
upnpd[420]: redirecting port 87 to 192.168.8.3:89 protocol TCP for: BitSpirit - Powered by LANSPIRIT.NET!

UPnP Portmap Table :
Protocol                  = TCP
Internal Port             = 89
External Port             = 87

此表项表示:内网主机192.168.8.3的TCP报文端口为89 对应公网IP的TCP端口为87;

DMZ
配置:指定DMZ主机
Router(config)#show dmz

WAN interface IP address = 1.1.1.1
LAN interface IP address  = 192.168.8.8


此表项表项:访问MODEM公网IP的报文,其端口没有被指定默认发给DMZ主机192.168.8.8

-----------------------------------------
注:公网IP的对应的端口只能被唯一占用

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-9-25 00:35 , Processed in 0.107379 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图