natd and arp

James D Fowler jimmy at dmech.com
Tue Apr 15 13:31:24 PDT 2003


Hi,
I am trying to set up a system running release 4.6 to act as a gateway for a
network that doesn't have enough ip's (public).
I have re-compiled the kernel with ipfirewall and ipdivert.
It is running in the open mode for ipfw.
It has two interfaces dc0 connected to the wan and rl0 on the private net.

I keep receiving /kernel: arp: 192.168.1.2 (and other priv ip's )is on rl0
but got reply on (mac address of dc0)

it seems to be functioning as far as the nat and routing are concerned.

My concern is the arp messages, and have I missed something in the conf.

I would be grateful for any advise.
Thanx,
jimmy

rc.conf:

gatway_enable="yes"
firewall_enable="yes"
firewall_script="/etc/rc.firewall"
firewall type="open"
firewall_logging="yes"
natd_program="/sbin/natd"
natd_enable="yes"
natd_interface="dc0"
natd_flags="-u -l"

rc.firewall:

in the open section I modified the natd rule to:
${fwcmd} add 50 divert natd all from any to any via ${natd_interface}




More information about the freebsd-questions mailing list