Mpd 4.4.1 User Manual : Configuring Mpd : NAT commands
Previous: NetFlow commands
Next: Device Types

4.17. NAT commands

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 ip

Set alias IP address. If not specified, interface IP will be used.

set nat target ip

Set 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:

log

Enable statistics logging.

Default is disabled.

incoming

Allow unknown incoming packets to pass.

Default is enabled.

same-ports

Try to use same ports while aliasing.

Default is enabled.

unreg-only

Enables aliasing only for unregistered networks.

Default is disabled.


Mpd 4.4.1 User Manual : Configuring Mpd : NAT commands
Previous: NetFlow commands
Next: Device Types