Wireless internet router ..

I would like to share mobile internet to ethernet devices and was thinking if that would be something one can do with rpi?

Any examples around?

Thanks!

Reply to
Bud Spencer
Loading thread data ...

With WiFi sure, with ethernet cables the number of ethernet ports (one) is a pretty obvious limitiation. For that it would be better to buy a real router with USB than mess about with multiple USB-Ethernet adapters on the rPi, in my opinion.

Perhaps this would be of interest?

formatting link

Yes, I'm planning to do the same thing (if you mean WiFi instead of ethernet) with an rPi ZeroW and OpenWRT, as discussed here a while back (though I still haven't got it set up yet).

formatting link

It's possible with "normal" Linux distros too, but as I'm keen on OpenWRT, I haven't made note of any of the tutorials that have come up in searches. They're out there though.

--
__          __ 
#_ < |\| |< _#
Reply to
Computer Nerd Kev

But why would I need multiple ethernet adapters?

If the setup is like this:

Mobile wifi internet hotspot (phone or what ever) | connecting to rpi via wifi | rpi connected to ethenet switch via cable | other devices are connected to this switch

I see only one ethernet from rpi or I'm I missing something here?

There might be other devices that can connect directly to the wifi but that's nothing to do with rpi though, since it's job is only direct trafic from lan to the wifi hotspot, right?

Reply to
Bud Spencer

I misinterpreted that in the OP, assuming a dedicated mobile broadband modem connected via USB, which is what I use for my home internet.

Also assumed a single-device solution rather than wanting to connect with a switch, that would be better than the USB-Ethernet adapters certainly. If you could save needing the switch by using a router board with sufficient ethernet ports, that would still be my recommendation from the perspective of reliability and power consumption though (cost too, if you don't already have the switch).

If using a Raspberry Pi model other than the Pi4, note the speed limitations of the Ethernet because even the onboard port is actually connected via USB.

Sure.

--
__          __ 
#_ < |\| |< _#
Reply to
Computer Nerd Kev

On 17/08/2019 02:54, Bud Spencer wrote: []

I purchased this box to connect to the Ethernet port on a TV and allow that TV to participate in my house Wi-Fi.

formatting link

Perhaps you could plug that into your Ethernet switch (having set it up with a PC or whatever)?

--
Cheers, 
David 
Web: http://www.satsignal.eu
Reply to
David Taylor

It goes pretty well. Contrary to other messages, even an old original Pi runs quite well as the router.

You have to set up two networks, one for the WLAN with address and subnet probably with DHCP from the wireless net, and another for the wired network. You should use a RFC1918 private subnet address range for it.

To route between the networks, you need to set up a masquerading firewall in the Pi (Google for instructions). You may (and should) set up a DNS cache and DHCP server in the Pi using the dnsmasq program.

I'm also running a NTP time server in the Pi, but it is more a convenience than a necessity.

--

-TV
Reply to
Tauno Voipio

Apple phones can be configured to 'look' like a USB ethernet dongle

--
"When one man dies it's a tragedy. When thousands die it's statistics." 

Josef Stalin
Reply to
The Natural Philosopher

It should do as long as the bandwidth is low enough.

Or you could just bridge ethernet and WLAN and leave the hotspot to do all that.

--
Steve O'Hara-Smith                          |   Directable Mirror Arrays 
C:\>WIN                                     | A better way to focus the sun 
The computer obeys and wins.                |    licences available see 
You lose and Bill collects.                 |    http://www.sohara.org/
Reply to
Ahem A Rivet's Shot

As can Android phones (they call it USB tethering), you can also link over bluetooth on mine apparently, I've never tried it.

-- Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. |

formatting link

Reply to
Ahem A Rivet's Shot

That should work fine with the rpi working either as a switch (simple) or router (more complex but adds security options for the wired LAN). Personally I'd go with setting it up as a switch, especially if there are other wireless clients.

--
Steve O'Hara-Smith                          |   Directable Mirror Arrays 
C:\>WIN                                     | A better way to focus the sun 
The computer obeys and wins.                |    licences available see 
You lose and Bill collects.                 |    http://www.sohara.org/
Reply to
Ahem A Rivet's Shot

Yep. It is buried deep in the menus so I never noticed it

--
New Socialism consists essentially in being seen to have your heart in  
the right place whilst your head is in the clouds and your hand is in  
someone else's pocket.
Reply to
The Natural Philosopher

Thanks for the suggestion, but I'd like to have a bit more saying what data goes and where, hence router thingie is more like what I'm looking for.

Reply to
Bud Spencer

Fruits are the worst thing to eat for human beings ...

Reply to
Bud Spencer

No. Starch is.

-- Those who want slavery should have the grace to name it by its proper name. They must face the full meaning of that which they are advocating or condoning; the full, exact, specific meaning of collectivism, of its logical implications, of the principles upon which it is based, and of the ultimate consequences to which these principles will lead. They must face it, then decide whether this is what they want or not.

Ayn Rand.

Reply to
The Natural Philosopher

I was thinking rpi 3 b ot b+ .. since it's basically only for the trafic to the wild and back it doesn't matter if eth is only 100 base and not

1000 base.

My switch is, of course 1000 base, but rpi has nothing to do with that traffic, but to make sure all is fine and dandy and nothing goes into the wild that shouldn't.

What comes to networks I think wifi is just as it is and what ever device that is that is doing the AP can handle that side.

On the ethernets I don't need DHCP. I can manage with static IP's alright

Makes it simpler to control the trafic anyway methinks

So this thing seems like doable then.

I'll have to start digging some more ...

Thanks for everyone for the input!

Reply to
Bud Spencer

Stratch is up there in the list, yes. But fruits are at the very top. Starch is more suitable, but bad still.

Reply to
Bud Spencer

Not according to medical research

--
There is something fascinating about science. One gets such wholesale  
returns of conjecture out of such a trifling investment of fact. 

Mark Twain
Reply to
The Natural Philosopher

Reading the wrong research then? There is so many peer reviewed "research" and "study" out there that has nothing to do with reality. But that's academia for you.

Anyway. This is off-topic, but say this much, sugars are the worst and fructose and such nastyness in fruits is the worst of the sugars, so it's kinda no brainer.

Keep up the good heatlh anyway!

Reply to
Bud Spencer

No. According to research starch, which converts directly to glucose, is way nastier tha fructose.

Bread is the worst form of starch as well. And is nearly ALL starch.

Fruits - even tropical fruits - have far more roughage vitamins and water than they do sugars

Bit late for that

--
Karl Marx said religion is the opium of the people. 
But Marxism is the crack cocaine.
Reply to
The Natural Philosopher

As a type 2 diabetic who has spent a considerable time monitoring my blood glucose levels I can confirm that starches do indeed raise your BG levels considerably & for a prolonged period white bread is definitely the worst offender. Although fruits do have a varying amounts of sugar (grapes are considered Sugar bombs by most diabetics they do at least contain nutrients & vitamins. also if high in fibre the slow down the absorption of sugar causing less of a spike. Apples & strawberries are surprisingly good in this respect

--
 no BSD fans ? 
 Elric: it's hard to be a gamer and a bsd fan :p
Reply to
Alister

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.