LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mandrake 9.0 internet sharing nightmare (https://www.linuxquestions.org/questions/linux-networking-3/mandrake-9-0-internet-sharing-nightmare-46298/)

RJL 02-20-2003 07:08 AM

Mandrake 9.0 internet sharing nightmare
 
Hi All,

For two days now I'm fighting to get this done (and the wife is waiting :tisk: )
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

RJL 02-20-2003 07:44 AM

Or maybe someone knows a good link? :)

Thanks again.

tcaptain 02-20-2003 09:30 AM

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)

RJL 02-20-2003 10:15 AM

Thanks for your time Tcaptain, I was about to throw it out the window LOL :D

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.

tcaptain 02-20-2003 10:31 AM

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.

RJL 02-20-2003 10:32 AM

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.

RJL 02-20-2003 10:34 AM

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?

RJL 02-20-2003 03:18 PM

Can't install Firestarter. Mandrake seems to miss some libraries, that are not part of the current software updates.

RJL 02-21-2003 04:45 AM

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.

tearlach 02-23-2003 04:20 PM

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.

chingasman 02-24-2003 06:15 PM

god i love this linuxquestions.org

RJL 02-25-2003 02:40 AM

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

xYko 02-25-2003 05:14 AM

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.. :o

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

tcaptain 02-25-2003 11:54 AM

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?

RJL 02-28-2003 07:55 AM

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 ? :p )


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