Sharing internet between T2 & V2

Moderators: Gully, peteru

Post Reply
User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Sharing internet between T2 & V2

Post by adoxa » Wed Aug 26, 2020 17:37

I have the T2 and V2 directly connected via ethernet; the T2 has a WiFi dongle. Is it possible for the V2 to share the T2's internet connection? A quick search found something about masquerading using iptables, but the T2 doesn't seem to have that. I don't even really need to share the internet, just the connection so I can access the V2 from the PC (although I suspect that's much the same thing).

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Sharing internet between T2 & V2

Post by MrQuade » Wed Aug 26, 2020 18:02

Masquerading wouldn't be the solution in a LAN environment. You'd need a bridge, but then I shudder at the thought of setting up a bridge between WiFi and Ethernet on the Wiz.

Buy a separate WiFi bridge :)
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Sharing internet between T2 & V2

Post by adoxa » Wed Aug 26, 2020 18:18

Nah, not important, just a thought.

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Sharing internet between T2 & V2

Post by MrQuade » Wed Aug 26, 2020 18:27

Not sure how much of this works or is available to the Wiz OS, bit this is what I am talking about.

https://wiki.debian.org/BridgeNetworkConnections

https://unix.stackexchange.com/question ... ith-debian
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

User avatar
peteru
Uber Wizard
Posts: 9741
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: Sharing internet between T2 & V2

Post by peteru » Wed Aug 26, 2020 19:28

You may need to opkg install bridge-utils if you want to configure bridging.

I'm not sure how well enigma2 will play with a bridged interface. It's possible it will just work. Sounds like an interesting experiment.

"Beauty lies in the hands of the beer holder."
Blog.

raymondjpg
Guru
Posts: 969
Joined: Sun Jul 25, 2010 09:18

Re: Sharing internet between T2 & V2

Post by raymondjpg » Thu Aug 27, 2020 11:15

MrQuade wrote:
Wed Aug 26, 2020 18:27
Not sure how much of this works or is available to the Wiz OS, bit this is what I am talking about.

https://wiki.debian.org/BridgeNetworkConnections

https://unix.stackexchange.com/question ... ith-debian

That is interesting. I have long sought to find a method to bridge ethernet and wireless interfaces in Linux but have only ever been able to bridge ethernet connections using bridge-utils. It is possible that things changed around the time those references were published.

The procedures outlined in the references give me pause to shudder, as you put it, but I might have a go some time when I have a day or two to spare.

Ideally I would like to see some rather more user-friendly way of setting up network bridging in Linux to bring ethernet and wireless interfaces together. It is a while since I last tried it in Mint but as I recall there was some GUI provision under networking to bridge connections.
Beyonwiz T2, Beyonwiz U4, IceBox BYO with Hauppauge WinTV-dualHD (x2), Hauppauge WinTV-quadHD

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Sharing internet between T2 & V2

Post by MrQuade » Thu Aug 27, 2020 11:56

raymondjpg wrote:
Thu Aug 27, 2020 11:15
Ideally I would like to see some rather more user-friendly way of setting up network bridging in Linux to bring ethernet and wireless interfaces together. It is a while since I last tried it in Mint but as I recall there was some GUI provision under networking to bridge connections.
Yep, some of the more recent GUI tools and network manager make this easier now (though sometimes they make things harder).

What I don;t like about a wired/wireless bridge is the asymmetric nature of the two, and the danger of flooding wireless with data, or even losing signal on the wireless side and disrupting the bridge. Not sure, maybe clever people have anticipated all of that.

I have only ever really used bridged connections in a KVM setup that I use on my CentOS server. I had to turn off all the network manager services, and allowed the KVM virt-manager GUI manage configuration of my bridges between the physical interface and the virtual machine switches.


Both of the links I provided look to require bridge-utils, but sounds like it has a chance of working, but who knows how fragile it would end up being.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Sharing internet between T2 & V2

Post by adoxa » Thu Aug 27, 2020 13:12

I installed bridge-utils, but brctl addbr br0 reports add bridge failed: Package not installed. Tried installing kernel-module-bridge (recommended by bridge-utils), but that doesn't exist. Never mind, sounds like it might be more trouble than it's worth.

User avatar
peteru
Uber Wizard
Posts: 9741
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: Sharing internet between T2 & V2

Post by peteru » Thu Aug 27, 2020 14:37

I just checked the kernel configuration for T2 and V2:

Code: Select all

# CONFIG_BRIDGE is not set

You would have to configure, build and install an alternative kernel. It's possible and it may even be doable on the V2 or T2 itself, although it would be slow and probably require you to stop enigma2 and maybe enable swap to get enough memory to finish the build.

"Beauty lies in the hands of the beer holder."
Blog.

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Sharing internet between T2 & V2

Post by adoxa » Thu Aug 27, 2020 16:00

Certainly not worth that effort. I rarely need it and in a pinch I can set a timer via wget from the T2.

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Sharing internet between T2 & V2

Post by adoxa » Wed Sep 09, 2020 13:02

Ended up creating a "redirection server": http://beyonwizt2:82 redirects all its requests to the V2. Now I have OWIF access to the V2, which is really all I was after.

User avatar
peteru
Uber Wizard
Posts: 9741
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: Sharing internet between T2 & V2

Post by peteru » Wed Sep 09, 2020 17:26

You mean you are running ncat or a ssh tunnel?

"Beauty lies in the hands of the beer holder."
Blog.

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Sharing internet between T2 & V2

Post by adoxa » Wed Sep 09, 2020 17:37

Um, no, just a Python HTTP server. Would they be better options?

User avatar
peteru
Uber Wizard
Posts: 9741
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: Sharing internet between T2 & V2

Post by peteru » Wed Sep 09, 2020 22:43

Not necessarily better options, just alternatives that may not have needed any code.

Sounds like you've got your needs addressed adequately, so there's no need to fiddle with it any more. Well done. :D

"Beauty lies in the hands of the beer holder."
Blog.

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Sharing internet between T2 & V2

Post by adoxa » Thu Sep 10, 2020 00:31

Cheers. Yeah, looks like ncat would have done the job as a one-liner, but I'd have to install the nmap package first, I think.

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Sharing internet between T2 & V2

Post by Grumpy_Geoff » Thu Sep 10, 2020 11:50

adoxa wrote:
Thu Sep 10, 2020 00:31
, but I'd have to install the nmap package first, I think.

I believe it's already installed with the firmware.

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Sharing internet between T2 & V2

Post by adoxa » Thu Sep 10, 2020 12:14

I was looking for an ncat binary, but looks like it's nc, part of BusyBox. I'll try that out later.

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Sharing internet between T2 & V2

Post by adoxa » Thu Sep 10, 2020 23:09

Looks like nc does the job with a simple command line, although it didn't work with the name, only the ip - nslookup and grep takes care of that.

Post Reply

Return to “Networking”