This chapter describes commands for configuring Network Address
Translation on Mpd's interfaces. NAT is implemented by
ng_nat(4) node. To enable it on a particular
interface nat option should be used.
Note: ng_nat node is available only on FreeBSD 6.0-RELEASE and newer. Some additional options like setting target address implemeted in later versions.
set nat address ipSet alias IP address. If not specified, interface IP will be used.
set nat target ipSet target IP address for unknown incoming packets. If not specified, packet will not be modified.
set nat enable option ... set nat disable option ... Enable and disable nat options.
The following options are supported:
logEnable statistics logging.
Default is disabled.
incomingAllow unknown incoming packets to pass.
Default is enabled.
same-portsTry to use same ports while aliasing.
Default is enabled.
unreg-onlyEnables aliasing only for unregistered networks.
Default is disabled.