Click to See Complete Forum and Search --> : Internet connection wizard problem
windoze killa
04-21-2003, 10:34 PM
I made changes to my MDK 9.0 setup using the internet connection wizard in the MDK control center. Now everytime I want to connect through my lan I have to disable the wizards settings. How do I disable them permanently. Everytime I reboot it is enabled.
What exact settings get changed? Describe the problem, your general network setup, and the hardware involved in more detail please.
windoze killa
04-22-2003, 01:58 AM
Ok. I have a Linuxbox with MDK 9.0 connecting to the internet through a Win98 box and 56K Dial up. When I tried to set the system up I was told by someone, whom shall remain nameless, to run the internet connection wizard that comes with MDK to make it easy. Well it didn't work. I am not sure exactly what I did to get into this situation other than run the ICW but now the setting don't seem to want to stay changed when I try to disable them. Each time I boot I have to start the MDK control centre, go to network, then click connection wizard. At this poit it tells me that it is enabled and gives you the option to cancel or configure. I select configure and click disable and the ok. There is nowhere that allows me to save this setting and I thought it would be automatic. I have tried it both as root and user and it doesn't work in either. I think it is enabling DHCP which I don't want and is causing the problems.
You can check the actual network files to see what's going on. I don't know if anything has changed in version 9, but in previous Mandrake versions the files were:
/etc/hosts
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
Let's assume that:
A) Your Windows box is set up correctly for Internet Connection Sharing.
B) The LAN IP address of the Windows box is 192.168.0.1
C) The LAN IP of the Linux box will be 192.168.0.2
D) The hostname of your Linux box is Tux, and the hostname of your Windows box is Bill.
The files should look like this:
/etc/hosts:
127.0.0.1 localhost.localdomain localhost
192.168.0.1 bill.localdomain bill
192.168.0.2 tux.localdomain tux
/etc/resolv.conf:
domain ISP-domain-name
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy
(where xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy are the IPs of your ISP's DNS servers)
/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
(if BOOTPROTO is set to "DHCP", that's at least part of your problem)
/etc/sysconfig/network:
NETWORKING=yes
FORWARD IPV4=yes
HOSTNAME=tux
DOMAINNAME=
GATEWAY=192.168.0.1
GATEWAYDEV=eth0
windoze killa
04-25-2003, 07:41 AM
Originally posted by DMR
You can check the actual network files to see what's going on. I don't know if anything has changed in version 9, but in previous Mandrake versions the files were:
/etc/hosts
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
Let's assume that:
A) Your Windows box is set up correctly for Internet Connection Sharing.
B) The LAN IP address of the Windows box is 192.168.0.1
C) The LAN IP of the Linux box will be 192.168.0.2
D) The hostname of your Linux box is Tux, and the hostname of your Windows box is Bill.
The files should look like this:
/etc/hosts:
127.0.0.1 localhost.localdomain localhost
192.168.0.1 bill.localdomain bill
192.168.0.2 tux.localdomain tux
/etc/resolv.conf:
domain ISP-domain-name
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy
(where xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy are the IPs of your ISP's DNS servers)
/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
(if BOOTPROTO is set to "DHCP", that's at least part of your problem)
/etc/sysconfig/network:
NETWORKING=yes
FORWARD IPV4=yes
HOSTNAME=tux
DOMAINNAME=
GATEWAY=192.168.0.1
GATEWAYDEV=eth0
Ok. After looking at the above stuff I noticed only 2 things different. One was BOOTPROTO=static instead of none and number 2 was FORWARD IPV4=no instead of yes. I changed these 2 things with no affect. Still the same problem.
I have worked out what the problem is but I don't know how to solve it.
When it boots DHCPD and NAMED and Shorewall are all on/enabled. When I use MDK control centre to disable internet connection sharing they all are switched off or disabled. Once I do this all works fine. Problem is when I reboot it is all enabled again. Where are these 3 programs started from and how do I stop them starting?
TIA
Originally posted by windoze killa
Ok. After looking at the above stuff I noticed only 2 things different. One was BOOTPROTO=static instead of none and number 2 was FORWARD IPV4=no instead of yes. I changed these 2 things with no affect.Only the BOOTPROTO entry would effect your problem (if it was set to "DHCP"), but "static" and "none" both mean the same thing as far as BOOTPROTO goes. Sorry I missed the IPV4 setting; it should be "no" for your system.
Originally posted by windoze killa
When it boots DHCPD and NAMED and Shorewall are all on/enabled. When I use MDK control centre to disable internet connection sharing they all are switched off or disabled. Once I do this all works fine. Problem is when I reboot it is all enabled again. Where are these 3 programs started from and how do I stop them starting?DHCPD is the DHCP server daemon (you definitely don't want that running); named is a name server daemon, which you don't need either; shorewall is an iptables-based firewall program, which might be interferring with/blocking your network connections.
You should be able to stop dhcpd and named (and possibly shorewall) from starting at boot by opening Mandrake Control Center and navigating to System->Services. The Services window will show all available services, their current status (started/stopped), and if they are set to automatically start at boot or not. Stop any and all unecessary services and uncheck their "on boot" option; running uneeded services not only wastes system resources, but it also introduces security holes.
windoze killa
04-25-2003, 09:11 PM
Thank you greatly. That solved the problem. Not sure which one was causing the problem but removing the on boot from dhcpd and shorewall fixed it. Thank you again.
PS. It looks like I will be getting rid of Linuxquestions.org from my list. I posted the same question over there and I have had 4 replies and they were all from me trying to get a response. A totally useless waste of time. Seems to be the norm from what I have noticed.
Originally posted by windoze killa
Thank you greatly. That solved the problem. Not sure which one was causing the problem but removing the on boot from dhcpd and shorewall fixed it. Thank you again. Your welcome, glad I could help. :)
I'm sure that having the DHCP server service running wasn't helping anything, but it was probably the shorewall firewall which was causing most of the grief. In the end though, I wouldn't suggest leaving it disabled forever if you have security concerns; it does serve a function after all.
Do some reading and research on the program so that you can get comforatble with configuring it to do the job that it's supposed to do without blocking services/functions that you really need.
Originally posted by windoze killa
It looks like I will be getting rid of Linuxquestions.org from my list. I posted the same question over there and I have had 4 replies and they were all from me trying to get a response. A totally useless waste of time. Seems to be the norm from what I have noticed. As far as LQ goes- I understand, but give them a little bit of a break; Jeremy has a good core group of long-time members over there, but they're definitely experiencing "growing pains". When I first registered at LQ in June of 2001, I think the total number of registered members was much less than 5000 (this site was well over 10,000 when I joined in 2000).
Add to that the fact that many of the new LQ members are disgruntled refugees from LNO/JustLinux who would rather just have a playpen to rant in than contribute to technical issues and I'm sure you'll understand what they're up against over there.
windoze killa
04-27-2003, 06:45 AM
I was one of those disgruntled refugees. I did like my playpen to rant but I also liked the ability to help and be helped. But I guess in my current situation the help part is more important. :D
Originally posted by windoze killa
But I guess in my current situation the help part is more important.;)