List Info

Thread: Basic IPNAT Question(s)




Basic IPNAT Question(s)
user name
2006-10-19 13:46:59
My simple config is below:

host1:
pcn0: 192.168.1.1/24
pcn1: 10.1.1.1/24
pcn2: 10.1.2.1/24

host2:
pcn0: 10.1.1.10/24

host3:
pcn2: 10.1.2.10/24

Obviously, host1 is the gateway, host2 is connected via
pcn1, and host3 
is connected via pcn2. 

pcn0 is considered to be the 'outside world' for this
exercise.

I need 192.168.1.10 to bimap to10.1.1.10, so I set the
following up in 
/etc/ipnat.conf:

bimap pcn0 10.1.1.10/32 -> 192.168.1.10/32

I have set 'ipnat=yes' and run /etc/rc.d/ipnat start. 
Everything seems 
to be running, but my external hosts can't ping that IP.

Do I need to alias 192.168.1.10 to pcn0?  Things seems to
work when I do 
that, but I am not sure that I am doing things correctly.

Also, what steps need to be taken to allow systems on pcn2
to reach 
10.1.1.10 via 192.168.1.10?  Do I need to set up NAT on pcn2
as well?

Thank you,

Michael

Basic IPNAT Question(s)
user name
2006-10-21 15:46:26
On Thu, Oct 19, 2006 at 09:46:59AM -0400, Michael Gorsuch
wrote:
> My simple config is below:
> 
> host1:
> pcn0: 192.168.1.1/24
> pcn1: 10.1.1.1/24
> pcn2: 10.1.2.1/24
> 
> host2:
> pcn0: 10.1.1.10/24
> 
> host3:
> pcn2: 10.1.2.10/24
> 
> Obviously, host1 is the gateway, host2 is connected via
pcn1, and host3 
> is connected via pcn2. 
> 
> pcn0 is considered to be the 'outside world' for this
exercise.
> 
> I need 192.168.1.10 to bimap to10.1.1.10, so I set the
following up in 
> /etc/ipnat.conf:
> 
> bimap pcn0 10.1.1.10/32 -> 192.168.1.10/32
> 
> I have set 'ipnat=yes' and run /etc/rc.d/ipnat start. 
Everything seems 
> to be running, but my external hosts can't ping that
IP.
> 
> Do I need to alias 192.168.1.10 to pcn0?  Things seems
to work when I do 
> that, but I am not sure that I am doing things
correctly.

Yes, you have to do that. This is so that other hosts on
192.168.1.0/24
knows that they can reach 192.168.1.10 via the pcn0 MAC
address
(i think mannually adding entries in the ARP tables of the
others hosts
on 192.168.1.0/24 would work too)
> 
> Also, what steps need to be taken to allow systems on
pcn2 to reach 
> 10.1.1.10 via 192.168.1.10?  Do I need to set up NAT on
pcn2 as well?

Yes, but just the bimap rule.

-- 
Manuel Bouyer <bouyerantioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la
difference
--
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )