Subject: RE: IPNAT question
To: 'yvin Halfdan Thuv' <tech-net@netbsd.org>
From: Bruce Martin <brucem@cat.co.za>
List: tech-net
Date: 04/12/2001 11:07:25
Yes, very easily, have a look at the Networking section of the NetBSD
handbook, at www.netbsd.org
  -----Original Message-----
  From: tech-net-owner@netbsd.org [mailto:tech-net-owner@netbsd.org]On
Behalf Of yvin Halfdan Thuv
  Sent: 12 April 2001 10:59
  To: tech-net@netbsd.org
  Subject: IPNAT question


  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


begin 666 ATT00015.htm
M/"%$3T-465!%($A434P@4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N,"!4
M<F%N<VET:6]N86PO+T5.(CX-"CQ(5$U,/CQ(14%$/@T*/$U%5$$@2%144"U%
M455)5CTB0V]N=&5N="U4>7!E(B!#3TY414Y4/2)T97AT+VAT;6P[(&-H87)S
M970]:7-O+3@X-3DM,2(^#0H-"@T*/$U%5$$@8V]N=&5N=#TB35-(5$U,(#4N
M-3 N-#$S-"XV,# B(&YA;64]1T5.15)!5$]2/@T*/%-464Q%/CPO4U193$4^
M#0H\+TA%040^#0H\0D]$62!B9T-O;&]R/2-F9F9F9F8^#0H\1$E6/CQ34$%.
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