setting up win95 box as a gateway for linux without usin Wingate!

anyone know how to setup a 95 box to be a gateway for a linux box on my network wifout usin wingate?  surely someone has done this
csa1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jhanceCommented:
Win95 can't do this on it's own.  It doesn't have routing capabilities.  This is one of the things that WinGate (and other similar program) do. Windows NT will do this without WinGate but WinGate works better than the stock NT stuff.

The real answer is to let your linux box be the gateway for the Win95 box.  Linux does this without even "breathing hard".  You can even enable the firewall stuff and have great security as well.
0
csa1Author Commented:
i tried wingate and didn't like it to be honest....ok what would i have to do to make my linux box be the gateway?
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

csa1Author Commented:
being pointed to the how-to's and faqs doesn't help cause they are written for a linux expert and not a relative beginner like myself.
0
unicorntechCommented:
OK to answer this I will probably need to know a little about your setup there. However as a general rule you will need to set a defaul tgateway on the linux box you wish to be the gateway for the network.

The command for this is as follows.

route add default gw (IP ADDRESS) netmask 0.0.0.0 metric 1

The (IP ADRESS) needs to be the IP of your providers default
gateway. If this is not for an internet setup I will need more info to help.

After this all other machines on your network need to be told that the linux box is the deafult gateway for your network. How to do this will vary depending on what other platforms you run on the LAN.

Try this out and let me know if you need more help.

Regards,

Jason
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahoffmannCommented:
unicorntech, I would also do it this way ;-)
but did csa1 wnat to have his W95 as gateway?
0
unicorntechCommented:
oops - you are right. That'll teach me to read the question properly :-)

0
csa1Author Commented:
yep i would like to have my 95 box as a gateway but i could also load up NT server on one of my machines if that mite make things easier...hell i think just making the network card work in the linux box is gonna be tuff enuff.  What do you think>
0
ahoffmannCommented:
If you're used to either Linux or NT, it doesn't matter which one becomes the gateway.
I suggest using Linux, because setup and modification of the gateway/router functionality can be done with a script **and**
doesn't need a reboot ;-))
0
csa1Author Commented:
i hate to sound like a stuck record....but how would i do it with linux and a script?....like i said....relative newbie to linux here....:)
0
ahoffmannCommented:
see unicorntech's answer

Depending on your Linux distribution, you edit files in /etc .
Probably you have a /etc/rc.config for a centralized setup, if not there are files in /etc/rc.d or /etc/rc2.d
This is all necessary for setup at boot time.

to test your configuration you just need to setup your interface (eth0) and the routing. In addition to unicorntech's answer I highly recommend to use a route four your local net, like
 
   route add -net (your localnet IP) netmask 255.255.255.0

You may also look if you have a script called  netcfg (or netconfig) which will do some things automatically for you.

It's not a klick&type method like on NT, but the terms are easy to understand (on NT they named it Gateway where they meant router)-: You also can disable your interface (see ifconfig) if necessary.
If you want do it on Linux, please read man-pages about
  ifconfig, route, netstat
Some handy commands:
  ifconfig
  netstat -rn   # (on Linux: same result as route)
  route add|del ...

On NT the commands are simmilar (in addition to all the Windows):
  ipconfig -all
  netstat -rn
  route add|del ...
0
csa1Author Commented:
i have gotten references as to Wingate bein a good thing to do this with under 95....anyone ever pulled that off successfully?
0
unicorntechCommented:
I've done this before. I still feel ahoffmann and myself have the best way of doing it but let me know if you would prefer wingate and I will post the config information you need to do. Or you could post tihs question in the win95 networking topic area and get someone like smeebud or dew_associates to answer it as this is omre of a win95 question.

Either way, one of us will be able to help you.

Regards,

Jason
0
ahoffmannCommented:
I'm also interested in the wingate solution, just for information.

Could you please email to hoagascht@gmx.net (win95 topic is too busy :)
0
csa1Author Commented:
ok guys i think  i am getting close...i got all my boxes...one booting 95 and redhat 4.2, one with 95 and one with redhat 5 all talking to each other...i can ping all of them and vice versa along with telnet and ftp to and from all 3 machines....so if i want the machine with the modem to be the gateway....i add the following...route add default gw (IP ADDRESS) netmask 0.0.0.0 metric 1

The (IP ADRESS) needs to be the IP of your providers default
gateway. If this is not for an internet setup I will need more info to help.

to the ethernet card of the machine with the modem rite?  I use ibm.net and i know they have a default gateway because i get it on my remote messages when i connect to them under linux...i have it written down at home....would this be the default gateway i need to enter in the above command?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.