ipfw + natd

Wayne Swart fixx at fixx.co.za
Thu May 8 05:31:54 PDT 2003


Lo

I am running FreeBSD4.8-RELEASE and have a problem with ipfw and natd.

the two interfaces (dc0 and dc1) have the following ip setup.

dc1 ip: 10.10.10.1
dc0 ip: 196.x.x.x

now i can't do any requests through my box to "the outside" anymore, since
i added a default to deny rule.

i use the following ipfw rules for the nat, but it does not seem to have
any impact on the requests that has to go through it.

ipfw add divert natd all from any to any via dc0 out keep-state
ipfw add allow all from 10.10.10.0/24 to any via dc0 out keep-state
ipfw add allow all from 10.10.10.0/24 to any via dc1 in keep-state

is there an easier way to troubleshoot this?

any help is appreciated...

Wayne




More information about the freebsd-questions mailing list