[mythtv-users] MythTV needs to listen on 2 ports

Anthony Giggins seven at seven.dorksville.net
Fri Oct 31 03:43:44 UTC 2014


On 31 October 2014 11:17, Stephen Worthington <stephen_agent at jsw.gen.nz>
wrote:

> On Thu, 30 Oct 2014 15:06:29 +0000, you wrote:
>
> >Morning,
> >I am a new user to the is group.  And ran into a brick wall trying to
> understand an use MythTV the way its intended in my network.  Which I will
> admit is a bit complex.
> >
> >I am running a MythBuntu server (ver 14.04.1) running MythTV 0.27.  This
> server has 2 network cards on 2 different networks with static IPs set...
> >192.168.2.0/26 (Parents Network)
> >192.168.3.0/26 (Kids Network)
> >
> >What I am trying to find out is if it's possible for the MythTV backend
> service to listen on more than 1 port.  Depending on which network I have
> it configured to listen too, will depend on which clients can connect.  Not
> just the SQL DB.  But the service which uses ports 6544 & 6543 that the
> clients connect to.
> >
> >After using grep to look thru the entire file structure to locate where
> the backend setting was, I decided to install MySQL Workbench an found the
> backend setting in the SETTING Table in Mythconverg DB.  And it appears
> that since there is no Primary Key, MySQL Workbench can only open the DB in
> Read-Only.  Meaning I cannot make changes to it.
> >
> >I am really frustrated by all this.
> >John Moore
> >OSG VM Solutions Team
>
> I am not sure if there is any udp traffic between mythfrontend and
> mythbackend, but if not, then you should be able to run a redir daemon
> for each of the ports and redirect the traffic from the port on the
> 192.168.3.x address to the same port on the 192.168.2.x address.  The
> same effect is probably able to be done using iptables too somehow.
>


Yes you could do this with iptables NAT to perform this. Something like

iptables -A PREROUTING -i eth0 -p tcp --dport 6544 -j DNAT --to
192.168.1.2:6544

cheers,

Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20141031/b142f94b/attachment.html>


More information about the mythtv-users mailing list