Natd is one of the ways to quickly and easily organize nat without building a kernel and complex customization.

To enable nat, add the following configuration to rc.conf.

natd_enable="YES"
natd_interface="network_name"
firewall_enable="YES"
firewall_type="OPEN"


Then reboot the server.

In order to run the port, we create a configuration file natd.

# vi /etc/natd.conf



redirect_port tcp 10.0.1.194:80 80


And add the line in rc.conf.

natd_flags="-f /etc/natd.conf"