mnGetServiceRemoteAddresses

This command returns the remote addresses of the specified service.

For more information on profiles see “Firewall Profiles”.

C++ users: the memory for the returned string is managed by DarkNet and is guaranteed to remain unchanged and available until the next mnFinishFirewall or mnUpdateFirewall. This means that you do not need to deallocate the memory.

You can use mnSetServiceRemoteAddresses to change the remote address of the specified service.

Parameters

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.

Returns (const char *)

A filled string if no error occurs. This is the remote addresses of the specified service.

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."


An empty string if an error occurs.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Firewall Services
(1) Windows Firewall
(0) DarkNet Help