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/ :newbie: :Pengy: |
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 |
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] |
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. |
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 |
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. |
Yeah Ive done this but I havent tried the DNS deal, maybe I'll try it now.
Thanks Joe of 4Life |
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 |
Well, that didn't work. Maybe I'll just have to buy a router.
Thanks, Joe of 4Life |
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 |
Ok, I'll try that. Thanks.
Chao, Joe |
Well, I just tried that, but I have no idea what I am supposed to be looking at.
Thank you, Joe |
eth0 Link encap:Ethernet HWaddr 00:D0: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. |
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:D, but to Linux I am :( |
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 |
All times are GMT -5. The time now is 07:28 PM. |