Natd and natd_interface

vasilkin at vasilkin at
Fri Apr 9 03:00:58 PDT 2004

Hello Arek,

Write to /etc/natd.conf strings like:
    redirect_address INSIDE_IP PUBLIC_IP

 and write into /etc/rc.conf :
    natd_flags=" -f /etc/natd.conf "

Friday, April 9, 2004, 1:13:18 PM, you wrote:

AC> Rob wrote:

>> fxp0, the one that connects to the outside network.

AC> Yes. It is.

>> I don't think you have to do this yourself.
>> I believe by adding
>>     natd_enable="YES"

AC> Yes, i have this. And gateway_enable, firewall_enable, firewall_type

>> to your rc.conf, you get the following rule as a result:
>>    divert 8668 ip from any to any via fxp0
>> which does what you want (I think).

AC> But i have 10 workstations with public IP from my subnet 
AC> connected to fxp1. Is this rule do NAT for this IP too?

AC> Arek

Best regards,
 vasilkin                            mailto:vasilkin at

More information about the freebsd-questions mailing list