Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 06:53
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Simple DHCP Internet Connection Sharing [BETA]
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 03 Feb 2007, 15:01    Post subject:  Simple DHCP Internet Connection Sharing [BETA]
Subject description: For sharing a connection to several puppy or doze computers
 

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/networking/dnsmasq_and_friends.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 Very Happy

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10937
Location: Arizona USA

PostPosted: Sat 03 Feb 2007, 16:23    Post subject:  

Woo hoo! Now if I can just find the time to try everything I want.... Smile
_________________
Puppy Help 101 - an interactive tutorial for Lupu 5.25
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4759
Location: Manila

PostPosted: Sat 03 Feb 2007, 19:31    Post subject: server and hub  

Congratulations, ecomoney and gekko!
Quote:
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? Get the sfs (English only).
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sun 04 Feb 2007, 22:37    Post subject: Lamppup  

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 Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Gekko


Joined: 22 Jul 2006
Posts: 445
Location: Sydney, New South Wales

PostPosted: Mon 05 Feb 2007, 01:02    Post subject:  

Quote:
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.
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4759
Location: Manila

PostPosted: Mon 05 Feb 2007, 03:36    Post subject: Any PC  

ecomoney:
Quote:
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? Get the sfs (English only).
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Mon 05 Feb 2007, 16:50    Post subject:  

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 ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Tue 27 Feb 2007, 03:22    Post subject: 2.02  

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 Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Gekko


Joined: 22 Jul 2006
Posts: 445
Location: Sydney, New South Wales

PostPosted: Tue 27 Feb 2007, 05:31    Post subject:  

Oh yeah? Pfft to you. lol. I'll look, this weekend. Bah. You work me too hard lol.
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Thu 01 Mar 2007, 16:51    Post subject: Work hard  

We work you hard, but the rewards are high Wink
_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
MaZZly

Joined: 14 Dec 2007
Posts: 23

PostPosted: Sun 23 Dec 2007, 09:06    Post subject:  

http://www.ecomoney.eu/puppy/pups/networking/dnsmasq_and_friends.pup

Bandwidth Limit Exceeded
anyone got a mirror?
Back to top
View user's profile Send private message 
john biles


Joined: 17 Sep 2006
Posts: 1401
Location: Australia

PostPosted: Tue 25 Dec 2007, 01:30    Post subject:  

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 Very Happy Very Happy Very Happy Very Happy Very Happy

_________________
Legacy OS 2.1 LTS Released! Install me on a new! EXT2 Partition with 500Mb of swap and I'll be happy. Razz
Legacy OS 4 Released! Install to newer legacy hardware / early EeePC's Very Happy
Back to top
View user's profile Send private message Visit poster's website 
MaZZly

Joined: 14 Dec 2007
Posts: 23

PostPosted: Tue 25 Dec 2007, 08:28    Post subject:  

now i have my internet up and running again since i reinstalled puppy Very Happy

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 Wink im lazy
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Fri 08 May 2009, 19:34    Post subject:  

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 Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 09 May 2009, 10:53    Post subject:  

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 Crying or Very sad

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0926s ][ Queries: 12 (0.0104s) ][ GZIP on ]