How do I set up a router with Puppy?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

How do I set up a router with Puppy?

#1 Post by MU »

Hi,

I want to do this:

i have a ADSL-flatrate.
I have an old Pentium 200.
I want to set it up with Puppy and Apache, so that it is always online and can serve you with Dotpups.

I also have a Notebook.
I need it to work and to surf the Web.
So i want to connect it with the ethernet-network-card to the Puppy-Webserver (you call it Gateway then?) to access the Web.

Question:
What do I have to set up for that?
I can set up Apache with httpd.conf, but my knowledge of Networks is not good.
I think I need a program on the Webserver-machine, thats leads the notebook through to the Web?

Thanks, Mark

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Re: Puppy-Gateway?

#2 Post by Lobster »

I am assuming you jave an ADSL modem connected to one computer and to the internet? It sounds like the easiest solution is a router.

An ethernet router takes two or more inputs and has one input to your modem.

You can think of it splitting and queing the system. Are you using cable or wifi? Wifi is the same without the cable.

Maybe someone has a router they can provide? That would be the simplest solution. Be interested in others suggestions.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

I have cable.
I think routers are not very expensive, 30-40 Euro.

That sounds like a good solution.

But as I would use the P200 for nothing else, it could serve as a router too, no?
It just needs a second Ethernet-Card, one for the ADSL-modem, one for the Notebook.
Those cards just cost 5-15 Euro.

Mark

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

yep 30-40 Euro new.

Yes I understand what you are trying to do as I had a similar idea. With a dedicated router there will be no speed loss but if the computer is routing and serving I have a feeling this will be less effective (can someone explain this?). There is nothing to go wrong with routers (except the connections so even second hand they tend to be OK).
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

No, there should be no loss in speed.
Ethernetcards have 10 Mbit or 100 Mbit.

My ADSL just has 2 Mbit.
In big companies, Gateways route hundrets of clients to the web.

Mark

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

Previous posts

#6 Post by raffy »

This is great.

Rarsa has posted detailed instructions in this forum about setting up the network like that, and dvw86 has setup a server like that sometime ago - he may have some ideas.

Edit: Maybe i saw that in another forum :oops: Will check on it and PM you.

Rarsa's post is here, but may be different from what you need - http://www.murga.org/~puppy/viewtopic.php?t=2163
Last edited by raffy on Fri 11 Nov 2005, 09:23, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#7 Post by MU »

Thanks raffy, I will try to find it tonight, when I repaired my computer (the fan is dying).

Greets, Mark

Guest

#8 Post by Guest »

Two NICS, use ' ifconfig ' to set their addresses and netmask and ' route' to set the tables.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#9 Post by rarsa »

Raffy,

My post is for a completelly different problem.

MU,

Here is a good link http://www.homenethelp.com/web/faq/shar ... router.asp

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#10 Post by dvw86 »

I've done that exact thing with OS X as the web server and gateway. Setting up OS X to do that is much different than Puppy though. While it worked fine, I still ended up just getting a router. The router was (A) easier to set up for port forwarding when it came to applications like Bit-Torrent (B) costs less to have on all the time and (C) takes up less space on the desk. My server also started getting a lot of traffic and even though I have a 3 meg connection, it slowed down to almost dial up speeds.

User avatar
aahhaaa
Posts: 341
Joined: Fri 07 Oct 2005, 03:21
Location: Lower Michigan, North America

#11 Post by aahhaaa »

I was reading up on routers recently, different kinds of networking. One of their more complex functions is traffic direction, and config'ing seems important. If you have people d/ling different files at the same time, there are priority demands on your HD, RAM, & CPU bus, you'd want to be sure to give your primary computer a high priority.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#12 Post by dvw86 »

aahhaaa wrote:I was reading up on routers recently, different kinds of networking. One of their more complex functions is traffic direction, and config'ing seems important. If you have people d/ling different files at the same time, there are priority demands on your HD, RAM, & CPU bus, you'd want to be sure to give your primary computer a high priority.
That is correct. Some of the nicer routers will let you limit how much bandwidth each service or port can use. As I found out, this is something to consider when serving up large files for a popular Linux OS :)

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#13 Post by MU »

I bought a second nic today, and will try to use the P200 as router and Webserver in the next days.
Thanks for all tips so far :)

Mark

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

Simple Internet connection sharing

#14 Post by raffy »

Found it! I guess this is for simple Internet connection sharing, meaning, use an existing connection, but use two network cards in one PC:
I use the Internet from eth0 and i try to share connection (NAT) to eth1.
I set eth1 with ip 192.168.0.1 mask 255.255.255.0 .
eth0 is with net ip (real) , mask 255.255.255.0 gateway + DNS

I set other computers which are connected to eth1 with ip's 192.168.0.2/255,
mask 255.255.255.0 and gateway 192.168.0.1
I can ping all ip's but they can't ping me .

and then set :

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

No Internet on computers connected to eth1 (no ping to ip which are in the network with the net)

then set:

iptables - t nat -A POSTROUTING -o eth0 -j SNAT -to-source "netip"

add:

iptables -A PREROUTING -i eth0 -j DNAT --to-destination 192.168.0.1

enable forwarding too with

echo 1 > /proc/sys/net/ipv4/ip_forward
I have been keeping this set of instructions (culled from different forums) for a day like this, but have not tried it yet :oops: (especially that last line - must be different for Puppy)

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#15 Post by MU »

Thanks Raffy, I also will search my german board with these keywords.
There were many threads with IPtables in the past years.

There also should be a HowTo in the web.
I will try to document, how I realize it on puppy then :)

Mark

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

Beginners Help

#16 Post by ecomoney »

I use the Internet from eth0 and i try to share connection (NAT) to eth1.
I set eth1 with ip 192.168.0.1 mask 255.255.255.0 .
eth0 is with net ip (real) , mask 255.255.255.0 gateway + DNS

I set other computers which are connected to eth1 with ip's 192.168.0.2/255,
mask 255.255.255.0 and gateway 192.168.0.1
I can ping all ip's but they can't ping me .

and then set :

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

No Internet on computers connected to eth1 (no ping to ip which are in the network with the net)

then set:

iptables - t nat -A POSTROUTING -o eth0 -j SNAT -to-source "netip"

add:

iptables -A PREROUTING -i eth0 -j DNAT --to-destination 192.168.0.1

enable forwarding too with

echo 1 > /proc/sys/net/ipv4/ip_forward
Hi Raffy, thanks for that

May we have a "beginners help" blow by blow run down of how to do that plzzzz!!!!
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Auda
Posts: 131
Joined: Sun 08 May 2005, 20:08
Location: New Zealand ( Christchurchish )

#17 Post by Auda »

Unless you specificaly want to use puppy have a look at Freesco
http://forums.freesco.org/support/
Freesco a single floppy router and firewall. Its instalable on a hard drive or cd and will run Apache, ftp, mail, etc.
Auda

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#18 Post by sunburnt »

Mark; in Win. at least it's called a proxy, Linux maybe not.
Try using the Freesco Router (Free Cisco Router), it only needs a floppy to boot & work, will run off a HD also, small fast, simple to setup & use, has http, ftp, routing, & a pile of packages for it, NFS, Samba, etc.
It's what I'll be using for the LanPuppy server if Puppy can't be fixed for dhcp & Samba servers.

http://freesco.org/

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

Smoothwall

#19 Post by ecomoney »

Were using smoothwall at the momen (www.smoothwall.org), That turns the pc into a dedicated firewall and rounter. Its excellent, but the pc we are using for this could also easily run puppy and solve a lot of domestic problems ;-)
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
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#20 Post by edoc »

sunburnt wrote:Mark; in Win. at least it's called a proxy, Linux maybe not.
Try using the Freesco Router (Free Cisco Router), it only needs a floppy to boot & work, will run off a HD also, small fast, simple to setup & use, has http, ftp, routing, & a pile of packages for it, NFS, Samba, etc.
It's what I'll be using for the LanPuppy server if Puppy can't be fixed for dhcp & Samba servers.

http://freesco.org/
Can you add me to a LanPuppy list so I may be in the loop as it is developed? I just PM's another Forum member asking of there was anything like that in the works!

I am not smart enough to help meaningfully in development but seem to have the gift of breaking things -- useful in alpha and beta testing I suppose!

Thanks! doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Post Reply