LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 06-13-2002, 05:13 AM   #1
tekneakz
LQ Newbie
 
Registered: Jun 2002
Location: East Wenatchee, WA
Distribution: Redhat 7.1
Posts: 2

Rep: Reputation: 0
Question internet sharing ; linux connected, windows wants


this has probably been asked a million times on here;

i run redhat 7.1 networked with a windows 98se machine. i can ping the linux box from windows, and vise versa, but i cant access the internet with my win machine through the network and linux. i've tried firestarter that didnt work, plz help
 
Old 06-13-2002, 05:15 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Set the linux boxes ip address as the windows boxes default gateway.
Make sure that DNS is set up correctly for the windows box.

Read: http://www.tldp.org/HOWTO/IP-Masquer...WTO/index.html
 
Old 06-13-2002, 06:17 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
i'd recommend using firestarter as a very quick way to install a firewall and connection sharing in one go. have a search for it.
 
Old 06-14-2002, 02:53 AM   #4
tekneakz
LQ Newbie
 
Registered: Jun 2002
Location: East Wenatchee, WA
Distribution: Redhat 7.1
Posts: 2

Original Poster
Rep: Reputation: 0
i tried firestarter and it just errored, nothing would work with it. i've tried 329843032 times to get this to work and searched high and low, i just cant get it. i'll try it dorward, thanx
 
Old 06-19-2002, 04:26 PM   #5
skeletal29
Member
 
Registered: Apr 2002
Location: Nyc
Distribution: Gentoo
Posts: 127

Rep: Reputation: 15
Why not just set up dhcp server. This would make the win boxes very happy

i dont know how to thou.
Fuck i should have paid attention at the linux meet.
 
Old 06-19-2002, 08:07 PM   #6
bxb32001
Member
 
Registered: May 2001
Location: Beijing
Distribution: Fedora, Knoppix
Posts: 204

Rep: Reputation: 30
Hi there!

I too have a networked linux and windows box (2000), didn't want to start a new thread since I think it's quite related. I don't know how to share my internet connection on my windows 2000 laptop with my RH 7.3 Desptop?

anyone please help?
 
Old 06-19-2002, 09:00 PM   #7
skeletal29
Member
 
Registered: Apr 2002
Location: Nyc
Distribution: Gentoo
Posts: 127

Rep: Reputation: 15
which box do you want to be the "gateway" if its windows then its very simple goto networking and put net work connection to accept connection then in the setting tell it to give a dhcp adress and share internet ad thats it.


with linux i dont really know how to with masqerade....

dhcp server seems easier but i dont know what pacakges i need to set up dhcp server.
 
Old 06-19-2002, 09:21 PM   #8
bxb32001
Member
 
Registered: May 2001
Location: Beijing
Distribution: Fedora, Knoppix
Posts: 204

Rep: Reputation: 30
I have to use windows for my gateway... It's just difficult to get support where I am in right now...

Do you mean to say that I just have to setup Internet Connection Sharing on my windows box and set it to assign dhcps? What should I have to do with the linux box?

Sorry, I'm really new to all of this, I appreciate any help...
 
Old 06-20-2002, 06:56 AM   #9
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
this tread has been done before on here, but there seems to be alot of doulble posting on this site so don't worry about it

The easiest way to get another machine to access the internet through a linux box is to setup ipcahins or more recently iptables to do simple masqing.

I use ipchains like so to share a link...

ipchains -A forward -i ppp0 -s xxx.xxx,xxx.xxx -j MASQ

entered on the server with the ip of the client machine specified (xxx.xxx.xxx.xxx should be something like 192.168.0.11)

You then need to specify the DNS in /ect/resolve.conf.

If you have not yet setup a DNS then just set this to look at the DNS of your service provider.
 
Old 06-20-2002, 09:44 AM   #10
gogo
Member
 
Registered: Apr 2001
Posts: 117

Rep: Reputation: 15
Unhappy RH Linux 7.3 (Gateway) and W2K server as client

Dear all,

I have encountered the same problem.

I set up red hat 7.3 with 2 network cards: eth0 and eth1.

eth0 is connected to the ISP and I set the DNS as look at the DNS of your service provider with DHCP.

eth1's ip is 192.168.0.1 Subnet mask 255.255.255.0

Surely, routed service is started.

ipchains -A forward -s 192.168.0.0/24 -j MASQ

/etc/rc.d/init.d/network restart

echo 1 > /proc/sys/net/ipv4/ip_forward

In Window 2000 server, ip is 192.168.0.2 subnet mask 255.255.255.0 Gateway 192.168.0.1

From window machine, ping 192.168.0.1 - ok
From red hat box, ping 192.168.0.2 - ok

But, window machine cannot connect to the Internet.

What's wrong with my setting and how should I fix it?

Thanks in advance

gogo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows and Linux Internet Sharing LinuxSeeker Suse/Novell 12 11-10-2005 02:41 PM
Linux clients sharing a common printer connected to a windows box comox Linux - Networking 1 10-24-2005 06:50 PM
Sharing internet from linux to windows Infernal211283 Linux - Newbie 4 01-01-2005 04:46 PM
sharing internet connection between linux and windows homer_3_16uk Linux - Networking 1 03-21-2004 01:23 PM
Internet sharing between Linux and Windows rory Linux - Networking 12 01-29-2003 05:58 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration