FreeBSD multi-homed w/ipnat

Peter Kieser pfak at telus.net
Fri Feb 18 11:05:26 GMT 2005


Dick Hoogendijk wrote:

>On 18 Feb Peter Kieser wrote:
>  
>
>>vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>>       inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
>>       inet6 fe80::211:d8ff:fe3d:564a%vr0 prefixlen 64 scopeid 0x3
>>       ether 00:11:d8:3d:56:4a
>>       media: Ethernet autoselect (100baseTX <full-duplex>)
>>       status: active
>>map dc0 192.168.1.0/24 -> 0/32
>>map dc1 192.168.2.0/24 -> 0/32
>>    
>>
>
>I only seee 192.168.1.1 defined. Is this a typo or is there inof
>missing?
>
>  
>
The map with the CIDR prefix only specifies what IP addresses the NAT 
will masquerade for, still doesn't explain why 192.168.1.0/24 masquarde 
fails to work. You can specify the subnet mask for 192.168.1.1 as 
255.255.254.0 to cover both those blocks, which is a 192.168.0.0/23.




More information about the freebsd-questions mailing list