LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-20-2003, 08:08 AM   #1
RJL
Member
 
Registered: Nov 2001
Posts: 34

Rep: Reputation: 15
Angry Mandrake 9.0 internet sharing nightmare


Hi All,

For two days now I'm fighting to get this done (and the wife is waiting )
I've got three pc's. Two win 2000 and 1 new server, that I'm trying to put Mandrake 9.0 on. Installation works fine.

It contains two networkcards, eth0 and eth1. Eth1 is the cable modem and is setup as DHCP to obtain an address from the provider. The eth0 is setup as local network (connected to a hub) as 192.168.0.1. No problems here. Internet on the server works fine.

Now, all I want is share my internet connection with the other two pc's. So, I went into the configuration setup, selected sharing, and let Mandrake figur it out. (this is all EXACTLY THE SAME as I did with Mandrake 8.0 long time ago)
This is where shit hits the fan. eth0 is suddenly changed to 192.168.1.1 and the gateway is set to 192.168.0.1.

That doesn't make any sense to me, especially since my old pc (mandrake 8.0) is sitting next to me, and I'm checking all settings on it. On that one, eth0 is set to 192.168.0.1 and so is the gateway!

Anyway, no connection sharing, and worse, I even loose the whole internet connection on the server itself!
I switched shorewall off, stop and clear to make sure it's not there...nothing helps. I'm going to reinstall it for the 5th time now, and would like to do it right this time

There must be 12 million people out there who experienced the same problems, could anyone help this dummy out? (step by step)

(dummy or not, Mandrake 9.0 SUCKS for having this shorewall firewall in stead of the wonderfull firestarter on 8.0. At least I could SEE what it does....maybe they'll learn someday )

Thanks all!

RJL
 
Old 02-20-2003, 08:44 AM   #2
RJL
Member
 
Registered: Nov 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Or maybe someone knows a good link?

Thanks again.
 
Old 02-20-2003, 10:30 AM   #3
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
From the command line, what happens when you do:

dhcpcd eth1

(you said eth1 was your gateway right?)

When you fire up netconf, is eth1 still set up to use dhcpcd by default?

I've never tried to use the internet sharing features in Mdk9 (yet) but those would be the first 2 things to check.

Also, is there any reason not to use firestarter on your new mandrake install? (I'm not familiar with this software either..so I have to ask)
 
Old 02-20-2003, 11:15 AM   #4
RJL
Member
 
Registered: Nov 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for your time Tcaptain, I was about to throw it out the window LOL

When I type dhcpcd eth1 it sais it already running. Yes, netconf shows eth1 to be DHCP be default, no IP address has been typed in. (apart from the submask)
I can try instaling firestarter again, but when I tried this last time, it told me it had many files missing on my system, so I left it there.
Unfortunately I don't seem to be able to install Mandrake 8.0 as well, it doesn't seem to like this system (doesn't read the cd's)

In the mean time I told my other machine to pick it own IP and did some pinging. It pings to both the network cards on my Linuxserver, but that it. Ipv4 is on, double checked.

One weird thing I noticed is, although dhcp seems to be running, when looking at the Mandrake control center, under connections, it leaves my gateway blank, and I used to recall that being filled in with the IP of my LANcard (192.168.0.1) on my old machine.

Hope you can help.
 
Old 02-20-2003, 11:31 AM   #5
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
I hope I can help too

I'm bookmarking the thread...I'm at work now and its hard to work from memory on unfamiliar territory. Although anyone else is MORE than welcome to help.

What we might end up doing is trying to get firestarter working for you since you are familiar with that software...but I'm just spitballing here.
 
Old 02-20-2003, 11:32 AM   #6
RJL
Member
 
Registered: Nov 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Mmmm.. I guess I need to understand hwo this works exactly. Let's see if I got this right:

eth0 is 192.168.0.1 LAN
eth1 is 80.??.??.?? CABLE

eth0 is set to static! and eth1 is set to DHCP.

I would think the DHCP for the other pc needs to come from eth0 right? He needs to issue a number between 192.168.0.16 and 192.168.0.253 right? (or wrong)
Now, what is the gateway? (on my old pc it showed the 192.168.0.1 address but that won't work...don ask me why) Now, when I force the gateway to be 192.168.0.1 the LAN eth0 connection goes down, so that shows he's not happy right?

I already had an internet connection (that why I'm typing now ) so, when I type your dhcpcd eth1 command it shows it running,. and it is indeed.

So, I guess my questions would be, do I need a gateway? If yes, what IP number should it have? What IP should I give my eth0 (I guess I can leave that at 192.168.0.1)?

I noticed yesterday, that when I let Mandrake autoconfigure my settings, it creates a gateway of 192.168.1.1 ? Why would it do that and is that the reason why my other pc don receive an IP?

I know, lot of questions....

Thanks again.
 
Old 02-20-2003, 11:34 AM   #7
RJL
Member
 
Registered: Nov 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Oops, crossplaced How nice of you, thanks!

In the mean time Il see if I can find it and install it. I know the firewall that came with MD 8.0 had simular issues, and this Firestarter simply took over the settings. However, MD 9.0 is using IPTables, while I thought MD8.0 used IPChains. Also, the firewall is turned off completely now, I guess I should be able to do without right?
 
Old 02-20-2003, 04:18 PM   #8
RJL
Member
 
Registered: Nov 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Can't install Firestarter. Mandrake seems to miss some libraries, that are not part of the current software updates.
 
Old 02-21-2003, 05:45 AM   #9
RJL
Member
 
Registered: Nov 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Well, I guess it good to know my problem is so complicated it not fixed yet.
Ie seen this problem described on the net a zillion times, you would think by now someone has a step-by-step fix for this?
Please help.
 
Old 02-23-2003, 05:20 PM   #10
tearlach
LQ Newbie
 
Registered: Oct 2002
Location: scotland
Distribution: suse 11.2, clearOS 5.2
Posts: 5

Rep: Reputation: 0
you think you have problems ! sharing

I installed mandrake 9 after using the sme e-smith redhat server as a gateway for the passed year after i discovered that it could use my isdn card think finally i could use my isdn line.
hahah - what a waste of time.
mandrake can use the card all right - as long as i dont try and install internet connection sharing(isdn card is asuscom/askey type 35) anyhow as soon as i try that the card settings are distroyed. (I then spent 1/5 weeks downloading redhat 8 (5 discs)
(well i had to fall back on a laptop running win98 and an intenal modem and net vampire to get them)
guess what - isdn runs on red hat but how can i set up internet shareing on that. I have been spoilt for to long with mandrakes drakgw and drakconnect if I have wanted to set sharing with a standard modem.
Can anyone shed some light on setting this up with redhat - nice new graphics on the desktop.
 
Old 02-24-2003, 07:15 PM   #11
chingasman
Member
 
Registered: Dec 2002
Location: Orange County, CA
Distribution: Mandrake 9.0 x2
Posts: 91

Rep: Reputation: 15
god i love this linuxquestions.org
 
Old 02-25-2003, 03:40 AM   #12
RJL
Member
 
Registered: Nov 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Ow, the forum is ok indeed
However, MD9.0 sucks, bigtime! Let's see if I can shock this forum a bit, this week my new server will be installed with

WINDOWS....MICROSOFT.....WINDOWS....MICROSOFT...

Maybe that'lll wake'm up :P
 
Old 02-25-2003, 06:14 AM   #13
xYko
Member
 
Registered: Feb 2003
Location: Helsingborg, Sweden
Distribution: Slackware
Posts: 52

Rep: Reputation: 16
This is how I did it. Running Slack 8.1

I downloaded iptables from netfilter.org. DHCP daemon came on the slack disk I think. Then I grabbed a lightweight DNS cacher. And finally a script from no-ip so I could have a cool adress like foobar.ath.cx

Then I read like a few HOWTOs and manpages, configged the dhcp daemon, and tried it out. My other computers were getting good IPs so I went on...
To recompile the kernel and compile iptables. Then I put 1 in that ip_forward thingy somewhere in /proc/networksomething/something/
Then I read another few HOWTOs and manpages, learned iptables, set it up for masquerade. This is where it started routing. It had no DNS but i could ping an IP outside.
Finished up with config of the DNS cacher and the no-ip script.

That's pretty much your long way. But hey, you learn a lot... Now I know how to use iptables to set up any firewall rule I feel like
All of this takes about a day of work or so to do..

This is probably why not many people can help you. You want a simple solution.. Microsoft has spoiled y'all

Last edited by xYko; 02-25-2003 at 06:18 AM.
 
Old 02-25-2003, 12:54 PM   #14
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Sorry RJL, I've been away for a few days and today's the first time on a PC in a week...well maybe not the first time on a PC...but the first time I could go and check LQ (eek, 42 pages of stuff to scroll through).

Anyway, I wanted to know if you had solved your original issue...and if not, what did Mdk say was missing for firestarter?
 
Old 02-28-2003, 08:55 AM   #15
RJL
Member
 
Registered: Nov 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Hi Both,

Thanks for your responses. Xyko, I do understand that we are spioled using win, but when any package gives me a button like ICS, it should work instantly, or just take away the button. Strange enough...Mandrake 8.0 worked. Although it also installed a firewall, after a installed firestarter it overwrote the iptable settings etc. and worked instanlty when I opened the proper ports. That I can handle. But take a look at your own story LOL...for a newbie like me that takes ages...

Tha last thing I did was installing Guarddog, which looks even better then firestarter and has a decent GUI. Halfway, Gaurddog asks you to make sure all your connections work, like local, and ICS. You can simply click on disable firewall and test it. That didin't work. So, what I'm trying to say is, non of these programs seemed to have succeeded in sharing the internet, regardless of firewalls etc. (that's what it looks to me...)

After 6 days I gave up, and right now I'm back to my good old Mandrake 8.0 pc, which I hadn't sold yet.

I do like to play around with this very much, and I'm not scared of learning a thing or two, but for my regular job a travell around the world most of the time. Every once in a while I get a week or two off, like these two weeks. If you have to mess around with a pc for 1 of those 2 weeks, wifes have a tenedancy of getting mad...(and they're right ) That's why I gave up, I need the access to my own server from all over the world, and I could not get it done, so...back to 0. I simply do not have the time to let this take days in stead off hours.

And altough I'm very much in favour of Linux (there's a reason why I'm here) to me it seems they are not even close to having simple things like this under control, and that suprises me (read: dissapoints me) very much.

ICS is the second basics of each operating system.....and it should work

I'll be back..... (Mandrake 12.0 ? )
 
  


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
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 03:22 PM
Internet Sharing For mandrake 10 electron Linux - Networking 5 09-07-2004 02:18 AM
Mandrake 10 + internet sharing Mike5555 Linux - Networking 13 05-18-2004 05:00 AM
internet sharing in mandrake 9.1 and xp durden2.0 Linux - Networking 1 08-08-2003 12:19 PM
Mandrake 9.0 sharing the internet from XP Dodj Linux - Networking 6 05-19-2003 08:32 PM


All times are GMT -5. The time now is 07:35 PM.

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