jmarcet / movistar-u7d

Movistar IPTV U7D to flussonic catchup proxy
GNU General Public License v2.0
63 stars 19 forks source link

Movistar dns does not seem to be accessible #4

Closed oatmealm closed 2 years ago

oatmealm commented 2 years ago

Hola,

(Hope it's OK if I ask in English, but feel free to reply in Spanish if you prefer).

Seems like nothing is happeing when I start the container with docker-compose, i.e. there nothing in the log.

When I attach to a console and try to ran start.sh or one of the other services, I can see timeout errors. When I try to ping Movistar's DNS server, I get nothing.

PS I'm a Movistar customer and on their network and paying for Movistar+ iptv, so I guess the stream are supposed to be accessible?

Thanks

jmarcet commented 2 years ago

Hi,

Hmm, it's strange besides being a requirement for everything to work.

Can you resolve anything with movistar's dns? Using something like:

❯ dig @172.26.23.3 telefonica.net

; <<>> DiG 9.17.13 <<>> @172.26.23.3 telefonica.net ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58915 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;telefonica.net. IN A

;; AUTHORITY SECTION: telefonica.net. 60 IN SOA dns2.movistar.es. admondns.tsm.es. 2017050557 10800 3600 2419200 900

;; Query time: 25 msec ;; SERVER: 172.26.23.3#53(172.26.23.3) (UDP) ;; WHEN: Tue Oct 19 17:12:12 CEST 2021 ;; MSG SIZE rcvd: 108

If you don't, you need to resolve that first. somehow said dns is not reachable from the machine you're trying the proxy on.

Can you relate a bit more about how's the device where you run the proxy from? How is it connected to the router, is it a linux or a windows machine, ... anything you find important to understand your setup.

On Sat, Oct 16, 2021 at 4:38 PM oatmealm @.***> wrote:

Hola,

(Hope it's OK if I ask in English, but feel free to reply in Spanish if you prefer).

Seems like nothing is happeing when I start the container with docker-compose, i.e. there nothing in the log.

When I attach to a console and try to ran start.sh or one of the other services, I can see timeout errors. When I try to ping Movistar's DNS server, I get nothing.

PS I'm a Movistar customer and on their network and paying for Movistar+ iptv, so I guess the stream are supposed to be accessible?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jmarcet/movistar-u7d/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHKET4YV6ZUQN5T6MAH56LUHGE4XANCNFSM5GDWWCHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

oatmealm commented 2 years ago

Hola Javier, siento haber tardado tanto !

When I try from my workstation, I'm seeing this:

dig @172.26.23.3 telefonica.net

; <<>> DiG 9.16.21-RH <<>> @172.26.23.3 telefonica.net
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
jmarcet commented 2 years ago

Hola @oatmealm,

That confirms you can't access Movistar DNS.

I have no idea what's your issue, though.

I'd say you take a look at the Movistar forum @ bandaancha.eu Easy you find how to fix your issue reading the pinned posts.

oatmealm commented 2 years ago

I see. Looking at it, adding an interface for IPTV requires IPoE which the router I'm stuck with does not provide I think. It's the old router with the Observa Web UI.

jmarcet commented 2 years ago

IPoE?

You only need to setup the proper VLANs. If you can access internet, you already have VLAN 6 at the very least. You need VLAN 2 for IPTV. See my OpenWRT Screenshot_20211030_163704 :

oatmealm commented 2 years ago

Yes. What's for you is "static address" AFAIK is also called IPoE, which is not available for selection in my router's... attaching screen grab... it's an old router, which I can't even instaell OpenWRT to anymore (4MB limit).

Kooha-10-30-2021-18-09-33

jmarcet commented 2 years ago

Ouch, I see. I did not remember those old bastards.

Anyhow, you need to get an original Movistar router in order to get your IPTV address. It would be quite better than what you seem to be using.

jmarcet commented 2 years ago

Although, hold on, you probably can set it up as a bridge and do all the VLAN handling and PPPoE authentication in the computer, which would be better even for performance if the router is that old.

oatmealm commented 2 years ago

I'll look at it. I have a raspberry 4 attached as my home media server, but it sounds too complicated !??!

I'd like to get my own router in fact, rather than a Movistar router, unless you recommend? Can I reflash it with openwrt? I was thinking about getting my own, like Turris Omnia which I'm using back home.

jmarcet commented 2 years ago

Hehe, that's a different league :smile: I use an old i7-3770 with 16GB, a I350-T4 board, 4x3TB and 1x12TB drives, an APC UPS and my own OpenWRT builds. In a Fractal Design Define R6 case and with a NZXT Kraken X53 it also looks awesome, it is extremely silent and it's easy to operate inside since it has lots of space :smile:

It works as my router, my NAS and a server appliance. I had never been so happy with my router, I should have done the switch way earlier. It trumps any typical SOHO router and any NAS appliance your money can buy.

After a looong travel, and together with this proxy, watching TDT from Movistar IPTV is 100% glitch free, as are the recordings, even watched live while walking in Amsterdam or the UK :smile: But in order to get that I had to tune a lot the proxy and the system, the most important and the one I discovered the last was increasing the RX/TX rings of the WAN interface, the first port of the I350-T4 board, from its default of 256 on every boot:

❯ cat /etc/uci-defaults/igb-ring.sh
#!/bin/sh

/usr/sbin/ethtool -G eth0 rx 4096 tx 4096 &

exit 1

Now glitches are a thing of the past, even while doing a new OpenWRT build with 6 threads (out of 8 cores), and torrent downloading with rtorrent at 60MB/s, so I can max out all the resources it has.

As far as QoS/queue management, after much experimenting and learning its intricacies, I ended up with a very simple SQM with which I get triple As in www.dslreports.com/speedtest:

❯ cat /etc/config/sqm

config queue 'wan'
option debug_logging '0'
option linklayer 'ethernet'
option overhead '26'
option verbosity '5'
option interface 'pppoe-wan'
option qdisc 'cake'
option enabled '1'
option download '600000'
option upload '600000'
option script 'simplest.qos'

The load is usually residual, it consumes 70W (together with the AP and the external ONT) unless it is building something: Screenshot_20211031_032410

Meanwhile, as a NAS it is able to saturate 2Gbit links with ease.

The UPS is able to keep everything running without power for 32 mins, 15 while at max load: Screenshot_20211031_024754

It boots from a NVME drive (using a modded BIOS), and in 20s my entire docker stack is running: Screenshot_20211031_031754 Screenshot_20211031_025325

With dual boot it is safe to try experimental changes and in case of an issue you return to the other partition.

I share the builds I use, with generic drivers and no configuration on openwrt.marcet.info, they are built from github.com/jmarcet/openwrt, github.com/jmarcet/packages and github.com/jmarcet/luci, and I usually upgrade them once per week at least, with every kernel release.

On github.com/jmarcet/dockers you can see my stack of docker-composes, this proxy is included in the multimedia compose

jmarcet commented 2 years ago

Of course, that router has no wifi. At the moment I'm still using a Unifi nanoHD which works really really well, it is OpenWRT based and it supports up to WPA3 Enterprise, which I've found lacking in support from the clients, so I'm using WPA3-SAE mostly. I manage it with the Unifi Controller: Screenshot_20211031_025827

With unifipoller I get prometheus metrics, with which I have pretty neat Grafana dashboards: Screenshot_20211031_030115 Screenshot_20211031_030204 Screenshot_20211031_030300

I recently upgraded my laptop's wifi to an Intel AX210 and I am now able to use 160Mhz channels, with links of 1.566-1.733 Gbps instead of 866Mbps, it still tops at 750Mbps of actual throughput (iperf3), but it's stable at 650-750Mbps whereas with 80Mhz it drifted a little bit more.

Last, I got a Xiaomi AX3600, 8021.11ax, to upgrade the Unifi which is 802.11ac. It comes by default with a very limited openwrt derived firmware. With it my mobile phone links at 1.2Gbps, my laptop at 2.4Gbps and it will be all my own OpenWRT builds but that is a work in progress, it is not ready yet to substitute the Unifi.

oatmealm commented 2 years ago

Wow. What a setup! I'm much less ambitios. I have a Raspberry which I take with me when I travel, and I have everything setup there, though not even close to your elaborate solution!

jmarcet commented 2 years ago

Hehe, I know :smile:

But the idea was that if you're thinking about getting a Turris Omnia, you might as well consider transforming some x86 box in case you have one lying around, even if it is a tad old, and the performance might surprise you.

oatmealm commented 2 years ago

Yea. Got it. I have just an old mac mini and couple of old apple tv, which are not good for anything. The MacMin 1st generation is PowerPC 4 which even though can run linux ... (is there an OpenWRT port!??!?!?!?!) is a pain in the arse to flush. Just booting from USB is a pain to start.

jmarcet commented 2 years ago

You might be able to get Linux running but a stable openwrt install will be too much work, it does not make sense in your case. You need something which you can start using quickly, so as you see fit, a Turris Omnia would be a great one as far as I have read about it.

Anyhow, if you want to access IPTV, you also need a Movistar router, just to find out your ip address.