User avatar
PangolinPaws
Posts: 89
Joined: Wed Mar 05, 2014 9:04 pm
Location: Wiltshire, UK
Contact: Website

Pi as local network (no internet) router

Thu Jul 02, 2015 9:30 am

Hello everyone.

A few friends and I are hoping to set up a little Raspberry Pi get together so that we can share what we've learned and perhaps start a bit of a collaborative project.

So that we can meet up anywhere (pub, coffee shop, park etc.) we're planning to bring along a laptop and Pi each and I intend to provide a wireless network so that all these devices can be connected to via SSH.

As always, I'm hoping to do this without the need to purchace any extra stuff.

My questions then, are:
1. Can I use my spare Pi (with suitable WiFi dongle etc.) as a router that multiple devices can connect to?

2. Can a laptop connected to this 'router' use SSH to access a second Pi also connected to the 'router'?

3. If so, will this setup work when there's no other access to the internet?

The answer to 1. seems to be Yes. I've found plenty of tutorials on setting up a WiFi router using the Pi, which is a good start, but can anyone help me with 2. and 3.?

I look forward to any suggestions.
Thank you!
https://github.com/PangolinPaw

User avatar
RaTTuS
Posts: 10531
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Pi as local network (no internet) router

Thu Jul 02, 2015 9:46 am

yes and yes
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
RogerW
Posts: 286
Joined: Sat Dec 20, 2014 12:15 pm
Location: London UK

Re: Pi as local network (no internet) router

Thu Jul 02, 2015 9:57 am

An additional question. Can another computer (pi or pc) ssh into the router pi and run programs on it in addition to its routing function?

User avatar
RaTTuS
Posts: 10531
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Pi as local network (no internet) router

Thu Jul 02, 2015 10:05 am

if you set it up right you should be able to run ad-hoc networks to share things with no RPi anyway - but an RPi may help things.

personally I'd wire them up and not use wireless but YMMV

how many PC's and RPi's are you looking at ?

there should be no issues with ssh - try it at home first ;-p
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
DougieLawson
Posts: 37079
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Pi as local network (no internet) router

Thu Jul 02, 2015 10:14 am

Make your RPi a secure access point with a DHCP server and you and your friends can all connect your machines if you have the AP password.

If someone has a phone with unlimited data then running that as a WiFi hotspot may have more value as you'll be able to go out to the public internet that way as well as being able to communicate between raspberries. (We've done that at SWAB Pi IG meetings a few times.)
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
PangolinPaws
Posts: 89
Joined: Wed Mar 05, 2014 9:04 pm
Location: Wiltshire, UK
Contact: Website

Re: Pi as local network (no internet) router

Thu Jul 02, 2015 4:10 pm

Thank you for your responses. I Shall set something up to test at home next.

Initially there will be 3 laptops connected to 3 Pi plus the one acting as the router. I figure that should be manageable (based on absolutely nothing :D ), right?
https://github.com/PangolinPaw

Return to “Networking and servers”