I have a Linux box (Slackware 3.5, kernel 2.0.34) networked to three win95
clients.
There is only ONE network card installed in the Linux box and not two.
So far I have been able to get the Linux box connected using minicom. I am now
trying to configure IP masquerading to get the clients connected to the
net but
without success. This is what I have done so far:
1) added these lines to /etc/rc.d/rc.modules
/sbin/depmod -a
/sbin/modprobe ip_masq_cuseeme
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_quake
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_vdolive
2) added these lines to /etc/rc.d/local
#note: IP address of Linux box is 192.168.1.11,
#and of win95 machines 192.168.1.3, 192,168.1.4,
#192.168.1.5)
ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0 up
# should this be 192.168.1.11 as per Linux IP
# or 192.168.1.1 as another IP for "gateway"?
route add -net 192.168.1.0 netmask 255.255.255.0 eth0:1
3) with <netstat -rn> command I get the following
Kernel IP routing table
192.168.1.0 <space> 0.0.0.0 <space> 255.255.255.0 <space> U <space> 1500
<space> 0 <space> 0<space> eth0:1
192.168.1.0 <space> 0.0.0.0 <space> 255.255.255.0 <space> U <space> 1500
<space> 0 <space> 0<space> eth0
127.0.0.0 <space> 0.0.0.0 <space> 255.0.0.0 <space> U <space> 2584 <space>
0 <space> 0<space> lo
0.0.0.0 <space> 192.168.1.1 <space> 0.0.0.0 <space> UG <space> 1500 <space>
0 <space> 0 <space> eth0
4) with <route> command I get the following
Kernel IP routing table
192.168.1.0 <space> * <space> 255.255.255.0 <space> U <space> 0 <space> 0
<space> 9<space> eth0:1
192.168.1.0 <space> * <space> 255.255.255.0 <space> U <space> 0 <space> 0
<space> 1<space> eth0
localnet<space> * <space> 255.0.0.0 <space> U <space> 0 <space> 0 <space> 2
<space> lo
default <space> gateway.hostname <space> 0.0.0.0 <space> UG <space> 1
<space> 0 <space> 0 <space> eth0
5) with <ifconfig> command I get the following
lo <space> Link encap: Local Loopback
<new line> inet addr: 127.0.0.1 Bcast: 127.255.255.255 Mask: 255.0.0.0
<new lines> blah blah
eth0 <space> Link encap: Ethernet Hwaddr 00:C0:A8:35:D8:FD
<new line> inet addr: 192.168.1.11 Bcast:192.168.1.255 Mask:
255.255.255.0
<new lines> blah blah
eth0:1 <space> Link encap: Ethernet Hwaddr 00:C0:A8:35:D8:FD
<new line> inet addr: 192.168.1.1 Bcast 192.168.1.255 Mask:
255.255.255.0
<new lines> blah blah
6) these lines were also added to /etc/rc.d/rc.local
ipfwadm -F -p deny
ipfwadm -F -a m -S 192.168.1.3/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.4/32 -D 0.0.0.0/0
ipfwadm -F -a m -S 192.168.1.5/32 -D 0.0.0.0/0
Sorry if I provided too much info. I have read numerous articles and the
latest HOWTO
but each source has a different method which confuses me more than ever.
If somebody could help point to the right direction.
TIA
Shaggy
Bangkok, Thailand