Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2002 12:28:25 +0200
From:      "jeremie le-hen" <>
To:        "billy" <>, "Juraj Petrik" <>
Cc:        <freebsd-security@FreeBSD.ORG>, <freebsd-ipfw@FreeBSD.ORG>
Subject:   Re: IPNAT + IPFILTER + DUMMYNET + FreeBSD 4.7prerelease
Message-ID:  <056a01c26547$72e0be50$0200a8c0@darthvader>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> I know that ipnat will not redirect packets out the same interface they
> came, but that doesn't seem to be a problem here.
> the message

That's not true. I've succeeded in using the same interface for incoming and
outgoing packets through ipnat, using ip aliasing.

Here is the configuration :

# outgoing ip address
ifconfig rl0 inet netmask 0xFFFF0000 up
# incoming one
ifconfig rl0 inet netmask 0xFFFFFF00 alias

# ipnat rule
map rl0 ->

I don't know if it works if outgoing ip address is on the same subnet as the
incoming one, but i think yes. It would be useful if your network use an
authentification to be allowed to go through your default router, and you
don't have the relevant client software on some machines. This rule

map rl0 ->

should work in my opinion.

Jeremie Le Hen aka TataZ/TtZ

To Unsubscribe: send mail to
with "unsubscribe freebsd-ipfw" in the body of the message

Want to link to this message? Use this URL: <$72e0be50$0200a8c0>