On Sun, Feb 11, 2007 at 08:57:33AM +0900, [EMAIL PROTECTED] wrote:
> Hi
> if anybody can explain my lack-of-understanding I'd really appreciate it. 
> Thanks
> 
> 
> -------------------
> Network 192.168.0.0
> .
> 192.168.0.1  Machine
> 192,168.5.70 One
> .
> .
> 192.168.5.1  ADSL Router
> .          Internet
> -------------------
> 
> Machines in 192.168.0.0 network have default GW 192.168.0.1
> They can interact (ping etc) with machines in   192.168.5.0 network
> 
> Machines in 192.168.5.0 metwork have default GW 192.168.5.1
> They can interact with the 192.168.0.0 machines
> 192.168.0.0     jupiter.home    255.255.255.0   UG    0      0        0 br0
> and with the internet
> default         hawood.home     0.0.0.0         UG    0      0        0 br0
> 
> Of course MachineOne, the GW machine for 192.168.0.0 can see out of 
> 192.168.5.1
> 
> How do machines in the 192.168.0.0 network get to see the internet out of 
> 192.168.5.1 gateway?

The way I think of it is pretend your a packet on machine one, with source of
192.168.0.x and I am trying to get to 1.1.1.1 (any internet address will do),
where do I need to go. via the adsl router.  So machine one will need 
1) forwarding on
2) a for the internet to the adsl router (in the above example a simple default
route via 192.168.5.1 would suffice)
3) the adsl router need to know about the return route, so it will need a route
of 192.168.0.0/24 via 192.168.5.70

This is presuming you have nat'ing on the ADSL router ...



> 
> [br0 is irrelevant, it could be eth0, it's used by openvpn]
> James
> 
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 

Attachment: signature.asc
Description: Digital signature

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to