找回密码
 注册

QQ登录

只需一步,快速开始

楼主: 站军姿的狗

[原创]端口映射的配置祥解-我研究了几天的成果

  [复制链接]
发表于 2006-12-15 23:51:46 | 显示全部楼层

[原创]端口映射的配置祥解-我研究了几天的成果

The Basic Rule: Performing 1:1 Translations
The Basic flavor translates the private (LAN-side) IP address to a public (WAN-side) address, like NAPT rules. However, unlike NAPT rules, Basic rules do not also translate the port numbers in the packet header; they are passed through untranslated. Therefore, the Basic rule does not provide the same level of security as the NAPT rule.
To add a Basic rule, follow these instructions (see steps 1-4 under "The NAPT Rule" for specific instructions corresponding to steps 1 and 2 below):
Display the NAT Rule-Add Page, select BASIC as the Rule Flavor, and enter a Rule ID.
Select the interface on which this rule will be effective.
Select a protocol to which this rule applies, or choose ALL.
This selection specifies which type of Internet communication will be subject to this translation rule. You can select ALL if the rule applies to all data. Or, select TCP, UDP, ICMP, or a number from 1-255 that represents the IANA-specified protocol number.
In the Local Address From and Local Address To fields, type the starting and ending IP addresses that identify the range of private address you want to be translated. Or, type the same address in both fields.
If you specify a range, each address in the range will be translated in sequence to a corresponding address in a range of global addresses (which you specify in step 5).
You can create a Basic rule for each specific address translation to occur. The range of addresses should correspond to private addresses already in use on your network, whether assigned statically to your PCs, or assigned dynamically using DHCP.
In the Global Address From and Global Address To fields, type the starting and ending address that identify the pool of public IP addresses that your private addresses should be translated to. Or, type the same address in both fields (if you also specified a single address in step 4).
Follow steps 8-12 under "The NAPT Rule" to submit your changes.
发表于 2006-12-15 23:52:54 | 显示全部楼层

[原创]端口映射的配置祥解-我研究了几天的成果

The NAPT Rule: Translating between private and public IP addresses
Follow these instructions to create a rule for translating the private IP addresses on your LAN to your public IP address. This type of rule uses the NAT flavor NAPT, which was used in your default configuration. The NAPT flavor translates private source IP addresses to a single public IP address. The NAPT rule also translates the source port numbers to port numbers that are defined on the NAT Global Configuration page (see Viewing Your NAT Setup and Statistics).
If the NAT Rule Configuration page is not already displaying, click the NAT tab, then select NAT Rule Entry from the NAT Options drop-down list.
Click  to display the NAT Rule - Add page.
From the Rule Flavor drop-down list, select NAPT.
The page redisplays with only the fields that are appropriate for this NAT flavor.
Enter a rule ID.
The Rule ID determines the order in which rules are invoked (the lowest numbered rule is invoked first, and so on). In some cases, two or more rules may be defined to act on the same set of IP addresses. Be sure to assign the Rule ID so that the higher priority rules are invoked before lower-priority rules. It is recommended that you select rule IDs as multiples of 5 or 10 so that, in the future, you can insert a rule between two existing rules.
Once a data packet matches a rule, the data is acted upon according to that rule and is not subjected to higher-numbered rules.
From the IFName drop-down list, select the interface on the device to which this rule applies.
Typically, NAT rules are used for communication between your LAN and the Internet. Because the device uses the WAN interface (which may be named ppp-0, eoa-0, or ipoa-0) to connect your LAN to your ISP, it is the usual IFName selection.
In the Local Address From and Local Address To fields, type the starting and ending IP addresses, respectively, of the range of private address you want to be translated.  
You can specify that data from all LAN addresses should be translated by typing 0 (zero) in each From field and 255 in each To field. Or, type the same address in both fields if the rule only applies to one LAN computer.
In the Global Address From field, type the public IP address assigned to you by your ISP.  
Click . A page displays to confirm the change.  
Click  to return to the NAT Configuration page. The new rule should display in the NAT Rule Configuration table.  
Ensure that the Enable radio button is selected, and then click . A page displays to confirm your changes.  
Display the Admin tab, and click Commit & Reboot in the task bar.
Click  to save your changes to permanent memory.
bbs47 该用户已被删除
发表于 2007-1-24 20:17:46 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2007-1-29 22:06:31 | 显示全部楼层

[原创]端口映射的配置祥解-我研究了几天的成果

谢谢楼主,很不错的帖子。有学到一招。。
发表于 2008-4-13 19:13:13 | 显示全部楼层
谢谢..:handshake :handshake :handshake :handshake
发表于 2008-7-18 22:45:06 | 显示全部楼层
好文章谢谢
发表于 2008-7-19 10:41:43 | 显示全部楼层
详细,谢谢楼主
发表于 2008-8-19 20:56:31 | 显示全部楼层
:lol :lol :lol
这款MODEM我也用过,(大亚DB108G、大亚DB108等型号不同版本的)有的会出现上面的版本!
发表于 2008-8-20 19:20:30 | 显示全部楼层
谢谢!!终于明白了
发表于 2008-8-28 18:46:47 | 显示全部楼层
谢谢,我猫的界面和你说的这个一样,只是无论我怎么设,外网都进猫,搞了一天了。
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|宽带技术网 |网站地图

粤公网安备 44152102000001号

GMT+8, 2024-5-13 01:30 , Processed in 0.024700 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表