ipfw + natd

Adam Maas mykroft at explosive.mail.net
Thu May 8 06:34:11 PDT 2003


-----
From: "Wayne Swart" <fixx at fixx.co.za>
To: "FreeBSD Mailing list" <freebsd-questions at freebsd.org>
Sent: Thursday, May 08, 2003 8:31 AM
Subject: ipfw + natd


> 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?
>

Could we see the results of an 'ipfw list'?

Sounds like the Default Deny rule is first rather than last on the list of
ipfw rules.

Adam



More information about the freebsd-questions mailing list