Subject: IPNAT question
To: None <tech-net@netbsd.org>
From: =?iso-8859-1?Q?=D8yvin_Halfdan_Thuv?= <netbsd@online.no>
List: tech-net
Date: 04/12/2001 10:48:28
This is a multi-part message in MIME format.

------=_NextPart_000_0026_01C0C33E.1B9656C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

would this work? :

                     internet
                         |
                     router(w2k)
                  /      |      \
             PC1  PC2  PC3(*)
                                   \
                                   PC4


(*) netbsd with "net.inet.ip.forwarding=3D1" (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=3D1'

would it teoretically be possible to setup PC4 to "see" internet?

--
=D8yvin

------=_NextPart_000_0026_01C0C33E.1B9656C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>would this work?=20
:<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
internet<BR>&nbsp;&nbsp;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ding=3D1" =
(routing)<BR><BR>With=20
setup:<BR>router as 192.168.0.1&nbsp; (netmask 255.255.255.0)<BR>PC1 as=20
192.168.0.10&nbsp; =
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
--&nbsp;&nbsp;&nbsp; ||&nbsp;&nbsp;&nbsp;=20
--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>PC2 =
as=20
192.168.0.20&nbsp; =
(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
--&nbsp;&nbsp;&nbsp; ||&nbsp;&nbsp;&nbsp;=20
--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>PC3 =
as=20
192.168.0.30 and another ethernetcard as 10.0.0.1 (netmask 255.255.255.0 =
and=20
255.0.0.0)<BR>PC4 as 10.0.0.2 (netmask 255.0.0.0)<BR><BR>PC1, PC2 and =
PC3 "sees"=20
internet. PC4 "sees" PC3 (X-server is run on PC4 and<BR>clients on PC3) =
but does=20
not "see" internet.<BR><BR>Gateway on PC4 is set to 10.0.0.1, on PC3 =
'sysctl=20
net.inet.ip.forwarding'<BR>says: =
'net.inet.ip.forwarding=3D1'<BR><BR>would it=20
teoretically be possible to setup PC4 to "see"=20
internet?<BR><BR>--<BR>=D8yvin</FONT></DIV></BODY></HTML>

------=_NextPart_000_0026_01C0C33E.1B9656C0--