This command changes the remote addresses
of the specified service.
For more information on profiles see
“Firewall Profiles”.
You can use mnGetServiceRemoteAddresses to determine the remote addresses of a service.
unsigned int ProfileID: This is the ID of the profile that the command
should use.
unsigned int ServiceID: This is the ID of the service that the command
should use.
char * RemoteAddresses: This is the remote addresses that the service should be set to.
The string consists of one or more comma-delimited
tokens specifying the remote addresses from which the application can
listen for traffic. The default value is "*".
Valid tokens:
- "*": any remote address;
if present, it must be the only token.
- "LocalSubnet": not case-sensitive;
specifying more than once has no effect.
- subnet: may be specified using either
subnet mask or network prefix notation. If neither a subnet mask nor
a network prefix is specified, the subnet mask defaults to 255.255.255.255.
Examples - of valid subnets: 10.0.0.2/255.0.0.0 10.0.0.2/8 10.0.0.2
- Windows Vista: A valid IPv6 address.
- Windows Vista: An IPv4 address range in the format "start address - end address."
- Windows Vista: An IPv6 address range
in the format "start address - end address."
0 if no error occurred.
-1 if an error occurred.
DBP
C++
.Net