Hi Gary,
This is really relatively easy.
First make sure you do have network continuity between your machines.
Second configure each win98 machine to have a gateway address of the Linux box.
Third turn on Ip Forwarding in the Network Config.
Forth configure the IP Fordwarding/Masq.
I have pasted a copy of the ipfwadm that I use on boot up. Maybe it will
give you some idea.
--
robert
Gary Neff wrote:
> I have two computers setup on win98 (I know but thats what beta testing gets
> you) I have just built a p60 (all left over parts) to run linux as an
> internet server. Well not really a server what I want to do is allow both of
> my win98 computers to access the internet on my local dial up ISP which I
> have configured on Linux and utilizing my small LAN I would like to be able
> to access the net thru the linux computer and my LAN. Can someone direct me
> to the proper errata or help file. I am running Red Hat 5.0 on the P60 and
> dial up ppp is working well. Of course I am using windows networking for my
> other two computers.So I need to make sure the linux machine is part of the
> network and then allow my two win machines to go out thru the connection on
> the linux machine. Any replies would be appreciated. I am relativly new to
> linux and can install it and connect to the internet and am slowly finding
> my way around so I am looking for detailed help.
>
------------------------ cut here ----------------------------#!/bin/sh
#
# This rc file is to be placed in the /etc/rc.d/init.d/ipmasq.init
# It is used for initiating the ipfwadm rules for the dailin and LAN connection
# Using the SysV init method. This file is invoke at runnlevel 3. Place the
# symbolic link @S95ipmasq (-> /etc/rc.d/init.d/ipmasq.init} in /etc/rc.d/rc3.d
# and also at runlevel 5 (/etc/rc.d/rc5.d}. Since these are only the rules it
# is not necssary to give a kill squence. Which is a symbolic called @K95ipmasq
# and is usually placed at the runlevel in which you have designated.
#
# Source function library.
. /etc/rc.d/init.d/functions
if [ ! -f /etc/sysconfig/network ]; then
exit 0
fi
. /etc/sysconfig/network
if [ -f /etc/sysconfig/pcmcia ]; then
. /etc/sysconfig/pcmcia
fi
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
cd /sbin
# See how we were called.
case "$1" in
start)
# Thee setting were taken from the IPMasq-HOWTO
# Set the default policy
ipfwadm -F -p deny
# Set the dial-in network allowed
#ipfwadm -F -a m -S 192.168.100.0/24 -D 0.0.0.0/0
# Set a specific masq for ttyC0-7 dial-in *server*. The IP is assigned
by PPP
ipfwadm -F -a m -S 192.168.1.2/32 -D 0.0.0.0/0
# Set a specific masq for ttyC0-7 dial-in. The IP is assigned by PPP
ipfwadm -F -a m -S 192.168.1.100/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.101/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.102/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.103/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.104/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.105/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.106/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.107/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.108/32 -D 0.0.0.0/0
# office_two.ohiocounty.net
ipfwadm -F -a m -S 192.168.1.90/32 -D 0.0.0.0/0
# wrk_cdrb.ohiocounty.net
ipfwadm -F -a m -S 192.168.1.91/32 -D 0.0.0.0/0
# wrk_mma.ohiocounty.net
ipfwadm -F -a m -S 192.168.1.92/32 -D 0.0.0.0/0
# These are taken from the "ip_masquerade.faq" at ipmasq.home.ml.org
3 BUT they don't work and don't know where they got them from.
#ipfw ad bl deny all iface ${WAN_PORT_IP} from 0/0 to 0/0
#ipfw ad bl accept all iface ${WAN_PORT_IP} from ${WAN_PORT_IP} to 0/0
#ipfw ad bl accept all iface ${WAN_PORT_IP} from 0/0 to ${WAN_PORT_IP}
echo "IP Masquerading has been configured."
touch /var/lock/subsys/ipmasq
;;
stop)
rm -f /var/lock/subsys/ipmasq
;;
*)
echo "Usage: ipmasq {start|stop}"
exit 1
esac
exit 0
begin: vcard
fn: Robert Canary
n: Canary;Robert
org: Ohio County Networks
adr: 105 Southdale Dr.;;;Hartford;KY;42347;u S 0f A
email;internet: [EMAIL PROTECTED]
title: System Administrator
tel;work: 502/298-9331
tel;fax: 502/298-9330
note;quoted-printable:[EMAIL PROTECTED]=0D=0A=
[EMAIL PROTECTED]
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard