Simple DHCP Internet Connection Sharing [BETA]

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

Simple DHCP Internet Connection Sharing [BETA]

#1 Post 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
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

Woo hoo! Now if I can just find the time to try everything I want.... :)
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69321][color=blue]Puppy Help 101 - an interactive tutorial for Lupu 5.25[/color][/url]

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

server and hub

#3 Post 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.
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

Lamppup

#4 Post 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?
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
Gekko
Posts: 443
Joined: Sat 22 Jul 2006, 09:57
Location: Sydney, New South Wales

#5 Post 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.

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Any PC

#6 Post 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.
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#7 Post 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
Bring on the locusts ...

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

2.02

#8 Post 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.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
Gekko
Posts: 443
Joined: Sat 22 Jul 2006, 09:57
Location: Sydney, New South Wales

#9 Post by Gekko »

Oh yeah? Pfft to you. lol. I'll look, this weekend. Bah. You work me too hard lol.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

Work hard

#10 Post by ecomoney »

We work you hard, but the rewards are high ;-)
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

MaZZly
Posts: 23
Joined: Fri 14 Dec 2007, 21:16

#11 Post by MaZZly »

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

Bandwidth Limit Exceeded
anyone got a mirror?

User avatar
john biles
Posts: 1458
Joined: Sun 17 Sep 2006, 14:05
Location: Australia
Contact:

#12 Post 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
Legacy OS 2017 has been released.

MaZZly
Posts: 23
Joined: Fri 14 Dec 2007, 21:16

#13 Post 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

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#14 Post 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:
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#15 Post 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:
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#16 Post 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
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#17 Post by ecomoney »

lol yes....it was how quickly I put it right once is discovered I it needed fixing that counts ;-)
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Post Reply