On Tue, 27 Feb 2001, Nick Croft wrote:

> I have `old_box' with a dialup ISP which I'm still using for mail etc, 
> and `new_box' onto which I'm slowly ftp-ing what I want to keep.
> 
> Naive question is, what sort of configuration I need to do to connect 
> new_box to the net? Would it involve route -add host gw ?
> 
> new_box is 172.16.4.1
> old_box is 172.16.4.2
> 
> Would it go like:
> 
>       /sbin/route add -host ISPnumber gw 172.16.4.2

Nope, this will not work.

Since you are using private {non-routable} Ip addresses on your internal
network, you have to do IP Masquerading on your outbound interface.

If you've never done this before it can be somewhat interesting to setup -
wiser heads than mine can help with that.

> and would I have to change this each time I dialup depending on the 
> remote address I get from the ISP ?

Nope - once you get Masquerading setup, you set your old_box as the
gateway {route add default 172.16.4.1} and just let the other box handle
it. The masquerading script should handle all changes required.

DaZZa


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to