On 17.8.19 04:54, Bud Spencer wrote:
> On Sat, 17 Aug 2019, Computer Nerd Kev wrote:
>
>>
>> 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.
>
> 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?
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
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|