Mailing List Archive

HDHOMERUN on different network
I have two properties in different geo's with an IPSEC tunnel between
them.  I want to setup an HDHOMERUN in location B and have the backend
at location A use it.

Location A is 192.168.0.x addressed. Location B is 10.0.0.x addressed.

Auto discovery of the HDHOMERUN in location B by mythtv does not work. 
Where can I enter the IP address of the HDHR in location B?  Nothing is
available in the GUI.

I looked at the captuercard table in mythconverg database, but did not
see an option for an IP address.  I only see the "videodevice" column
with the serial number of the HDHR's at location A.


+----------------------+ +--------------------+
| Location A           |                   | Location B |
| MythBackend          |                   | HDHR Tuner 3 |
| HDHR Tuner 1,2       |    IPSEC          | 10.0.0.0/24 |
| 192.168.0.0/24       +-------------------+ |
|                      |                   | |
|                      |                   | |
|                      |                   | |
+----------------------+ +--------------------+


Thank you

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: HDHOMERUN on different network [ In reply to ]
On Sun, Mar 05, 2023 at 01:29:55PM -0600, Jgmtfia wrote:
> I have two properties in different geo's with an IPSEC tunnel between them.?
> I want to setup an HDHOMERUN in location B and have the backend at location
> A use it.
>
> Location A is 192.168.0.x addressed. Location B is 10.0.0.x addressed.
>
> Auto discovery of the HDHOMERUN in location B by mythtv does not work.?
> Where can I enter the IP address of the HDHR in location B?? Nothing is
> available in the GUI.
>
> I looked at the captuercard table in mythconverg database, but did not see
> an option for an IP address.? I only see the "videodevice" column with the
> serial number of the HDHR's at location A.

That configuration is an oversight and not supported, at least in
mythtv-setup. I don't know if manually creating an capturecard entry
would work either. What I do know should work, and is probably even a
better solution, for a remote tuner is using Gary Buhrmaster's
mythhdhrrecorder (https://github.com/garybuhrmaster/mythhdhrrecorder).

David

> +----------------------+ +--------------------+
> | Location A?????????? |?????????????????? | Location B |
> | MythBackend????????? |?????????????????? | HDHR Tuner 3 |
> | HDHR Tuner 1,2?????? |??? IPSEC????????? | 10.0.0.0/24 |
> | 192.168.0.0/24?????? +-------------------+ |
> |????????????????????? |?????????????????? | |
> |????????????????????? |?????????????????? | |
> |????????????????????? |?????????????????? | |
> +----------------------+ +--------------------+
>
>
> Thank you
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org

--
David Engel
david@istwok.net
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: HDHOMERUN on different network [ In reply to ]
On 05/03/2023 20:33, David Engel wrote:
> On Sun, Mar 05, 2023 at 01:29:55PM -0600, Jgmtfia wrote:
>> I have two properties in different geo's with an IPSEC tunnel between them.
>> I want to setup an HDHOMERUN in location B and have the backend at location
>> A use it.
>>
>> Location A is 192.168.0.x addressed. Location B is 10.0.0.x addressed.
>>
>> Auto discovery of the HDHOMERUN in location B by mythtv does not work.
>> Where can I enter the IP address of the HDHR in location B?  Nothing is
>> available in the GUI.
>>
>> I looked at the captuercard table in mythconverg database, but did not see
>> an option for an IP address.  I only see the "videodevice" column with the
>> serial number of the HDHR's at location A.
>
> That configuration is an oversight and not supported, at least in
> mythtv-setup. I don't know if manually creating an capturecard entry
> would work either. What I do know should work, and is probably even a
> better solution, for a remote tuner is using Gary Buhrmaster's
> mythhdhrrecorder (https://github.com/garybuhrmaster/mythhdhrrecorder).
>
> David
>
>> +----------------------+ +--------------------+
>> | Location A           |                   | Location B |
>> | MythBackend          |                   | HDHR Tuner 3 |
>> | HDHR Tuner 1,2       |    IPSEC          | 10.0.0.0/24 |
>> | 192.168.0.0/24       +-------------------+ |
>> |                      |                   | |
>> |                      |                   | |
>> |                      |                   | |
>> +----------------------+ +--------------------+
>>
>
Or, perhaps easier and probably simpler, why not put up a VPN? That way you can give the HDHR a
192.168.0.x address and it should be seen by the backend.

--

Mike Perkins


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: HDHOMERUN on different network [ In reply to ]
On Sun, 5 Mar 2023 13:29:55 -0600, you wrote:

>I have two properties in different geo's with an IPSEC tunnel between
>them.? I want to setup an HDHOMERUN in location B and have the backend
>at location A use it.
>
>Location A is 192.168.0.x addressed. Location B is 10.0.0.x addressed.
>
>Auto discovery of the HDHOMERUN in location B by mythtv does not work.?
>Where can I enter the IP address of the HDHR in location B?? Nothing is
>available in the GUI.
>
>I looked at the captuercard table in mythconverg database, but did not
>see an option for an IP address.? I only see the "videodevice" column
>with the serial number of the HDHR's at location A.
>
>
>+----------------------+ +--------------------+
>| Location A?????????? |?????????????????? | Location B |
>| MythBackend????????? |?????????????????? | HDHR Tuner 3 |
>| HDHR Tuner 1,2?????? |??? IPSEC????????? | 10.0.0.0/24 |
>| 192.168.0.0/24?????? +-------------------+ |
>|????????????????????? |?????????????????? | |
>|????????????????????? |?????????????????? | |
>|????????????????????? |?????????????????? | |
>+----------------------+ +--------------------+
>
>
>Thank you

For autodiscovery to work, mythbackend needs to be on the same subnet
as the HDHR tuner. You can do that by using a layer 2 VNP connection
instead of IPSEC (layer 3). With a layer 2 connection, all the
broadcast packets will be sent between the two connected subnets, and
the remote subnet will be able to use the local DHCP server to assign
its IP address from the same range as the local subnet. The remote
subnet will also see the local IPv6 RA packets and will pick up IPv6
addresses from that using the local subnet settings. The downside of
using a layer 2 VPN is the same as the upside - all the broadcast
traffic goes over the VPN connection and uses bandwidth that might
otherwise be available for the more useful traffic.

Most VPNs only do layer 3 (eg IPSEC, Wireguard), but OpenVPN also
supports layer 2 using a bridged tap interface instead of a routed tun
interface. That is what I use on my laptop when I am away on holiday,
although I have yet to have the luxury of a connection fast enough to
be able to play all recordings from the home backend directly on a
remote mythfronted - so far only SD recordings have worked. But the
networking is just as though I was at home, except for slower
responses due to the lower speed of the VPNed connection.

OpenVPN is quite difficult to configure properly - there are a huge
number of options, and getting them wrong can make it insecure. And
bridged networking is also more complicated to set up. It is all
documented, but it can take quite a while to get it to work. It is
also best run on a decent CPU (a PC) at both ends, as routers rarely
support OpenVPN being able to use their encryption hardware and their
CPUs are too slow. If you would like to get a copy of my working
configuration to work from, please email me off list.

But it really would be better if MythTV supported direct IP addressing
for HDHRs - I thought it could do that. It is a fairly obvious need
if you want to share your HDHRs between your normal network and your
guest WiFi, for example.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: HDHOMERUN on different network [ In reply to ]
> I have two properties in different geo's with an IPSEC tunnel between
> them. I want to setup an HDHOMERUN in location B and have the backend
> at location A use it.
> Location A is 192.168.0.x addressed. Location B is 10.0.0.x addressed.

As the others have said, a computer on one network will not see a
computer on another, BUT one can tell a computer to have a second IP
address.  I have only tried it with a different subnet (?) -- whatever
the third set in the dotted quad is called.  My original was
192.168.4.x, wanting to look at 192.168.0.x.  I haven't tried with the
10.x.x.x group but seems like it should work.

On a computer with a static address of 192.168.4.22 I entered:

    sudo ip addr add 192.168.0.199/24 broadcast 192.168.0.255 dev enp1s0


Now the machine has both 192.168.4.22 and 192.168.0.199 and can
communicate with machines on both networks.  Good news is on reboot the
added address goes away so if a mistake is made it is not permanent.

The 'enp1s0' at the end is the NIC device (can be determined from the
ifconfig output).

Good Luck!  Hope this either solves your problem or leads you to a solution!

Barry
Re: HDHOMERUN on different network [ In reply to ]
Jgmtfia <jgmtfia@gmail.com> wrote:

> I have two properties in different geo's with an IPSEC tunnel between them. I want to setup an HDHOMERUN in location B and have the backend at location A use it.
>
> Location A is 192.168.0.x addressed. Location B is 10.0.0.x addressed.
>
> Auto discovery of the HDHOMERUN in location B by mythtv does not work. Where can I enter the IP address of the HDHR in location B? Nothing is available in the GUI.
>
> I looked at the captuercard table in mythconverg database, but did not see an option for an IP address. I only see the "videodevice" column with the serial number of the HDHR's at location A.

How does the auto discovery work ?
Presumably the computer broadcasts specific packets, and devices answer. If it’s something really simple, how about coding some simple service that will spoof the device on the local network, but give the remote IP of the device (it would need to be statically configured).
Sort of a bit like proxy-ARP, but for the HDHomeRun discovery packets.

Simon

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: HDHOMERUN on different network [ In reply to ]
On Mon, Mar 6, 2023 at 7:45?AM Barry Martin <barry3martin@gmail.com> wrote:

>
>
> I have two properties in different geo's with an IPSEC tunnel between
> them. I want to setup an HDHOMERUN in location B and have the backend
> at location A use it.
> Location A is 192.168.0.x addressed. Location B is 10.0.0.x addressed.
>
> As the others have said, a computer on one network will not see a computer
> on another, BUT one can tell a computer to have a second IP address. I
> have only tried it with a different subnet (?) -- whatever the third set in
> the dotted quad is called. My original was 192.168.4.x, wanting to look at
> 192.168.0.x. I haven't tried with the 10.x.x.x group but seems like it
> should work.
>
> On a computer with a static address of 192.168.4.22 I entered:
>
> sudo ip addr add 192.168.0.199/24 broadcast 192.168.0.255 dev enp1s0
>
>
> Now the machine has both 192.168.4.22 and 192.168.0.199 and can
> communicate with machines on both networks. Good news is on reboot the
> added address goes away so if a mistake is made it is not permanent.
>
> The 'enp1s0' at the end is the NIC device (can be determined from the
> ifconfig output).
>
> Good Luck! Hope this either solves your problem or leads you to a
> solution!
>
> Barry
>

So, the easiest way to do this is use a TAP or VXLAN interface so multicast
and broadcast packets will traverse the link. With IPSec, you are SoL. I
use OpenVPN for this exact thing, but VxLAN seems to be gaining more home
raction rather than it's data center centric model.

Anyhow - OpenVPN with TAP interfaces will allow you to see the HDHomeRuns
broadcast packets on both sides assuming you add a secondary IP address on
both sides that matches. I do this for our work VPNs today.

If you want some configs, let me know -

-Greg

>
>