On Wed, Mar 20, 2002 at 12:44:26PM +0700, Eugene Grosbein wrote:
> > I forgot point out that ipnat(8) will do this as-is if that is an
> > option for you.
> 
> Hmm, I've read man ipnat and still not sure how can I achieve 
> a combination of redirection ip<->ip and map net<->ip.

Why not?

  map if0 192.168.100.0/24 -> 192.0.2.10/32 portmap tcp/udp auto
  map if0 192.168.100.0/24 -> 192.0.2.10/32
  bimap if0 192.168.100.1/32 -> 192.0.2.10/32
  map if0 172.16.0.0/16 -> 192.0.2.12/32 portmap tcp/udp auto
  map if0 172.16.0.0/16 -> 192.0.2.12/32
  bimap if0 172.16.0.1/32 -> 192.0.2.12/32

All of the outgoing from the 192.168.100.0/24 block gets translated to
192.0.2.10. All of the incoming to 192.0.2.10 not associated with an
existing connection gets passed to 192.168.100.1. The same thing goes
for the 172.16.0.0/16 block except it gets translated to
192.0.2.12. Isn't that what you wanted?
-- 
Crist J. Clark                     |     [EMAIL PROTECTED]
                                   |     [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/    |     [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to