How do I share my internet connection?

Booting, installing, newbie
Message
Author
User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

Client Machine

#16 Post by ecomoney »

Thanks for that. What would I have to do on the client machine (the one the internet is being shared to), to enable this. I cant see a mention of another port in the script (where the net is sent "out" to).
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

bobbyok
Posts: 14
Joined: Fri 08 Dec 2006, 20:12

Internet Connection Sharing

#17 Post by bobbyok »

Hey Ecomoney,
I'm on the XP laptop now sharing internet with my Puppy machine in the back room. Worked flawlessly. I had to go to control panel..network connections..and then properties of my lan connection. Go to the Internet Protocol {TCP/IP} properties and set up ip addresses and dns manually. Just takes a sec and you're up and going.
Athlon xp1700+
768 megs ram
AOpen AON325 10/100
netopia wireless router

Compaq Ipaq 3670
SanDisk 128 meg combo wireless

compaq presario 2100
athlon 2600+
960 megs ram
dell truemobile 1300 wireless

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#18 Post by John Doe »

Great vid Ecomoney

made me think a lot. Thanks for that!!

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

Connection

#19 Post by ecomoney »

Hi Bobby

I havnt used Windows XP for over two years now, how would the same thing be done using puppy? Would it be "static IP' under the ethernet wizard? What would I set it to, and whats "dns"...sorry complete networking newb here. Good news that it can be done at last though!

Cheers John
Last edited by ecomoney on Mon 01 Jan 2007, 13:39, edited 1 time in total.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

bobbyok
Posts: 14
Joined: Fri 08 Dec 2006, 20:12

Internet Connection Sharing

#20 Post by bobbyok »

Hey Ecomoney,
Sorry it's taken me so long to respond. Got busy. I had to bring the laptop to the back room and wire it to my router. My laptop wireless adapter isn't puppy compatable.....yet.
Anyway..Puppy to Puppy internet sharing turned out to be a peice of cake. Here's what I did:
First- Set up your server machine{the one with the modem and either the firewall enabled sharing or the modified rc.local}.
Second- Fire up your client machine and go to the network wizard. Click on eth0{or whatever your eth is designated}. Click on static IP.
Enter your IP address = I use 192.168.0.10 for the laptop. This will be the IP address of your client machine...click ok. Enter your netmask = should pop up 255.255.255.0 automatically..click ok. Enter your default router = the IP address of your server machine. I have a very simple home network so mine is 192.168.0.1...click ok. Enter the IP address of a nameserver for resolving DNS names = the primary DNS IP of your internet service provider...click ok. That's it. Go to googling!
In my case I use att worldnet. I typed worldnet primary dns into google and the DNS numbers popped right up in the search. You can find most DNS numbers by going to your ISP's support webpage or simply call them and ask.
Whew..It took me longer to type this than it did to get the computers connected.

TO THE REAL PUPPY NETWORK GURU's OUT THERE:
The server/client setup here works well for me but you guys probably could come up with an easier setup than this{GUI maybe?}. Look it over and do your magic!

bobbyok
Posts: 14
Joined: Fri 08 Dec 2006, 20:12

Internet Connection Sharing

#21 Post by bobbyok »

This setup also works from a XP{server} to a Puppy{client} arangement. The DNS IP address still has to be entered on the Puppy machine. I'm in Puppy now sharing with a XP machine. Same setup thru network wizard. DHCP..I dunno.. Probably easier but beyond the bounds of my very limited networking expertise.
Bobby

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

Great Stuff

#22 Post by ecomoney »

Thank you Bobbyok, I wish I had talked to you sooner I would have saved me a lot of time. This was some months ago now.

It seems that puppy already has all of the software dependencies of a good firewall and router, all it needs is someone to incorporate the right wizards to automate it, I definetely agree with you.

I can see from my work a great opportunity for Windoze users to use puppy as a router/firewall/internet security product with just a few simple addons or the built in wizard. If for example they have just purchased a new computer to run Vista and want to find a use for the old one. After a while they would begin to wonder why their internet router runs faster, more reliably and without all the hassles of their all singing and dancing windoze box, and hopefully look into open source further!!!

There are already linux distros to do this, like smoothwall, but puppy has the advantage of making the older pc into a fully functional computer as well as a NAS box (network attached storage) and a print server which smoothwall cannot do without considerable tweaking. Puppy can work an similar kind of specs to smoothwall.

Something else that would be useful, would it be possible to share the connection out of several network cards at once? this way several other boxes could share a connecton just by adding a cheap ethernet network card. Wireless sharing would be nice to have too, as it would allow a cheap £10 wireless card and a old puppy pc to create a wireless hotspot, rather than about £50 for a dedicated router. In a business sense this would make it profitable for recyclers to use puppy to turn old pc's into internet connection sharing machines.

This feature needs a good developer to take it on :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
RobertB
Posts: 145
Joined: Tue 03 Jan 2006, 01:06
Location: Big D
Contact:

Re: Great Stuff

#23 Post by RobertB »

ecomoney wrote:Something else that would be useful, would it be possible to share the connection out of several network cards at once? this way several other boxes could share a connecton just by adding a cheap ethernet network card. Wireless sharing would be nice to have too, as it would allow a cheap £10 wireless card and a old puppy pc to create a wireless hotspot, rather than about £50 for a dedicated router. In a business sense this would make it profitable for recyclers to use puppy to turn old pc's into internet connection sharing machines.
I'm not sure it's all that useful to stuff more than two ethernet cards into a box. You can get a switch for under $10 US (about 20 pence UK at current exchange rates :) ), so all you have to do is plug the "output" into the hub/switch and you're all set. I'm worried that multiple cards will eventually start fighting over IRQ's and such, causing more headaches than they solve. Better to get those expert Puppy trainers working on giving Puppy basic firewall capability -- I love the idea of having Puppy start out as just a firewall, and then when Vista goes down (again) the always-loyal pup is ready to step in.

bobbyok
Posts: 14
Joined: Fri 08 Dec 2006, 20:12

Internet Connection Sharing

#24 Post by bobbyok »

I tend to agree with RobertB. Probably better to stick with only one net card{2 if you have cable or DSL} and a switch or wireless router. I'm using an old netopia 802.11G wireless router set in bridge mode with Puppy. I gave $1.99 for the router at a local thrift store. I can share internet all over my house, the yard, and even into the back pasture...lol. Pretty cheap hotspot setup.

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

Conversion Problems

#25 Post by ecomoney »

While were on the subject of economics, there are places in the world where 20 uk pence is worth about the same as ten dollars of their local currency, and plenty of places where its actually worth more. http://www.finfacts.com/biz10/globalwor ... capita.htm 2 dollars is about a months average wage in some places.

As much as I know a bit about economics, what would be the technical issues regarding using multiple network cards?
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
daftdog
Posts: 120
Joined: Thu 22 Jun 2006, 00:47
Location: Western Australia

#26 Post by daftdog »

bobbyok, thanx for the linuxforum link. I have been trying to share an internet connection for a couple of months now. I did as they said on the linuxforum and got both computers on the internet straight away.
And it is such a simple solution!
Thanx again.
"We are monkeys with money and guns." Tom Waits

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

Sharing Woes

#27 Post by ecomoney »

First- Set up your server machine{the one with the modem and either the firewall enabled sharing or the modified rc.local}.
Second- Fire up your client machine and go to the network wizard. Click on eth0{or whatever your eth is designated}. Click on static IP.
Enter your IP address = I use 192.168.0.10 for the laptop. This will be the IP address of your client machine...click ok. Enter your netmask = should pop up 255.255.255.0 automatically..click ok. Enter your default router = the IP address of your server machine. I have a very simple home network so mine is 192.168.0.1...click ok. Enter the IP address of a nameserver for resolving DNS names = the primary DNS IP of your internet service provider...click ok. That's it. Go to googling!
ok, I tried the setups with entering the ip addresses manually on the client machine. Im posting from my server machine now.

Just a few hints:-

You need to go into the ethernet configuration wizard and test both ethernet ports before the firewall wizard will recognise them, otherwise it bombs out with an error at the end.

you will need to use a special type of ethernet cable (crossed) to cennect this way, you can tell this if the clear plugs on the end of the cable colours are wired up differently rather than looking the same.

Questions

How do I find the ip address of my "client machine", is this the computer that the internet is connected through, i.e. between my modem and the pc I want to share the connection to. Do I put the Modems IP in? I did an "ifconfig" in a prompt but there isnt an ip addres for "eth1" (eth0 is my dhcp modem connected card and eth1 my connection to the client machine).

And yes, we do need a puppy networking guru to make a simple script for this!
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#28 Post by Sage »

All a little deja vu, perhaps, but I picked a powered hub out of a skip (even <20p) in the road outside an office being rewired for teraHetrz interconnects, no doubt, some years ago and forgot about it. When I switched to broadband - bingo - a wired network. Haven't bothered even to set up my wireless router yet. Most larger hubs (mine is 8-port) will have a push-button cross-over switch for one of the ports - useful for adding even more hubs, PCs, etc. Wired networks don't have to worry about interception, WEP, WPA, etc - like the stinger missile everything is wire-guided to the target. Make sure you use splayed-contact RJ-45 plugs if making up your own patch leads from (old recycled?) solid core TP cable, which is now back in favour on account of better stability, whatever that means.

bobbyok
Posts: 14
Joined: Fri 08 Dec 2006, 20:12

Sharing Woes

#29 Post by bobbyok »

Hi Ecomoney,
Good hints! The client IP isn't something you find..it's something you assign. Say your server IP is 198.162.0.1..then your client IP can be anything from 198.162.0.2 to 198.162.0.254. Each client you add will be the same except for the last number{192.168.0.X}.

User avatar
polux
Posts: 11
Joined: Fri 15 Dec 2006, 20:02
Location: Switzerland

#30 Post by polux »

It would be great if this post could be moved to the How To's section. :D

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

#31 Post by Flash »

It's a thread that starts out with a question and eventually arrives at an answer. That's what this forum is for. It doesn't quite qualify as a howto. :)

Would anyone care to clean it up and contribute a "how I did it" to the Howto section?

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

Howto

#32 Post by ecomoney »

I would love to, if Id actually learned how to do it. As a networking newb I still cant figure this out. Its had over 1600 page views so is obviously a very popular subject. Guess I will have to wait for the wizard to hopefully be included in a future version, or firestarter to be properly compiled.
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:

Easy internet connection sharing

#33 Post by ecomoney »

Just some news, Gekko has successfully compiled a .pup to easily share the internet connection between two ethernet ports on a puppy pc. It can be found here

http://www.murga-linux.com/puppy/viewtopic.php?t=15129

Currently it is in BETA but, judging by the fact that this post is here, its working ;-)
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#34 Post by Sage »

In the UK at least, one can observe by the junk piles outside folks' houses, that many are renewing their central heating systems at this time, hopefully with condensing combi boilers. It occurs to me that, whilst the plumber has your floorboards up, this would be an excellent time to slip in some TP network cables and a few dozen ports around the house? Wired networks are a lot less bovver than wireless, and, as I indicated earlier, are as secure as a wire-guided missile.

User avatar
RobertB
Posts: 145
Joined: Tue 03 Jan 2006, 01:06
Location: Big D
Contact:

Re: Easy internet connection sharing

#35 Post by RobertB »

ecomoney wrote:Just some news, Gekko has successfully compiled a .pup to easily share the internet connection between two ethernet ports on a puppy pc. It can be found here

http://www.murga-linux.com/puppy/viewtopic.php?t=15129

Currently it is in BETA but, judging by the fact that this post is here, its working ;-)
Thanks for the info! I'll see if I have time to try it out tonight... the only problem is that I have one ethernet card and a dial-up connection. Dollars to donuts it doesn't account for such an old-school setup... but it never hurts to try.

Post Reply