Subject: Re: IPNAT question
To: =?iso-8859-1?Q?=D8yvin?= Halfdan Thuv <netbsd@online.no>
From: Neil Ludban <nludban@columbus.rr.com>
List: tech-net
Date: 04/12/2001 07:33:52
You'll have to add a static route on the router so it knows it can
reach the 10.0.0.0 subnet through PC3 (192.168.0.30).  If you have
a lot of traffic from PC1 or PC2 to PC4, you'll want to add static
routes to those hosts as well.  Otherwise there's an extra step
where PC1 would send to it's default route (the router), which
would forward the packet to PC3.  One less step if PC1 knows to
send directly to PC3 to reach PC4.

	--Neil


> yvin Halfdan Thuv wrote:
> 
> would this work? :
> 
>                      internet
>                          |
>                      router(w2k)
>                   /      |      \
>                    PC1  PC2  PC3(*)
>                                \
>                                PC4
> 
> (*) netbsd with "net.inet.ip.forwarding=1" (routing)
> 
> With setup:
> router as 192.168.0.1  (netmask 255.255.255.0)
> PC1 as 192.168.0.10  (          --    ||    --           )
> PC2 as 192.168.0.20  (          --    ||    --           )
> PC3 as 192.168.0.30 and another ethernetcard as 10.0.0.1 (netmask
> 255.255.255.0 and 255.0.0.0)
> PC4 as 10.0.0.2 (netmask 255.0.0.0)
> 
> PC1, PC2 and PC3 "sees" internet. PC4 "sees" PC3 (X-server is run on
> PC4 and
> clients on PC3) but does not "see" internet.
> 
> Gateway on PC4 is set to 10.0.0.1, on PC3 'sysctl
> net.inet.ip.forwarding'
> says: 'net.inet.ip.forwarding=1'
> 
> would it teoretically be possible to setup PC4 to "see" internet?
> 
> --
> yvin