LinuxQuestions.org
Help answer threads with 0 replies.
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 08-01-2002, 03:34 PM   #1
LinuxDude
Member
 
Registered: Aug 2002
Location: the web
Distribution: Mandrake 9.0/FreeBSD 5.0 (Dual)
Posts: 49

Rep: Reputation: 15
Question WinME & Linux: Sharing 1 Internet Connection?


Ok, I finnaly got RH up and running. I have my Linux box networked with a Windows box. I currently use Sygate (trial) to share the internet connection from the Win box. I would like to use the Linux box to run a small personal site (joesplace.d2g.com). I built apache and got it running, but I could only access it from the Linux box using its IP address. What I need to be able to do, however, is to access the server from the IP address of my cable modem. Does anyone know I can do this?

Thanks,
Joe of 4Life
http://www.4life.tk/

 
Old 08-01-2002, 08:35 PM   #2
krunkwick
Member
 
Registered: Jun 2002
Location: Memphis
Distribution: Suse 8.0 Pro
Posts: 45

Rep: Reputation: 15
Well this is going to depend on Sygate. If it has some kind of port forwarding then you may be able to do want you want.

However, your best bet is to share your connection through your linux box. This will be better for a number of reasons.

1) Security .... Linux is a lot more secure than windows ME
2) Your web-site will then be available from anywhere, and you wont have to worry about port forwarding.

If your running RH 7.3 then you will already have IPtables. IPtables will allow you to share your internet connection real easy. If you dont have IPtables then you will have IPchains.

You can still masquerade with IPchains, but there is a little more configuring that needs to be done. IPtables is what you really want to be running anyway.

Here is some places to get more info on IPtables
http://www.linuxguruz.com (some really good scripts here)
http://www.tldp.org
 
Old 08-01-2002, 11:10 PM   #3
LinuxDude
Member
 
Registered: Aug 2002
Location: the web
Distribution: Mandrake 9.0/FreeBSD 5.0 (Dual)
Posts: 49

Original Poster
Rep: Reputation: 15
Hmmm.... I found an excellent tutorial at linuxjunior.org, but I am having a slight problem. Whenever I set up a single NIC the computer connects to the net just fine, but when I setup up two I lose the connection! I cant even ping the second NIC from my Win box and vice-versa! Any ideas?

Thanks,
Joe of 4Life

PS - I have been working on this computer for a week, so I am desperate enuff to offer hosting to anyone that helps me! That is, if I have enuff space and you meet certain critiera (ie. - NO adult sites!).

[edit]Anyone who helps actually fix the problem![/edit]

Last edited by LinuxDude; 08-02-2002 at 12:17 AM.
 
Old 08-01-2002, 11:42 PM   #4
krunkwick
Member
 
Registered: Jun 2002
Location: Memphis
Distribution: Suse 8.0 Pro
Posts: 45

Rep: Reputation: 15
It sounds to me like you may have both of your ethernet cards configured for DHCP. Since your inside nic doesnt have a dhcp server running on it, it wont come up. You need to statically configure in the following file.

/etc/sysconfig/network/ifcfg-eth1 ( or it may be eth0, it just depends)

Check that out and let me know if it isnt that.
 
Old 08-02-2002, 12:15 AM   #5
LinuxDude
Member
 
Registered: Aug 2002
Location: the web
Distribution: Mandrake 9.0/FreeBSD 5.0 (Dual)
Posts: 49

Original Poster
Rep: Reputation: 15
The card that is connected to the modem is set up for DHCP but I cannot activate it. The other one is set to a static IP address for my LAN. Could you please explain what "your inside nic" means?

Thanks,
Joe of 4Life
 
Old 08-02-2002, 01:15 AM   #6
krunkwick
Member
 
Registered: Jun 2002
Location: Memphis
Distribution: Suse 8.0 Pro
Posts: 45

Rep: Reputation: 15
Well your inside nic is referred to as your internal lan connection. It should have an address in the range of:

192.168.0.0 / 255.255.0.0

And I'm just going to go over some things here, you may have done this already.

Your windows client will need a hardcoded address assigned. Let me know if you need help with that.

Normally "eth0" is connected to the internet and "eth1" is usually your inside lan. "eth0" is configured for dhcp and "eth1" is statically assigned everything. (A good ipaddress to assign it is 192.168.0.1) This is also the default route for the windows client.

You will also need to add your isp's DNS servers to your windows client.

Other than that just make sure that the windows client's address is that of the same net as "eth1".

Let me know if you have done this already. I have the same setup as your trying to do, so I have working examples to look at.
 
Old 08-02-2002, 01:25 AM   #7
LinuxDude
Member
 
Registered: Aug 2002
Location: the web
Distribution: Mandrake 9.0/FreeBSD 5.0 (Dual)
Posts: 49

Original Poster
Rep: Reputation: 15
Yeah Ive done this but I havent tried the DNS deal, maybe I'll try it now.

Thanks
Joe of 4Life
 
Old 08-02-2002, 01:47 AM   #8
LinuxDude
Member
 
Registered: Aug 2002
Location: the web
Distribution: Mandrake 9.0/FreeBSD 5.0 (Dual)
Posts: 49

Original Poster
Rep: Reputation: 15
Arrrgh! I still can't get this thing to work! I've been at it for over a week and I am about to give up! The internet connection does work fine with only 1 NIC installed. But when I install 2 NICs, it doesn't! Furthermore, I can't even get my machines to ping each other! Btw - I'm not mad at you, I am just tired of playing with this!

Thanks,
Joe of 4Life
 
Old 08-02-2002, 03:07 PM   #9
LinuxDude
Member
 
Registered: Aug 2002
Location: the web
Distribution: Mandrake 9.0/FreeBSD 5.0 (Dual)
Posts: 49

Original Poster
Rep: Reputation: 15
Well, that didn't work. Maybe I'll just have to buy a router.

Thanks,
Joe of 4Life
 
Old 08-02-2002, 03:52 PM   #10
krunkwick
Member
 
Registered: Jun 2002
Location: Memphis
Distribution: Suse 8.0 Pro
Posts: 45

Rep: Reputation: 15
I know your tired of this! However, I know that's it's fixable, we just need to find out why things arent working.

What does "ifconfig" return back to you??

Also, there may be something in your ipchains or iptables rule set. (I'm kinda just shooting at things right now, but its a possibility)

Let me know .... unless you have just givin up
 
Old 08-02-2002, 04:26 PM   #11
LinuxDude
Member
 
Registered: Aug 2002
Location: the web
Distribution: Mandrake 9.0/FreeBSD 5.0 (Dual)
Posts: 49

Original Poster
Rep: Reputation: 15
Ok, I'll try that. Thanks.

Chao,
Joe
 
Old 08-02-2002, 04:29 PM   #12
LinuxDude
Member
 
Registered: Aug 2002
Location: the web
Distribution: Mandrake 9.0/FreeBSD 5.0 (Dual)
Posts: 49

Original Poster
Rep: Reputation: 15
Well, I just tried that, but I have no idea what I am supposed to be looking at.

Thank you,
Joe
 
Old 08-02-2002, 04:57 PM   #13
krunkwick
Member
 
Registered: Jun 2002
Location: Memphis
Distribution: Suse 8.0 Pro
Posts: 45

Rep: Reputation: 15
eth0 Link encap:Ethernet HWaddr 000:B7:BD:EF:13
inet addr:66.61.125.154 Bcast:255.255.255.255 Mask:255.255.248.0
inet6 addr: fe80::2d0:b7ff:febd:ef13/10 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8962314 errors:0 dropped:0 overruns:0 frame:0
TX packets:4190916 errors:3 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:100
RX bytes:1690505569 (1612.1 Mb) TX bytes:651820408 (621.6 Mb)
Interrupt:10 Base address:0xa800 Memory:e8100000-e8100038

eth1 Link encap:Ethernet HWaddr 00:40:F4:21:61:39
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::240:f4ff:fe21:6139/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4424204 errors:0 dropped:0 overruns:0 frame:0
TX packets:5576294 errors:0 dropped:0 overruns:0 carrier:0
collisions:5332 txqueuelen:100
RX bytes:730913413 (697.0 Mb) TX bytes:1640729853 (1564.7 Mb)
Interrupt:5 Base address:0xac00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:293 errors:0 dropped:0 overruns:0 frame:0
TX packets:293 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24933 (24.3 Kb) TX bytes:24933 (24.3 Kb)

This is what I get when I'm run ifconfig.

The important things to look at are:
inet addr:x.x.x.x This is the address that the card is using.

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
This is also a good indication that your cards are up and running.

Just like in mine you should have eth0 and eth1. My eth0 is configured for dhcp (which is what I have connected to cable)

eth1 is my inside lan card and its statically assigned 192.168.0.1

So if yours is looking similar to mine then the nics are probably good. We will need to look somewhere else.
 
Old 08-02-2002, 06:32 PM   #14
LinuxDude
Member
 
Registered: Aug 2002
Location: the web
Distribution: Mandrake 9.0/FreeBSD 5.0 (Dual)
Posts: 49

Original Poster
Rep: Reputation: 15
Hmmm....I dont see the outside NIC. I'm not even sure which NIC is supposed be the ouside one.

Thanks,
Joe

[edit]I think eth0 should be the outside NIC, but I can't "see" it.[/edit]
_____________
Im not new to computers, but to Linux I am

Last edited by LinuxDude; 08-02-2002 at 06:33 PM.
 
Old 08-02-2002, 07:04 PM   #15
krunkwick
Member
 
Registered: Jun 2002
Location: Memphis
Distribution: Suse 8.0 Pro
Posts: 45

Rep: Reputation: 15
run "lspci" to see if your getting both cards in there. If there seen in there, then its a problem with your nic configuration.

Let me know
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing my Internet Connection from Ubuntu to Windows (XP & 98SE) eminence Linux - Networking 4 05-19-2005 07:05 PM
firestarter & internet connection sharing imagineaxion Debian 2 02-11-2005 10:23 AM
Setup Network & ADSL Connection (Internet Sharing) on SuSE 9.2 egcoder Linux - Networking 0 01-31-2005 07:47 PM
Internet connection sharing help...using USB modem & Network card Daz155HGT Linux - Networking 6 04-28-2004 02:44 PM
Internet Connection Sharing LINUX Please HELP MistroTHX Linux - Networking 2 10-06-2003 04:50 PM

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

All times are GMT -5. The time now is 05:47 PM.

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