Sharing internet between DHCP protocol?
I have the "server machine" with WinME and adsl, using DHCP (in win), and in my box i set up Slack9.0 with DHCP... every is fine here, i got internet in my box with linux,
but the problem is when i switch from WINME to Linux in the "server machine" how to do to share internet with the rest of my net via DHCP? thx |
Well, you won't share internet with DHCP.
You will probably want to use iptables with the new 2.4.x kernels, if you have kernel 2.2.x on your server try ipchains. Try a search in google for 'iptables masquerade' in your language. That will be the things you need. (if you want to have information about DHCP and linux, also try a search in google) HTH mandeltuete |
Re: Sharing internet between DHCP protocol?
Quote:
http://firestarter.sourceforge.net/ to be a very easy way to get a firewall AND setup internet connection sharing all at the same time. BTW - you do want to use DHCP if that is how your network is set up with WIN ME. You will make your 'gateway machine' a DHCP server. Your other machines will need to 'broadcst' for an I.P. address. This is the same in windows only it sets things up the one and only way possible and you don't see what goes on behind the scenes. It's easy with Firestarter. |
DHCP is kind of cool because it is such powerful software and it is actually how most people connect with their Internet Service Provider. For just a few computers it is easier to use a static IP address which is how the serious sites that you actually find on the internet get their IP addresses. But, they use a different, much larger range of numbers.
This site explains this pretty well and shows you how to use Masquerade which not only connects your LAN to the internet, but gives you a firewall too: http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/ It shows you how to use static IP addresses. There is an ommited chmod on this page for one of the scripts. Be sure to catch it. http://www.tldp.org/HOWTO/IP-Masquer...-examples.html |
Quote:
|
Quote:
If you have a lot of machines to set up on a network, then static addresses are going to be fussier to setup. The more you have, the more DHCP becomes the only alternative, unless you are actually on the internet in which static is also mandatory. I have four computers on my little experimental LAN, three of which dual boot, so that is actually seven machines to set up and it is no big deal. |
I agree - windows ICS sucks. BUT the reason I said for tr4nce to keep DHCP is because windows ICS is ONLY DHCP. If you set I.P.s on your other machines then ICS in windows stops working and you have to use a proxy. What an unnecessary pain. Apparently tr4nce likes to boot his gateway machine into windows & linux therefor it's much easier for him to use DHCP.
I too have a network 166MHz w/Coyote Linux is my firewall-router-DHCPserver and it doesn't even have a hard drive. :D 3 Linux boxes all set to broadcast for I.P. from DHCP server.2 of which dual boot. 1 windows laptop that travels to multiple corporate networks all of which use DHCP. You can simply bring the laptop home, connect the RJ45 and bam! you're online. If the laptop had to have a static I.P.for the home network then you'd have to set up multiple configurations and select which one you wanted at boot or change it every time from DHCP to STATIC. and we all know how long it takes to reboot a windows machine. <reboot> go take a nap-come back - hopefully it's up. There is nothing wrong with Static I.P.s certainly, I just thought that he would have alot less to do by keeping his current configuration. Afterall everything already works except for ICS on his Linux box right? So nothing else would need to be changed except for setting up ICS on the Linux box. Firestarter is the answer for those who don't know alot about home networking. |
Quote:
I agree that if you have a laptop that also connects somewhere else outside your LAN, then DHCP is the best practical solution. Congratulations on your diskless router. :D This is in store for me too. I may wind up with DHCP yet, since I have these diskless ambitions. See my other threads here about my Boot ROM problems. Also at Motherboards.org, user name FiberBundle. Apologies to the initiator of this thread, the subject is drifting. |
I am a complete newbie. I just installed Lycrois Linux today and I want to setup internet connection sharing over a 56k modem via a network through my win xp pro machine. I went to download Firestarter but I am confused on which version to get I'm not sure what version Lycrois is. I read that is was an Amethyst edition but I don't really know what that means. I need to know which version to download. My choices are: Red Hat 8.x RPM, Red Hat 7.x RPM, Mandrake 9.x RPM, Debian DEB, Source RPM, Source tarball, and MD5 checksums. I know this is a stupid question and I am terribly sorry but I don't know the answer so if you do please help me out. I’m guessing not Red Hat, Mandrake, or Debian.
|
I don't know the first thing about Lycoris but it is sometimes possible to use different packaging systems. That would best be answered by someone other than myself. You can always get the source tarball and do this (as root)
tar xzvf firestarter 0.1.2.tar.gz then you do a cd firestarter 0.1.2 ls ./configure make make install make clean After you give the 'ls' command you will see several files. and most likely one will be named INSTALL or README so use your favorite editor (mine is midnight commander) to read them like this: mcedit README That should give you details on how to install. Like I said it's usually the format I gave above but not necessarily. There's more to it than that but there's an example for you. I don't know what the actual Firestarter tarball is named. Do searches for 'compiling from source'. |
Rickenbacherus,
Thanks for your help I will try what you said. |
All times are GMT -5. The time now is 08:06 AM. |