Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #4442 > unrolled thread

Share wifi internet to ethernet devices

Started byBud Spencer <bud@campo.verano.it>
First post2019-08-17 01:34 +0300
Last post2019-08-19 11:59 +0000
Articles 18 — 10 participants

Back to article view | Back to comp.os.linux.networking


Contents

  Share wifi internet to ethernet devices Bud Spencer <bud@campo.verano.it> - 2019-08-17 01:34 +0300
    Re: Share wifi internet to ethernet devices Dan Purgert <dan@djph.net> - 2019-08-17 00:15 +0000
      Re: Share wifi internet to ethernet devices Bud Spencer <bud@campo.verano.it> - 2019-08-17 03:47 +0300
        Re: Share wifi internet to ethernet devices Dan Purgert <dan@djph.net> - 2019-08-17 01:09 +0000
          Re: Share wifi internet to ethernet devices Bud Spencer <bud@campo.verano.it> - 2019-08-17 04:44 +0300
            Re: Share wifi internet to ethernet devices Stefan Monnier <monnier@iro.umontreal.ca> - 2019-08-25 17:06 -0400
        Re: Share wifi internet to ethernet devices "Carlos E.R." <robin_listas@es.invalid> - 2019-08-17 11:15 +0200
          Re: Share wifi internet to ethernet devices Bud Spencer <bud@campo.verano.it> - 2019-08-17 15:21 +0300
            Re: Share wifi internet to ethernet devices "Carlos E.R." <robin_listas@es.invalid> - 2019-08-17 20:41 +0200
      Re: Share wifi internet to ethernet devices William Unruh <unruh@invalid.ca> - 2019-08-17 15:11 +0000
      Re: Share wifi internet to ethernet devices Johann Beretta <beretta@nun-ya-bizness.com> - 2019-08-23 20:46 -0700
    Re: Share wifi internet to ethernet devices Grant Taylor <gtaylor@tnetconsulting.net> - 2019-08-16 21:25 -0600
      Re: Share wifi internet to ethernet devices Bud Spencer <bud@campo.verano.it> - 2019-08-17 15:22 +0300
        Re: Share wifi internet to ethernet devices David Brown <david.brown@hesbynett.no> - 2019-08-17 15:23 +0200
          Re: Share wifi internet to ethernet devices Bud Spencer <bud@campo.verano.it> - 2019-08-17 18:02 +0300
            Re: Share wifi internet to ethernet devices Ken Hart <kwhart1@frontier.com> - 2019-08-17 20:22 -0400
        Re: Share wifi internet to ethernet devices Grant Taylor <gtaylor@tnetconsulting.net> - 2019-08-17 21:36 -0600
    Re: Share wifi internet to ethernet devices Jorgen Grahn <grahn+nntp@snipabacken.se> - 2019-08-19 11:59 +0000

#4442 — Share wifi internet to ethernet devices

FromBud Spencer <bud@campo.verano.it>
Date2019-08-17 01:34 +0300
SubjectShare wifi internet to ethernet devices
Message-ID<alpine.BSF.2.21.9999.1908170132390.42450@cerebro.liukuma.net>
What would be the best way to share wireless internet connection to 
different wired devices?

I do have switch and all, but don't really know how to do this.

[toc] | [next] | [standalone]


#4443

FromDan Purgert <dan@djph.net>
Date2019-08-17 00:15 +0000
Message-ID<slrnqlehpr.5oj.dan@djph.net>
In reply to#4442
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Bud Spencer wrote:
> What would be the best way to share wireless internet connection to 
> different wired devices?

Do these devices have wireless cards?  If not, no wireless LAN.

>
> I do have switch and all, but don't really know how to do this.

Plug everything in ... let your router (probably supplied by the ISP)
handle assigning addresses.
>
>


-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl1XRzoACgkQjhHd8xJ5
ooF/rggAneC8IWh8yNUz/EJoq59WN6PykGo+j47OWLM9/ZAr22SxF+963za7Y3S2
Xq41YH16GV6waMZjGexBW0WUHWrc5lwaHeVA9jvFSPFCk0gTapLkAjc2hDF0e2m5
XD2LRfVmqUcsL7ntBkpHgcBBZScoAeDeHzbHry/qE2+CTjcCCi4YlOwHspJ2MuZ5
sH9qlY+AzWUjeZ9HSCJ35VL/j/Z3UOme5/QJM5YDufKluCf8EJ7jSH2RWRo7zn8e
CwJpJ0t3fQm4zvj28RTC2G4ByOxpzNPAAm/gNxJ3CXh2ezt7tGX1+ho6JHThdKYs
Fmgsa9kvqBOov3FH7UlNR3UzZCYeuw==
=ehfu
-----END PGP SIGNATURE-----

-- 
|_|O|_| 
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281

[toc] | [prev] | [next] | [standalone]


#4444

FromBud Spencer <bud@campo.verano.it>
Date2019-08-17 03:47 +0300
Message-ID<alpine.BSF.2.21.9999.1908170344000.42450@cerebro.liukuma.net>
In reply to#4443
On Sat, 17 Aug 2019, Dan Purgert wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Bud Spencer wrote:
>> What would be the best way to share wireless internet connection to
>> different wired devices?
>
> Do these devices have wireless cards?  If not, no wireless LAN.

I think you misunderstood what I'm trying to achieve here ...

>> I do have switch and all, but don't really know how to do this.
>
> Plug everything in ... let your router (probably supplied by the ISP)
> handle assigning addresses.

There is no such router. What I'm trying to do is share wifi internet 
connection, from phone hotspot or what ever device that might be, to the 
other devices that doesn't have wifi via my laptop.

[toc] | [prev] | [next] | [standalone]


#4445

FromDan Purgert <dan@djph.net>
Date2019-08-17 01:09 +0000
Message-ID<slrnqleku5.5oj.dan@djph.net>
In reply to#4444
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Bud Spencer wrote:
> On Sat, 17 Aug 2019, Dan Purgert wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Bud Spencer wrote:
> There is no such router. What I'm trying to do is share wifi internet 
> connection, from phone hotspot or what ever device that might be, to the 
> other devices that doesn't have wifi via my laptop.

So how does this hotspot create the neteork? wifi?
>
>


-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl1XU8QACgkQjhHd8xJ5
ooEZkgf/SAfDbhrA64khXps7VZ+iFlHyMWKHylSKtnI7/MZU3oLhjf7sF3ei5sum
IkilY7vZKWSETEISs1pZs2iqmzoMzI+Os7Ie5Zd3vG9l5z8XnMmESkTZtwoMyoI/
asctKQO5PhIRQ4O69QJ2U7U94gSK0iP92yyxeBSTtWkPiP6iFzVHqMFUUF2dPXTP
tmMm5QMrCjNutLSMxYqEh3ByOZgC6n9fFlMge2sBFAzc8VO7Ebe6bFF4kCC3tlTS
DtNmMzZaaBzwvQwoHuonw38/khVM5OpTZfTlVUCZuxy7oxoFuFAuBMTNzuRWhXA0
iXIoFBVZumFHZ4g4Ob7gr6hhb/RwbQ==
=2Uxt
-----END PGP SIGNATURE-----

-- 
|_|O|_| 
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281

[toc] | [prev] | [next] | [standalone]


#4446

FromBud Spencer <bud@campo.verano.it>
Date2019-08-17 04:44 +0300
Message-ID<alpine.BSF.2.21.9999.1908170442510.42450@cerebro.liukuma.net>
In reply to#4445
On Sat, 17 Aug 2019, Dan Purgert wrote:

>> There is no such router. What I'm trying to do is share wifi internet
>> connection, from phone hotspot or what ever device that might be, to the
>> other devices that doesn't have wifi via my laptop.
>
> So how does this hotspot create the neteork? wifi?

No. It creates letters that are sent by the mail.

[toc] | [prev] | [next] | [standalone]


#4466

FromStefan Monnier <monnier@iro.umontreal.ca>
Date2019-08-25 17:06 -0400
Message-ID<jwv36hpq7k5.fsf-monnier+comp.os.linux.networking@gnu.org>
In reply to#4446
Bud Spencer [2019-08-17 04:44:22] wrote:

> On Sat, 17 Aug 2019, Dan Purgert wrote:
>
>>> There is no such router. What I'm trying to do is share wifi internet
>>> connection, from phone hotspot or what ever device that might be, to the
>>> other devices that doesn't have wifi via my laptop.
>>
>> So how does this hotspot create the neteork? wifi?
>
> No. It creates letters that are sent by the mail.

Too slow.  Try https://en.wikipedia.org/wiki/IP_over_Avian_Carriers


        Stefan

[toc] | [prev] | [next] | [standalone]


#4448

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-08-17 11:15 +0200
Message-ID<p6tk2g-25j.ln1@Telcontar.valinor>
In reply to#4444
On 17/08/2019 02.47, Bud Spencer wrote:
> On Sat, 17 Aug 2019, Dan Purgert wrote:


>> Bud Spencer wrote:
>>> What would be the best way to share wireless internet connection to
>>> different wired devices?
>>
>> Do these devices have wireless cards?  If not, no wireless LAN.
> 
> I think you misunderstood what I'm trying to achieve here ...
> 
>>> I do have switch and all, but don't really know how to do this.
>>
>> Plug everything in ... let your router (probably supplied by the ISP)
>> handle assigning addresses.
> 
> There is no such router. What I'm trying to do is share wifi internet
> connection, from phone hotspot or what ever device that might be, to the
> other devices that doesn't have wifi via my laptop.

Trivial: connect to the hotspot by WiFi. Any computer nearby can do the
same simultaneously, up to a limit. In my case, six machines. Enough for
my laptop and tablet.

Else:  Connect a wifi router to that wifi hot spot. The router has
ethernet out cables.

Other: get an extra SIM card, put it on a router that can do the
connection instead of the computer and sets up a proper wifi hotspot +
ethernet. There are some ISPs here that give you both sim and router
with the contract.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#4449

FromBud Spencer <bud@campo.verano.it>
Date2019-08-17 15:21 +0300
Message-ID<alpine.BSF.2.21.9999.1908171518470.42450@cerebro.liukuma.net>
In reply to#4448
On Sat, 17 Aug 2019, Carlos E.R. wrote:

>
> Trivial: connect to the hotspot by WiFi. Any computer nearby can do the
> same simultaneously, up to a limit. In my case, six machines. Enough for
> my laptop and tablet.

Yes.

> Else:  Connect a wifi router to that wifi hot spot. The router has
> ethernet out cables.

No.

> Other: get an extra SIM card, put it on a router that can do the
> connection instead of the computer and sets up a proper wifi hotspot +
> ethernet. There are some ISPs here that give you both sim and router
> with the contract.

And again no.

Initial question was about how to do all this with a laptop, for example.

[toc] | [prev] | [next] | [standalone]


#4454

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-08-17 20:41 +0200
Message-ID<5cul2g-q42.ln1@Telcontar.valinor>
In reply to#4449
On 17/08/2019 14.21, Bud Spencer wrote:
> On Sat, 17 Aug 2019, Carlos E.R. wrote:
> 
>>
>> Trivial: connect to the hotspot by WiFi. Any computer nearby can do the
>> same simultaneously, up to a limit. In my case, six machines. Enough for
>> my laptop and tablet.
> 
> Yes.
> 
>> Else:  Connect a wifi router to that wifi hot spot. The router has
>> ethernet out cables.
> 
> No.

It doesn't have cables or you do not like it? :-)

> 
>> Other: get an extra SIM card, put it on a router that can do the
>> connection instead of the computer and sets up a proper wifi hotspot +
>> ethernet. There are some ISPs here that give you both sim and router
>> with the contract.
> 
> And again no.
> 
> Initial question was about how to do all this with a laptop, for example.

Well, I knew how to do it with openSUSE and SuSEfirewal2. I'm not
familiar with a generic method.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#4453

FromWilliam Unruh <unruh@invalid.ca>
Date2019-08-17 15:11 +0000
Message-ID<qj95el$92p$1@dont-email.me>
In reply to#4443
On 2019-08-17, Dan Purgert <dan@djph.net> wrote:
>
> Bud Spencer wrote:
>> What would be the best way to share wireless internet connection to 
>> different wired devices?
>
> Do these devices have wireless cards?  If not, no wireless LAN.

From what he said, I would assume that there is one computer which has a
wireless card which can link to some router/switch which has access to
the WWW. That computer and the others in his house only have ethernet
connection to that, or another, router. So his question is -- can he get
his ethernet connected machines to be able to access the WWW via that
one machine which is connected to the WWW by its wireless connection?

The answer is yes. The clue is NAT-- Network address translation. The
wireless machine needs connection to both the wireless and to the
ethernet that all of the others are connected to. Then you need to tell
the other machines that for outside addresses, it must route the packets
throught that machine which has both wireless and wired. That machine
has its firewall software set up to route all of those packets through
the wireless using NAT.

>
>>
>> I do have switch and all, but don't really know how to do this.
>
> Plug everything in ... let your router (probably supplied by the ISP)
> handle assigning addresses.
>>
>>
>
>
>

[toc] | [prev] | [next] | [standalone]


#4460

FromJohann Beretta <beretta@nun-ya-bizness.com>
Date2019-08-23 20:46 -0700
Message-ID<qjqbus$asq$1@dont-email.me>
In reply to#4443

[Multipart message — attachments visible in raw view] — view raw

On 8/16/19 5:15 PM, Dan Purgert wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Bud Spencer wrote:
>> What would be the best way to share wireless internet connection to 
>> different wired devices?
> 
> Do these devices have wireless cards?  If not, no wireless LAN.
> 

Bullcrap. There are plenty of devices that can take a wireless signal
and convert it to a wired signal.

Here's one of an uncountable number:

https://www.amazon.com/IOGEAR-Ethernet-2-WiFi-Universal-Wireless-GWU637/dp/B018YPWORE/

[toc] | [prev] | [next] | [standalone]


#4447

FromGrant Taylor <gtaylor@tnetconsulting.net>
Date2019-08-16 21:25 -0600
Message-ID<qj7s88$1nr$1@tncsrv09.home.tnetconsulting.net>
In reply to#4442
On 8/16/19 4:34 PM, Bud Spencer wrote:
> What would be the best way to share wireless internet connection to 
> different wired devices?
> 
> I do have switch and all, but don't really know how to do this.

Do you want to do it with Linux?  Or are you willing to buy a relatively 
inexpensive device?

If you're willing to buy the device, look for (what I know to be called) 
a "gaming adapter".  It is effectively a wireless client that connects 
(bridges) to a wired network.  So it could connect the switch of wired 
devices to the wired network.

You can get Linux to do the same thing with bridging and / or routing.



-- 
Grant. . . .
unix || die

[toc] | [prev] | [next] | [standalone]


#4450

FromBud Spencer <bud@campo.verano.it>
Date2019-08-17 15:22 +0300
Message-ID<alpine.BSF.2.21.9999.1908171521220.42450@cerebro.liukuma.net>
In reply to#4447
On Fri, 16 Aug 2019, Grant Taylor wrote:

>
> Do you want to do it with Linux?  Or are you willing to buy a relatively 
> inexpensive device?

Yes and no.

That's why I did ask for input ...

[toc] | [prev] | [next] | [standalone]


#4451

FromDavid Brown <david.brown@hesbynett.no>
Date2019-08-17 15:23 +0200
Message-ID<qj8v4c$874$1@dont-email.me>
In reply to#4450
On 17/08/2019 14:22, Bud Spencer wrote:
> On Fri, 16 Aug 2019, Grant Taylor wrote:
> 
>>
>> Do you want to do it with Linux?  Or are you willing to buy a 
>> relatively inexpensive device?
> 
> Yes and no.
> 
> That's why I did ask for input ...

Is this what you have:


External Wifi source (such as neighbour's Wifi network)

	----  Wifi ----

Laptop with Wifi and Ethernet port, running Linux

	---- Ethernet cable ----

Ethernet switch

	---- Ethernet cables -----

Other PC's, games consoles, etc., connected by Ethernet




And what you want is for your laptop to act as a router between the Wifi 
and your Ethernet LAN?

Should the other Ethernet devices have addresses only on the private 
Ethernet LAN, or should they be logically attached to the Wifi?


That is straightforward to set up if you are familiar with IP tables and 
routing - your laptop would be set up as a router with masquerading, 
DHCP, etc., like a normal NAT router setup.  Or you have bridging 
between the two laptop interfaces - it depends on the logical network 
setup you want.

An off-the-shelf device is going to be simpler to use and work with, and 
means that everything is still connected even when your laptop is 
sleeping, but that is up to you.

[toc] | [prev] | [next] | [standalone]


#4452

FromBud Spencer <bud@campo.verano.it>
Date2019-08-17 18:02 +0300
Message-ID<alpine.BSF.2.21.9999.1908171758260.13228@cerebro.liukuma.net>
In reply to#4451
On Sat, 17 Aug 2019, David Brown wrote:

> External Wifi source (such as neighbour's Wifi network)

Not neighbour's ... 1.5 km to the nearest ...

> 	----  Wifi ----
>
> Laptop with Wifi and Ethernet port, running Linux
>
> 	---- Ethernet cable ----
>
> Ethernet switch
>
> 	---- Ethernet cables -----
>
> Other PC's, games consoles, etc., connected by Ethernet

True thing!


> And what you want is for your laptop to act as a router between the Wifi and 
> your Ethernet LAN?
>
> Should the other Ethernet devices have addresses only on the private Ethernet 
> LAN, or should they be logically attached to the Wifi?
>
>
> That is straightforward to set up if you are familiar with IP tables and 
> routing - your laptop would be set up as a router with masquerading, DHCP, 
> etc., like a normal NAT router setup.  Or you have bridging between the two 
> laptop interfaces - it depends on the logical network setup you want.
>
> An off-the-shelf device is going to be simpler to use and work with, and 
> means that everything is still connected even when your laptop is sleeping, 
> but that is up to you.

Yes and not all of them, but some.

I figured that I'll pop rpi to do the thing for me, so thanks for the 
entertaining inputs you all!

[toc] | [prev] | [next] | [standalone]


#4455

FromKen Hart <kwhart1@frontier.com>
Date2019-08-17 20:22 -0400
Message-ID<qja5nc$4up$1@gioia.aioe.org>
In reply to#4452
On 8/17/19 11:02 AM, Bud Spencer wrote:
> On Sat, 17 Aug 2019, David Brown wrote:
> 
>> External Wifi source (such as neighbour's Wifi network)
> 
> Not neighbour's ... 1.5 km to the nearest ...
> 
>>     ----  Wifi ----
>>
>> Laptop with Wifi and Ethernet port, running Linux
>>
>>     ---- Ethernet cable ----
>>
>> Ethernet switch
>>
>>     ---- Ethernet cables -----
>>
>> Other PC's, games consoles, etc., connected by Ethernet
> 
> True thing!
> 
> 
>> And what you want is for your laptop to act as a router between the 
>> Wifi and your Ethernet LAN?
>>
>> Should the other Ethernet devices have addresses only on the private 
>> Ethernet LAN, or should they be logically attached to the Wifi?
>>
>>
>> That is straightforward to set up if you are familiar with IP tables 
>> and routing - your laptop would be set up as a router with 
>> masquerading, DHCP, etc., like a normal NAT router setup.  Or you have 
>> bridging between the two laptop interfaces - it depends on the logical 
>> network setup you want.
>>
>> An off-the-shelf device is going to be simpler to use and work with, 
>> and means that everything is still connected even when your laptop is 
>> sleeping, but that is up to you.
> 
> Yes and not all of them, but some.
> 
> I figured that I'll pop rpi to do the thing for me, so thanks for the 
> entertaining inputs you all!
> 
> 

TP-Link AC750 Dual Band Wi-Fi Range Extender w/ Gigabit Ethernet Port
NETGEAR WiFi Range Extender EX3700

These devices are wifi range extenders with an ethernet jack. I would 
think you could plug a LAN switch into the ethernet port for using 
multiple devices. Both are in the $25-$30 range on Amazon.

I do not have any personal experience with either of these devices.

-- 
Ken Hart
kwhart1@frontier.com

[toc] | [prev] | [next] | [standalone]


#4456

FromGrant Taylor <gtaylor@tnetconsulting.net>
Date2019-08-17 21:36 -0600
Message-ID<qjah8n$pi5$1@tncsrv09.home.tnetconsulting.net>
In reply to#4450
On 8/17/19 6:22 AM, Bud Spencer wrote:
> On Fri, 16 Aug 2019, Grant Taylor wrote:
> 
>>
>> Do you want to do it with Linux?  Or are you willing to buy a 
>> relatively inexpensive device?
> 
> Yes and no.
> 
> That's why I did ask for input ...

Get the Linux machine to connect to the wireless and bridge the wireless 
interface to a wired interface.  Plug the wired interface into the switch.

brctl add-br br0
brctl add-if br0 wlan0
brctl add-if br0 eth0

That's from memory, so the syntax might not be completely correct.

You can do the same thing with the ip command from iproute2.  I don't 
remember the exact syntax.  It might be something like the following:

ip link add br0 type bridge
ip link set dev wlan0 master br0
ip link set dev eth0 master br0

Which ever method you use, remember to bring all of the interfaces up; 
br0, wlan0, eth0.



-- 
Grant. . . .
unix || die

[toc] | [prev] | [next] | [standalone]


#4457

FromJorgen Grahn <grahn+nntp@snipabacken.se>
Date2019-08-19 11:59 +0000
Message-ID<slrnqll3oh.cdo.grahn+nntp@frailea.sa.invalid>
In reply to#4442
On Fri, 2019-08-16, Bud Spencer wrote:
> What would be the best way to share wireless internet connection to 
> different wired devices?
>
> I do have switch and all, but don't really know how to do this.

You can ignore the wireless aspect; it's a higher-layer problem.

       +--------+
   A   | router |    B
  -----+        +------
       |        |  192.168.x.0/24
       +--------+

A is your wireless connection with the Internet behind it; B is your
wired one, with a switch on it.

The router should probably run a DHCP server for the B network
(although fixed addresses would work too) and should NAT traffic
for clients on B.  Should also offer DNS.

You can easily do this with Linux (or OpenBSD, or some other OS, or
dedicated hardware).

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .     .
\X/     snipabacken.se>   O  o   .

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.networking


csiph-web