Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
I can not download from YT in google cloud engine without external IP #21128
Comments
|
|
No, is online.
El vie., 17 de mayo de 2019 12:49 p. m., Sergey M. <notifications@github.com>
escribió:
… https://www.youtube.com/channel/UCoMdktPbSTixAyNGwb-UYkQ/live is offline.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#21128?email_source=notifications&email_token=AAAYWRGA4AXDUGYPYU3MH23PV3HZZA5CNFSM4HNWHUM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVVEB5A#issuecomment-493502708>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAYWRHCLBDKEOWR4UFAIV3PV3HZZANCNFSM4HNWHUMQ>
.
|
|
If you want test in a VM in GCP w/CloudNat, i can grant access to it. |
|
Can you watch it in browser from this machine and this network interface in the first place? |
|
I test it in two VM: one with Cloud NAT [1] and one with external IP [2]. In [2] work fine, in [1] not. Both VM/Network is in the same region. I believe that the problem comes in how it detects the IP in a vm with assigned external ip and in how it does it if it does not have an external ip assigned and it goes out by NAT. Evidences[1] $ curl ifconfig.co/json [2] $ curl ifconfig.co/json In [1] gets 403:
In [2] all ok:
|
|
Hello @dstftw, can you reproduce this? |
|
No. |
|
the ticket still in closed. |
|
Bother to answer my question first. |
|
oka, i install a proxy and connect via browser to youtube. I thought that with that configuration and youtube-dl was going to be enough, so I configured the --proxy and the results were the same. It is a virtual machine with ubuntu server 18.04, I have no possibility to run a browser in there, so the best configuration I could do is with a proxy. |
|
@ignacionf: Have you tried to watch a video via the browser, through the proxy? |
Checklist
Verbose log
Description
I was using the command to download some videos or live channels always in GCP VM with an assigned external IP. But at some point we went to use GCP VM without having assigned external IP, but have a configuration of Cloud NAT, which allows us to have several VMs under the same IP configuration. It is there that this command stopped working.
From what I tried, in the playlist URL it adds a "... / ip / / ..." [1] but in the cases that run inside a VM with Cloud NAT it adds a ". ../ip/ / .. "[2] and in those cases we get 403.
I tried using the configuration of source_address to force to use the NAT Cloud IP but I only got errors of:
Force IP address
Force use ipv4
[1] https://r2---sn-vgqsrnez.googlevideo.com/videoplayback/id/lEJ98EkDQA0.1/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/r2---sn-vgqsrnez.googlevideo.com/playlist_type/DVR/ei/8LfeXNAI6YiKvg_y6bzwBw/gcr/us/mm/32/mn/sn-vgqsrnez/ms/lv/mv/u/pl/20/keepalive/yes/beids/23806817/mt/1558101360/disable_polymer/true/ip/35.224.213.211/ipbits/0/expire/1558121552/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,mm,mn,ms,mv,pl/signature/50D45F17DDFACF5B8ABE54141E996AC9328E49CA.5DFBE071C541DD9BC7ACD25C49C6FB5698D977B7/key/dg_yt0/playlist/index.m3u8/sq/126071/goap/clen%3D44185%3Blmt%3D1557989427752726/govp/clen%3D630525%3Blmt%3D1557989427752724/dur/2.000/file/seg.ts
[2] https://r3---sn-a5ms7n7l.googlevideo.com/videoplayback/id/lrX6ktLg8WQ.2/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/r3---sn-a5ms7n7l.googlevideo.com/playlist_type/DVR/ei/mMPeXLqqBp6Gir4PwseMiAs/gcr/ZZ/mm/32/mn/sn-a5ms7n7l/ms/lv/mv/D/pl/0/keepalive/yes/mt/1558102082/disable_polymer/true/ip/fda3:e722:ac3:10:3:159f:a00:7/ipbits/0/expire/1558124536/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,mm,mn,ms,mv,pl/signature/4DE1D945670A59388D0BBB36D01C6C62BBBA4E70.0FDB0A54C73B4CBCD97D3E9DC4A0406014D71E4C/key/dg_yt0/playlist/index.m3u8/sq/671416/goap/clen%3D81069%3Blmt%3D1558102915540573/govp/clen%3D1455104%3Blmt%3D1558102915540573/dur/5.000/file/seg.ts