"Crist J. Clark" wrote:

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

Oh, now I see that ipnat coming with 3.5-STABLE does not support 'bimap'
and 'auto'. Bad luck.

However, thank you for pointing me to the right direction.
I'll switch to 4.5-STABLE and try ipnat then.

Eugene

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

Reply via email to