LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-08-2004, 04:42 PM   #1
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Rep: Reputation: 15
Accessing internet from win98 through a linux box


I would like to point out, that a windows machine networked to a linux box, can not and WILL NOT access the internet, file sharing ok, but as for internet access? FORGET IT!
 
Old 02-08-2004, 06:34 PM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I do it all the time. I have a pc router loaded with slackware 9.1. eth0 goes to the internet and eth1 goes into my hub. Windows and linux can get on after that. Works beautifully for me. Was this just a statement or would you like some help on this?
 
Old 02-08-2004, 06:53 PM   #3
rhibs01
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
Thumbs up Win98, Win9x can use internet from Linux

We have a network of PCs running Windows 98, and ME that connect to a samba Server and also all access the internet. Works smoothly with squid.
 
Old 02-08-2004, 08:28 PM   #4
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Most distros will ask you flat out if you want it to be your internet gateway, as do the *BSDs as well. They share much better than Windows 98 ever will (2000 and XP will do ok out of the box for light duty, though). Why don't you try again. You'll be glad you did.
 
Old 02-08-2004, 09:54 PM   #5
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Original Poster
Rep: Reputation: 15
no way, I've installed, re-installed, and installed RH9 again and again, everytime I try something that someone suggested, it mucks up the system.

Just as an explanation of my setup, I use RH9 with Kde, the linux box uses and internal modem, and a 100Mb/s etherlink card, the 98 machine also has the same card, I can access the internet using the linux box (after a clean reinstall), and I have successfully setup DHCP and the win98 machine can see the shared files on the linux box using samba, but no matter how much I try and play about with the linux box settings, the win98 machine can not access the internet, even with iptables and the firewall disabled on the linux box, which takes me back to the home networking wizard, make it simple and people can do it, make it impossible and no-one can do it.
 
Old 02-09-2004, 07:25 AM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Its up to you if you don't want to use that configuration, but you may want to check a couple of little things just in case you're almost there.

Have you tried to ping a site from the outside world? If so, how? Did you ping a domain name? Or an IP address? If you pinged a domain name, try pinging the site's IP. I usually use www.yahoo.com. They have a fast site and they don't have discovery blocked. If you can ping an IP but not a site name, you need to enter a nameserver into your TCP/IP settings for the '98 box. Have you tried any other apps besides your browser to access the net with the '98 machine?

Dumb question, but is TCP/IP installed?

In your TCP/IP settings on the '98 machine, do you have the IP of the RH box entered as a gateway?

Of course, there are other distros......I got my first Mandrake 9.1 cds from a guy in Western Canada, calling himself CHGuy, for $5/cd - enough to cover the shipping and burning - when I had dialup and no burner. They can be had...

Good luck if you try. Post if you keep having problems.
 
Old 02-09-2004, 10:25 AM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Go to freshmeat.net and download arno-iptables. It is a simple to set iptables script that will let you setup a firewall and allow routing. I have it install on a Slackware 9.0 PC that I use as a router. If you need help setting it up let me know and I'll send you a config file that will work.
 
Old 02-09-2004, 10:36 PM   #8
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Original Poster
Rep: Reputation: 15
Everything is working between the win98 machine and the linux box, all except internet access, the linux box connects to the internet with no problem, the win98 machine connects to the linux box and can share files and folders using samba, with no problem, that means that TCP/IP is configured properly, but it seems to be impossible that the win98 machine can not, and will not use the linux box to connect to the internet.

I looked for the script called 'arno-iptables' it don't exist on that website, so I downloaded a few GUI aided iptable scripts and neither of them work, they can not be compiled or, they just don't work with my version of Linux RH9.

I've spent nearly 2 weeks searching the net for a wizrd type software, much similar to the windows home networking wizard, that can automatically setup the network to give the win98 machine access to the internet, but there is nothing out there.

So, it seems that I'll have to keep switching to winxp so that the win98 machine can successfully access the internet.
 
Old 02-09-2004, 10:47 PM   #9
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Have you checked your DNS settings in Win98? You say you can't access the internet. You can try and ping 216.239.37.99 from your win98 machine. This is google.com. If you successfully ping that IP address then that means you are getting to the internet, but your DNS settings are improperly set somewhere and hostnames cannot be resolved. Let us know what happens.
 
Old 02-10-2004, 09:00 AM   #10
AfterBurn
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 24

Rep: Reputation: 15
dude, linux is one of the best OS's out there for hosting things. as u can see by my profile i also use RH9 and i have been able to route connections through it from win98. if all else fails, just load a proxy and u have to use software w/ proxy support.
 
Old 02-10-2004, 09:37 AM   #11
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Original Poster
Rep: Reputation: 15
The only ping I can get a result from is:-

192.168.0.1
127.0.0.1

on both machines and no-where else on the win98 machine.

I could paste the contents of the dhcpd.conf and the iptables file(s) here, but my wife wants to play bingo online, and the only way she can do that on the other computer is through windowsxp, I'll paste it as a reply later in the day, when I can get to use the linux side.
 
Old 02-10-2004, 09:39 AM   #12
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Suggestions...

First off, it's not an issue between Win and Linux... The issues you are dealing with are networking issues and are NOT OS related.

You're issue is probably that you are not setting up your network correctly or that you have not set up your Linux box to route traffic for your network.

If you are looking for a happy little GUI from which you will manage everything, I highly recomend Webmin. It is a very versitle utility with happy little GUIs for about anything you would want to do, including setting up your routing and firewalling. It can be downloaded from webmin.com and is a free utility released under the GPL. It has some good documentation and even has a single click update feature for itself.

Please do not think that it is a Linux issue as the majority of us here are doing exactly what you are claiming can't be done. I for one have 2 internet gateways for my network and each of them are a routing Linux box. Internally I'm running everything from Win95 - XP and several versions of *nix. I can say without a doubt that my Linux "routers" are far more robust and secure than any Win machine using ICS.

If you honestly want help are are not just posting to vent, I'm sure that we can help you get thing working properly. Given your previous posts you have a tendancy of trolling, so if your purpose is simply to vent, don't bother with a reply.

Thanks

MrKnisely
 
Old 02-10-2004, 09:43 AM   #13
jazernorth
Member
 
Registered: Jan 2004
Location: Green Bay
Distribution: RedHat 8.0, LFS-5.0
Posts: 100

Rep: Reputation: 15
Do a search on www.google.com/linux for iptables masquerading. Find documentation regarding NAT, which is the next generation of masquerading. It will then enable you to set the Linux server up as a router.

I have mutliple computers using my Linux server as a router/gateway. Windows, Linux, and an AudioTron.

Enjoy.

JN
 
Old 02-10-2004, 11:25 AM   #14
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Original Poster
Rep: Reputation: 15
Here's the output from dhcpd -d -f :-

Internet Software Consortium DHCP Server V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 2 leases to leases file.
Listening on LPF/eth0/00:20:18:d5:80:a7/192.168.0.0/24
Sending on LPF/eth0/00:20:18:d5:80:a7/192.168.0.0/24
Sending on Socket/fallback/fallback-net
DHCPDISCOVER from 00:e0:7d:aa:63:e0 (Bedroom) via eth0
DHCPOFFER on 192.168.0.249 to 00:e0:7d:aa:63:e0 (Bedroom) via eth0
if IN A Bedroom.mshome.net rrset doesn't exist add 3600 IN A Bedroom.mshome.net 192.168.0.249: timed out.
DHCPREQUEST for 192.168.0.249 (192.168.0.1) from 00:e0:7d:aa:63:e0 (Bedroom) via eth0
DHCPACK on 192.168.0.249 to 00:e0:7d:aa:63:e0 (Bedroom) via eth0
DHCPINFORM from 192.168.0.249 via eth0
DHCPACK to 192.168.0.249
DHCPINFORM from 192.168.0.249 via eth0
DHCPACK to 192.168.0.249
DHCPINFORM from 192.168.0.249 via eth0
DHCPACK to 192.168.0.249
DHCPRELEASE of 192.168.0.249 from 00:e0:7d:aa:63:e0 (Bedroom) via eth0 (found)


Here's the /etc/sysconfig/iptables file:-

# Generated by iptables-save v1.2.7a on Tue Feb 10 10:15:56 2004
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [28:1680]
:OUTPUT ACCEPT [28:1680]
[0:0] -A PREROUTING -i eth0 -j ACCEPT
[0:0] -A PREROUTING -i eth0 -j ACCEPT
[0:0] -A POSTROUTING -s 192.168.0.0/255.255.255.0 -o eth0 -j MASQUERADE
COMMIT
# Completed on Tue Feb 10 10:15:56 2004
# Generated by iptables-save v1.2.7a on Tue Feb 10 10:15:56 2004
*filter
:INPUT ACCEPT [532:36330]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [570:38925]
[1846:125847] -A INPUT -j ACCEPT
[1770:120657] -A OUTPUT -j ACCEPT
COMMIT
# Completed on Tue Feb 10 10:15:56 2004

This is the dhcpd.conf file:-

authoritative;
ddns-update-style ad-hoc;
default-lease-time 36000;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name "mshome.net";
option netbios-node-type 8;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.254;
}

If anyone has an iptable and dhcp.conf file that works using a win98 machine to access the internet via the linux machine that uses dial up on /dev/modem and a NIC on eth0, could you email them to me?.
 
Old 02-10-2004, 05:37 PM   #15
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Quote:
Originally posted by Usalabs
The only ping I can get a result from is:-

192.168.0.1
127.0.0.1

on both machines and no-where else on the win98 machine.

Thus, your DHCP server is not working as advertized. Both machines cannot have the same IP. Log into the RH machine under WinXP and copy down everything you see under the TCP/IP tab of your network card's properties. Whatever IP address you are using for it, you must also have for the RH machine (or, vica versa). DO YOU HAVE A NAMESERVER????? Write down the IP, if so. Most of the time, its a good idea to use the 2 or more that your ISP provides for DNS resolution.

On your Win98 box, check that you are actually polling for an IP. Be sure that the TCP/IP tab is set to "Obtain an IP address automatically". Or, manually set it to something in the same range of private IPs that your RH/XP machine is using. Ex: 192.168.1.10 or 10.0.0.10. They cannot have the same IP address. Its their 'name' on the TCP/IP highway. On the DNS tab, be sure that there is something entered for a nameserver. Use the gateway's IP or the one(s) from your ISP. Be sure that there is a gateway listed! The IP of your redhat/XP machine must be entered here. Without that, there is no internet for your client machine.

From your log, it looks like your DHCP server on the RH machine is offering, but the 98 machine is not accepting the offer. Maybe it doesn't realize that it has a gateway. CHECK that first.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password Message Box when accessing linux box from Window Machine mikeccs Linux - Networking 1 08-04-2004 05:47 AM
Network and accessing internet via XP box owain Linux - Networking 14 06-05-2004 02:55 PM
installing linux on a dual boot win98/xp box hashaddict Linux - Newbie 3 03-09-2004 01:55 AM
Installing Win98, Win2K and Linux in 1 BOX ako Linux - Newbie 1 01-16-2004 09:06 PM
I need help networking a linux box to a win98 box... philfighter Linux - Networking 0 11-13-2001 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration