Page 1 of 1

Simple DHCP Internet Connection Sharing [BETA]

Posted: Sat 03 Feb 2007, 19:01
by ecomoney
Hi All

If you thought puppy was the only mini-linux distro that didnt have a router function...

We have the holy grail! Simple internet connection sharing for puppy!

Start by installing two ethernet network cards into your puppy computer, then run this .pup.

The modem where the internet is coming from should be plugged into eth0, and the computer that the connection is being shared to into eth1. If it doesnt work, youve got it the wrong way round! Internet connection sharing is enabled a bootup, so you will need to restart your computer to activate it, and to try it in both directions if it doesnt work the first time. You will notice on bootup the "configuring network" section takes a bit longer. Run the standard puppy DHCP networking wizard (under configuration off the dektop, or wizard wizard on setup from the start button).

We also have it on good authority it is possible to attach a hub to eth1 to link up more computers, and possible to have a webserver setup on the machine thats doing the sharing to have a simple home website, discussion board or other internet based apps.

We dont have a clue how this works, so please dont ask us for support. The Dotpup was compiled voluntarily by Gekko for use by us, we have it working in our office (meaning we dont have to rewire our house, thanks Gekko!).

You can download this from our public mirror here.

http://www.ecomoney.eu/puppy/pups/netwo ... riends.pup

We hope to work with Gekko to make this capable of sharing the internet from several ethernet cards (common or cheaply available) in order to make puppy capable of supplying the internet to 2+ computers simultaneously without the need of an expensive hub.

At under 60k, this would add a big piece of functionality to a standard puppy with a very minimal footprint. There are so many other mini-linuxes designed especially for this yet it is the only thing puppy cannot do out of the box. Its a big niche. This would make it the only linux distro that would act as a router *and* a working computer for older kit :D

Posted: Sat 03 Feb 2007, 20:23
by Flash
Woo hoo! Now if I can just find the time to try everything I want.... :)

server and hub

Posted: Sat 03 Feb 2007, 23:31
by raffy
Congratulations, ecomoney and gekko!
We also have it on good authority it is possible to attach a hub to eth1 to link up more computers, and possible to have a webserver setup on the machine thats doing the sharing to have a simple home website, discussion board or other internet based apps.
Yes, the hub multiplies the available shared connection, and hubs should be inexpensive, used ones especially - it can be a plain hub (not necessarily a switching hub).

Some folks may advise to use a low-power PC for connection sharing and a more powerful one for the server - I dont really know how valid this point is. I guess if the website is for the local network only, then any PC in the LAN can do it.

There's a LampPup ISO based on Puppy 1.09CE that I uploaded to http://bexa.org/pup - this should make available a ready website at 192.168.0.100 or localhost. Look in 192.168.0.100/courses for the DokeOs install. This should be easy to install to hard disk, or used as live CD with pup001 on the hard disk.

Lamppup

Posted: Mon 05 Feb 2007, 02:37
by ecomoney
Hi Raffy

Could this package be used on your Lamppup to make it into an internet connection sharing machine, and a webserver for moodle applications/course materials?

Posted: Mon 05 Feb 2007, 05:02
by Gekko
Connect Another LAN (or two or three or ...)

Sometimes you have need of connecting the router to another LAN. Maybe you want to hook up a group of friends temporarily, or you're a neat freak and want to section off different groups of computers, or you're just really really bored. Whatever the reasons, extending the router to other LAN networks should be pretty straightforward. In the following examples, I will assume that this new network is connected via a third ethernet card, namely eth2.

First you need to configure the interface. Just take the instructions in the 4.1 code listing and replace eth0 with eth2 and 192.168.0 with 192.168.1.

Then you need to tweak dnsmasq to service the new interface. Just edit the /etc/conf.d/dnsmasq file again and append -i eth2 to DNSMASQ_OPTS; using -i multiple times is OK. Then edit /etc/dnsmasq.conf and add another line like the dhcp-range line in the 5.1 code listing, replacing 192.168.0 with 192.168.1. Having multiple dhcp-range lines is OK too.

Finally, see the rules in the 5.2 code listing and duplicate the rules that have -i ${LAN} in them. You may want to create another variable, say LAN2, to make things easier.
http://www.gentoo.org/doc/en/home-router-howto.xml
Mainly relevant to Puppy, not entirely.

Any PC

Posted: Mon 05 Feb 2007, 07:36
by raffy
ecomoney:
Could this package be used on your Lamppup to make it into an internet connection sharing machine
Any PC in the LAN with 2 ethernet cards should be able to handle this dotpup and act as a connection sharing machine. In the case of the Lamppup, its eth0 is set to 192.168.0.100 at boot-up via /etc/rc.d/rc.local, and this is easy to change.

Moodle is one of the better LMS (learning mgt system), and DokeOS is another. For a small LAN and very short courses, DokeOS should be fairly useful. And DokeOS has been rated as usable by teachers without need for formal training (DokeOS is also Claroline). DokeOS is also able to handle SCORM (standard) courseware - see its Learning Path deployment. (Dont forget the access codes: username = admin and password = eminima, which can be changed later; there is no MySQL password for user root).

Hey, Gekko, that's a very good site for understanding the technique of connection sharing. Thanks a lot.

Posted: Mon 05 Feb 2007, 20:50
by Nathan F
This is awesome, many thanks to Gekko for making it happen.

Hey Raffy - I have the Puppy 2 versions of the lampp server packages compiled now. I just have to write the post install scripts and make the basic configurations all a little more sane, then upload the packages. So you can expect this to be happening pretty soon. MySQL won't run in 2.13 or older, however, because of a bug in how files are saved to the personal storage file. There are workarounds but it is better to wait for 2.14.

Nathan

2.02

Posted: Tue 27 Feb 2007, 07:22
by ecomoney
Just a word of caution

I tried this with our default 2.02 install and it wouldnt work, in fact it disabled the ethernet internet connection entirely. Think that Brendan is testing it on previous versions.

Posted: Tue 27 Feb 2007, 09:31
by Gekko
Oh yeah? Pfft to you. lol. I'll look, this weekend. Bah. You work me too hard lol.

Work hard

Posted: Thu 01 Mar 2007, 20:51
by ecomoney
We work you hard, but the rewards are high ;-)

Posted: Sun 23 Dec 2007, 13:06
by MaZZly
http://www.ecomoney.eu/puppy/pups/netwo ... riends.pup

Bandwidth Limit Exceeded
anyone got a mirror?

Posted: Tue 25 Dec 2007, 05:30
by john biles
Hello ecomoney and the long gone Gekko who I hear has started his own Linux version based on slackware.
I have to thank MaZZly for posting that he can't download the dotpup as without this posting, I wouldn't have found the link to download this great dotpup which had my 2 PC's connected in seconds. excellent!
I will be including this dotpup in the next TEENpup.
All appears to be working fine in TEENpup 2.14 which is baded on Puppy 2.14 :D :D :D :D :D

Posted: Tue 25 Dec 2007, 12:28
by MaZZly
now i have my internet up and running again since i reinstalled puppy :D

could anyone tell me the iptalbes commands to forward port XXX to 192.168.0.2:XXX when WAN(internet) is eth0 and LAN(network) is eth1

please tell me the specific commands instead of giving me a link to some "explain" iptables site ;) im lazy

Posted: Fri 08 May 2009, 23:34
by ecomoney
I know, its one of those small things that could potentially double (or triple) the number of Puppy computers in a house. Puppy users could use it to set up other computers for their friends too, or to keep their windows computer online while they felt their way around Puppy Linux for the first time. Has anyone reading ever been in family home where there are five people fighting over one computer in an evening?

Its definitely something simple and small, but something so useful that no one could argue about being included in the "mainstream" puppy to help it achieve its aims. All it would need is some simple UI skills and a basic knowledge of networking :wink:

Posted: Sat 09 May 2009, 14:53
by ecomoney
Hi Mazzly, sorry yes, I only have limited bandwidth on my server, if demand exceeds supply then you get this message. Servage (my wonderful host...not) have just upped my bandwidth to 750gb per month, but then puppy linux's popularity on on the rise what with the recession.

Im sorry all you can do is if it doesnt work, try tommorow :cry:

Posted: Sun 10 May 2009, 22:15
by ttuuxxx
ecomoney wrote:Hi Mazzly, sorry yes, I only have limited bandwidth on my server, if demand exceeds supply then you get this message. Servage (my wonderful host...not) have just upped my bandwidth to 750gb per month, but then puppy linux's popularity on on the rise what with the recession.

Im sorry all you can do is if it doesnt work, try tommorow :cry:
Boy it takes you a long time to answer his question, 17 months,lol that has to be a new record, lol I guess one more day wouldn't kill him, lol
ttuuxxx

Posted: Mon 11 May 2009, 15:30
by ecomoney
lol yes....it was how quickly I put it right once is discovered I it needed fixing that counts ;-)