Hi,

        I just installed Debian by floppy on an old 386SX20 that I plan to make
the gateway to my home LAN.  (right now my gateway is a P60 that dual
boots, so it's a pain in the butt for others in the house if it is in
the wrong OS ;-)

        Anyhow, I used the setup app "pppconfig" to get everything configured,
that's fine ;-) it connects ok.

        I have an ethernet card configured for the box on my home LAN, and it
sees all the other boxes fine (can telnet in and out and stuff).  So,
that's good.

        The "pon" thing works fine, it connects when I run it.  But that's as
far as I have gotten.

        So, the stuff I need to figure out how to do now are the following:

1) get pon to come run from the time the box boots, and redial/reconnect
if it looses carrier or get's a busy signal, etc...  If this box is on,
I want the modem connected.  Not sure what to do here, anyone got a
script or two I could use, and tell me where they go?

2) change the default gateway in this box to be ppp0 instead of eth0 (I
routed it through my current LAN and other gateway to grab a couple
packages)  Not sure where this is exactly, what should I be looking
at/for?

3) Stick the following in some  rc.d somewhere to run at boot time:
echo "ip_masq 192.128.1.4"
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_masq_raudio.o
/sbin/modprobe ip_masq_irc.o
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
/sbin/ifconfig eth0 192.168.1.4
/sbin/route add -net 192.168.1.0
/sbin/ipfwadm -A in -i -S 0.0.0.0/0
/sbin/ipfwadm -A out -i -D 0.0.0.0/0
But where should that go?  the rc.d stuff looks a little different in
Debian that what I am use to.

I think that's it..  After that I should be able to set the default
gateway on all my boxes over from 192.128.1.2 to 192.138.1.4 and be all
set...

Any help greatly appreciated! ;-)

-- 
"Robert W. Current" <[EMAIL PROTECTED]> - email
http://chem20.chem.und.nodak.edu     - work stuff
http://www.current.nu                - personal web site
http://freshmeat.net                 - editorial coordinator
"Hey mister, turn it on, turn it up, and turn me loose." - Dwight Yoakam

Reply via email to