Re: about ICS registry setting.. by K
K
Fri May 02 11:07:29 PDT 2008
If you want more Static Port Mapping rules, you could have more Keys under
HKLM\COMM\ConnectionSharing\Servers and each key will present a port mapping
rule.
In fact, you could have any valid registry key name under \Servers key and
no need to use the work "Services" which is just a place holder in on-line
document.
For example, you have two following registry key, so that each could be
configured its own mapping rule.
HKEY_LOCAL_MACHINE/COMM/ConnectionSharing/Servers/Rule1
HKEY_LOCAL_MACHINE/COMM/ConnectionSharing/Servers/Rule2
You may want to take a look at
public\servers\OAK\SAMPLES\REMOTEADMIN\MODULES\PORTFORWARD\portforward.cpp
which is a Web based CGI sample program for configuring port mapping.
"daniel" <daniel@discussions.microsoft.com> wrote in message
news:CE760F18-6199-452A-A0EE-A978FBA0BDD7@microsoft.com...
> Hi?
> I'm constructing a NAT (Network address translation) equipment using ce
> 5.0.
> From help document, port mapping is possible by adding corresponding
> informaion to HKEY_LOCAL_MACHINE/COMM/ConnectionSharing/Servers/Services
> entry.
> The entry has 5 types like following,
> InternalName : IP address of lan side
> InternalPort : port number from wan side
> IsEnabled
> Port : port number of lan side
> Protocol : Tcp or udp.
>
> Using the above registry keys I can register "one" port mapping entry.
> But how should I do if I need to add multiple entries like following.
> wan side port number 80 --> lan side 192.168.1.100 's 8080 port
> wan side port number 21 --> lan side 192.168.1.101's 21 port
> ...
>