Trying to get my Linux box to be a gateway for my Win95 box...need help

Trying to get my Linux box to be a gateway for my Win95 box...need help

Post by Ben Greea » Mon, 16 Feb 1998 04:00:00



First of all, thanks to all who have offered me advice so far...

I now have ethernet talking and am trying to get over the final
hurdle (I hope!)

I can telnet to linux box from win95 box, but I can't telnet to the
outside world, even though linux will, and I used IP addr.

I've compiled the kernel with IP/Fowarding (in the kernel, not a
module).

I have the win95 box set with 192.168.1.1 as it's gateway,
and if I telnet to that addr from the win95 box, then I get
my linux box and can log in...

Heres some diagnostics that might help...

shamen:~$ ifconfig -a
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 coll:0

eth0      Link encap:Ethernet  HWaddr 00:40:05:41:00:5E
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:535 errors:0 dropped:0 overruns:0 frame:0
          TX packets:213 errors:0 dropped:0 overruns:0 carrier:0 coll:0
          Interrupt:11 Base address:0x6100

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:206.165.19.66  P-t-P:206.165.11.32
Mask:255.255.255.0
          UP POINTOPOINT RUNNING  MTU:552  Metric:1
          RX packets:1256 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1394 errors:0 dropped:0 overruns:0 carrier:0 coll:0

shamen:~$

shamen:~$ netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
ts30.phx.primen *               255.255.255.255 UH      552 0          0
ppp0
192.168.1.0     *               255.255.255.0   U      1500 0          0
eth0
loopback        *               255.0.0.0       U      3584 0          0
lo
default         ts30.phx.primen 0.0.0.0         UG      552 0          0
ppp0
shamen:~$

shamen:~$ netstat -i
Kernel Interface table
Iface   MTU Met  RX-OK RX-ERR RX-DRP RX-OVR  TX-OK TX-ERR TX-DRP TX-OVR
Flags
lo     3584   0     34      0      0      0     34      0      0      0
BLRU
eth0   1500   0    546      0      0      0    214      0      0      0
BRU
ppp0    552   0   1258      0      0      0   1402      0      0      0
PRU
shamen:~$

Any help will be greatly appreciated...

Ben

--

Author of ScryMUD:  mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html

 
 
 

Trying to get my Linux box to be a gateway for my Win95 box...need help

Post by William Juli » Tue, 17 Feb 1998 04:00:00




Quote:> First of all, thanks to all who have offered me advice so far...

> I now have ethernet talking and am trying to get over the final
> hurdle (I hope!)

> I can telnet to linux box from win95 box, but I can't telnet to the
> outside world, even though linux will, and I used IP addr.

> I've compiled the kernel with IP/Fowarding (in the kernel, not a
> module).

> I have the win95 box set with 192.168.1.1 as it's gateway,
> and if I telnet to that addr from the win95 box, then I get
> my linux box and can log in...

Have you added the IPmasq rule?

eg:
ipfwadm -F -p deny
ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

--
         _,'|            _.-''``-...___..--';
        /, \'.      _..-' ,      ,--...--'''

        `-,;'              ;   ; ; http://www.catmanor.com/moonbeam/
  __...--''     __...--_..'  .;.'  vi is my shepherd; i shall not font.
 (,__....----'''      (,..--''    
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

 
 
 

Trying to get my Linux box to be a gateway for my Win95 box...need help

Post by Ben Greea » Tue, 17 Feb 1998 04:00:00





> > First of all, thanks to all who have offered me advice so far...

> > I now have ethernet talking and am trying to get over the final
> > hurdle (I hope!)

> > I can telnet to linux box from win95 box, but I can't telnet to the
> > outside world, even though linux will, and I used IP addr.

> > I've compiled the kernel with IP/Fowarding (in the kernel, not a
> > module).

> > I have the win95 box set with 192.168.1.1 as it's gateway,
> > and if I telnet to that addr from the win95 box, then I get
> > my linux box and can log in...

> Have you added the IPmasq rule?

> eg:
> ipfwadm -F -p deny
> ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

I hadn't, but now I have.  Read that whole IP-Masquerading thing too..
It
still doesn't work..and the worst part is I have no idea which part is
failing...  Fowarding?  Perhaps I didn't compile the kernel right?  (I
followed all the directions....)

Does anyone have any ideas on how to test things?  Is there a way to ask
the fowarder (which daemon is that anyway...the kernel itself?) to dump
a bunch of stuff into a log?

The only command I've had give me any kind of failure notice was
depmod

Quote:> shamen:/etc/rc.d#   /sbin/depmod -a

*** Unresolved symbols in module /lib/modules/2.0.30/fs/smbfs.o
*** Unresolved symbols in module /lib/modules/2.0.30/fs/vfat.o
*** Unresolved symbols in module /lib/modules/2.0.30/misc/appletalk.o
*** Unresolved symbols in module /lib/modules/2.0.30/misc/ipx.o
*** Unresolved symbols in module /lib/modules/2.0.30/net/dlci.o
*** Unresolved symbols in module /lib/modules/2.0.30/net/dummy.o
*** Unresolved symbols in module /lib/modules/2.0.30/net/ibmtr.o
*** Unresolved symbols in module /lib/modules/2.0.30/net/slip.o
*** Unresolved symbols in module /lib/modules/2.0.30/block/linear.o
*** Unresolved symbols in module /lib/modules/2.0.30/block/raid0.o
shamen:/etc/rc.d#

I doubt these are good things for it to be saying..but they don't seem
to fatal...

Also, aside from the mini-howto, any other docs that might be helpful?

Thanks again,
Ben

> --
>          _,'|            _.-''``-...___..--';
>         /, \'.      _..-' ,      ,--...--'''

>         `-,;'              ;   ; ; http://www.catmanor.com/moonbeam/
>   __...--''     __...--_..'  .;.'  vi is my shepherd; i shall not font.
>  (,__....----'''      (,..--''
> perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

--

Author of ScryMUD:  mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html
 
 
 

Trying to get my Linux box to be a gateway for my Win95 box...need help

Post by James Ros » Tue, 17 Feb 1998 04:00:00


I have IP Masquerading running on my PC box and have no problems connecting
to the outside world from any of the other machines on my ethernet.  I just
followed the IP masquerading directions and had no problems.  It is a good
idea to compile the latest kernal 2.032 so you can avoid all the patches
etc...

did you add the commands

/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
.
.
.
(there are ones for cuseeme, realaudio etc)
before the ipfwadm commands....

Hope this helps

 
 
 

Trying to get my Linux box to be a gateway for my Win95 box...need help

Post by Edward J Kalen » Thu, 19 Feb 1998 04:00:00







>> > First of all, thanks to all who have offered me advice so far...

>> > I now have ethernet talking and am trying to get over the final
>> > hurdle (I hope!)

>> > I can telnet to linux box from win95 box, but I can't telnet to the
>> > outside world, even though linux will, and I used IP addr.

>> > I've compiled the kernel with IP/Fowarding (in the kernel, not a
>> > module).

>> > I have the win95 box set with 192.168.1.1 as it's gateway,
>> > and if I telnet to that addr from the win95 box, then I get
>> > my linux box and can log in...

>> Have you added the IPmasq rule?

>> eg:
>> ipfwadm -F -p deny
>> ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

>I hadn't, but now I have.  Read that whole IP-Masquerading thing too..
>It
>still doesn't work..and the worst part is I have no idea which part is
>failing...  Fowarding?  Perhaps I didn't compile the kernel right?  (I
>followed all the directions....)

Are you running Redhat? I've seen several posts about IP Forwarding
having to be enabled at boot time by a command along the lines of
"echo 1 > /proc/net/ip_forward" though I am not sure of the exact
destination in the /proc filesystem.
---------------------------
Ed

 
 
 

Trying to get my Linux box to be a gateway for my Win95 box...need help

Post by Jim Buchan » Thu, 19 Feb 1998 04:00:00





: > I can telnet to linux box from win95 box, but I can't telnet to the
: > outside world, even though linux will, and I used IP addr.
: >
: > I've compiled the kernel with IP/Fowarding (in the kernel, not a
: > module).
: Are you running Redhat? I've seen several posts about IP Forwarding
: having to be enabled at boot time by a command along the lines of
: "echo 1 > /proc/net/ip_forward" though I am not sure of the exact
: destination in the /proc filesystem.

I trimmed pretty heavily, sorry if I messed up any attributions...

Which kernel are you using? The IP Masquerade Resource
(http://www.wiznet.ca/~ambrose/) suggests 2.0.33 Since I am running
RedHat 4.0 which came with 2.0.18, I downloaded 2.0.33 and compiled in
all the recommended options for IP Masquerade. It worked without
having to do the "echo 1", which I too have heard of.

I suppose that I got lucky, but IP Masquerade worked the first try for
me. Cosmic justice, perhaps? To make up for the nightmare I endured
setting up my ethernet cards? :-)


================= http://members.iquest.net/~jbuchana ====================
"Blink your eyelids periodically to lubricate your eyes."
 -HP "Environmental, Health & Safety Handbook for Employees."
==================== http://hybiss.delcoelect.com ========================

 
 
 

Trying to get my Linux box to be a gateway for my Win95 box...need help

Post by John D. Hard » Sat, 21 Feb 1998 04:00:00


The latest kernel is 2.0.33, unless they've released 2.0.34 - see
ftp.kernel.org for the source.

The depmod errors may be because you didn't clean out your modules
directory before rebuilding your kernel. Try deleting everything from
/lib/modules/whatever-kernel-version (or just rename the directory if
you're the paranoid type :), then cd to /usr/src/linux and run "make
modules-install".

For your firewall and IP-masquerate/gateway questions, take a look at
http://www.wolfenet.com/~jhardin/ipfwadm.html for a tool that may make
managing things easier for you.

--

 pgpk -a finger://gonzo.wolfenet.com/jhardin    PGP key ID: 0x41EA94F5
 PGP key fingerprint: A3 0C 5B C2 EF 0D 2C E5  E9 BF C8 33 A7 A9 CE 76
-----------------------------------------------------------------------
   39 days until Netscape releases source code

 
 
 

1. Trying to network a Win95 box to a linux box

I am pretty new to linux

I built a separate computer for linux. Viper MB,AMDK5 75Mhz,16Meg
Ram,3.2Gig Maxtor HD. I share a Monitor, Keyboard and mouse via a switch
box on my desk with my win95 box.

My goal: I would like to set up these two computers (linux-win95) so I
can share files between the two as peers. I now have a modem in both
computers, but I would like to use the Linux box as my connection to the
internet and maybe run the Modem as a Proxy for both computers (is this
right)?

So far I've been able to set up a connection to my ISP and browse the
web (Lynx) and get my mail (fetchmail) on the linux box. Things are
working pretty good so far.

A have two pci network cards I would like to use for the network. They
are N32PCI Combo Cards. I can configure the card in the windows 95
machine with no problems, however, when I boot my linux box, I get the
error:

Warning: Unknown PCI Device (8e2e:3000) see include/linux/pci.h

I am using the pre-complied kernel of Slackware 3.3 Kerner v 2.0.30.

I have been all over sunsite.unc.edu/LDP and I just don't understand too
much of what they are telling me.

I'm pretty sure I have to recompile my Kernel for the PCI Device, but
that is all I know.

I started this project 2 days ago and haven't gotten much sleep. 14
hours to get my ISP DNS to work (it all came down to one word in
resolv.conf defaultroute).

I have read some information about samba (mostly questions) is this a
good thing?

I will take advise from anybody.

Thanx for your time,

Jeff

2. NIM mkssyb image install of 43p 604e 332 Mhz - settings help required

3. setting up win95 box as gateway for linux box

4. Backup eines Verzeichnisses?

5. How to connect a linux box with a win95 box or OS/2 box?

6. Can't find the CD-ROM

7. Access Internet from Win95 box using Solaris 2.4 box as IP gateway

8. Anonymous Binding?

9. how to make a freebsd box use a gateway, NOT make the box a gateway!

10. HELP-Trying to telnet between linux and win95 boxes

11. can't setup tcp/ip between linux box and win95 box

12. Networking Linux Box to Win95 Box using ethernet connection and Combo card

13. can't setup tcp/ip network between win95 box and linux box