Nick Croft was once rumoured to have said:
> 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 ?
if you want to use old_box as a router/gateway...
You need to configure old_box with a either a 2.2 kernel with ipchains
and Masquerading, or with a 2.4 kernel with iptables and full NAT
support.
You'll need to tell old_box to not forward everything, and to masquerade/NAT
connections from your subnet to the world.
> 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
NO NO NO NO NO!
On new_box, you'd do a:
/sbin/route add default gw old_box
This tells new_box that it needs to contact old_box to get to places
it doesn't have an explicit route for.
> and would I have to change this each time I dialup depending on the
> remote address I get from the ISP ?
No. Because old_box gets the IP data dynamically, and new_box doesn't
need to know that much detail.
> I don't want to blow anythin up, which is why I'm asking first.
There are MANY HOWTOs and FAQs on the subject. Look for Linux +
Masquerade.
C.
--
--==============================================--
Crossfire | This email was brought to you
[EMAIL PROTECTED] | on 100% Recycled Electrons
--==============================================--
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug