The name of the rule. An empty name is acceptable, in which case the NAT engine auto-generates one using the other parameters.

proto

Protocol handled with the rule.

hostIP

IP of the host interface to which the rule should apply. An empty ip address is acceptable, in which case the NAT engine binds the handling socket to any interface.

hostPort

The port number to listen on.

guestIP

The IP address of the guest which the NAT engine will forward matching packets to. An empty IP address is acceptable, in which case the NAT engine will forward packets to the first DHCP lease (x.x.x.15).

guestPort

The port number to forward.

void INATEngine::removeRedirect

(

in wstring

name

)

Removes a port-forwarding rule that was previously registered.

Parameters

name

The name of the rule to delete.

Member Data Documentation

attribute wstring INATEngine::network

The network attribute of the NAT engine (the same value is used with built-in DHCP server to fill corresponding fields of DHCP leases).

attribute wstring INATEngine::hostIP

IP of host interface to bind all opened sockets to.

Note

Changing this does not change binding of port forwarding.

attribute wstring INATEngine::TFTPPrefix

TFTP prefix attribute which is used with the built-in DHCP server to fill the corresponding fields of DHCP leases.

attribute wstring INATEngine::TFTPBootFile

TFTP boot file attribute which is used with the built-in DHCP server to fill the corresponding fields of DHCP leases.

attribute wstring INATEngine::TFTPNextServer

TFTP server attribute which is used with the built-in DHCP server to fill the corresponding fields of DHCP leases.

Note

The preferred form is IPv4 addresses.

attribute unsigned long INATEngine::aliasMode

attribute boolean INATEngine::DNSPassDomain

Whether the DHCP server should pass the DNS domain used by the host.

attribute boolean INATEngine::DNSProxy

Whether the DHCP server (and the DNS traffic by NAT) should pass the address of the DNS proxy and process traffic using DNS servers registered on the host.

attribute boolean INATEngine::DNSUseHostResolver

Whether the DHCP server (and the DNS traffic by NAT) should pass the address of the DNS proxy and process traffic using the host resolver mechanism.