Bonum Certa Men Certa

Google/YouTube Still Trying to Block All Invidious Instances, But IPv6 Makes That Harder for Google

posted by Roy Schestowitz on Dec 19, 2023,
updated Dec 19, 2023

Sadly all this information was outsourced the same Microsoft platform which encourages and profits from GPL violations while shutting down projects such as YouTube-DL (still besieged)

Yes there is an ongoing effort from me to alert the public instances. [...] Hello, I am the owner of invidious.io.lol, how do I fix this? Please !!

YESTERDAY morning we wrote about Invidious instances breaking. All but one instance stopped working, based on 20+ instances that I examined. Since then some blocks have been bypassed, not withdrawn. yewtu.be is working again and its maintainer, unixfox (also known for his popular searX.be instance), wrote a manual. He has sadly outsourced this manual to proprietary Microsoft spaces, so we're reproducing it below.

Rotate your IPv6 address for escaping YouTube blocking

This tutorial has been written by unixfox, owner of yewtu.be. He is better suited when looking for help about this tutorial.

Synopsis

YouTube has started to periodically block the public Invidious instances since the start of June 2023 (iv-org/invidious/issues/3872) and they have become more aggressive about it since the start of August 2023 (iv-org/invidious/issues/4045).

Due to this block, "local proxy" and DASH do not work anymore. But Invidious still works for most videos without using the proxy, because the video playback traffic is sent directly to YouTube servers without going through the instance.

Thanks to IPv6 you can easily escape this block because there are many IP addresses in a single /64 IPv6 range. (18,446,744,073,709,551,616 IP addresses to be precise)

This tutorial will explain how to automatically and periodically rotate your IPv6 address. Also some notes about how to have IPv6 in case your provider does not offer it.

Requirements

1) IPv6 support on your server

Testing

You can easily find out if you have IPv6 by executing the command:

curl -m 5 ipv6.icanhazip.com

If you do not have any errors, then congratulation, you can continue to the second requirement!

If you do have an error (timeout or no route to host), then you will need to enable IPv6 support on your server.
Depending on your provider and if it does support IPv6, you may have to configure your server for IPv6. Check the documentation of your provider.

Other solutions if you do not have IPv6 support
1) Switch to another provider

If your provider does not support IPv6 then you can either switch to another provider that support IPv6.
There are many today that do support it, here is a non-exhaustive list of them (this is not recommendation, just a list of the popular providers that support IPv6):
Hetzner, BuyVM, Scaleway, OVH, DigitalOcean, Vultr, Incognet, Netcup and more.
Larger list: https://www.serverhunter.com/#query=ips%3Aipv6

2) Use an IPv6 tunnelbroker or make one yourself

The alternative, if you do not want to switch provider, is to use an IPv6 tunnelbroker. It allows to get IPv6 connectivity using another server.

This website lists all the free and paid existing tunnelbrokers: https://tunnelbroker.services/. We do not recommend running a public instance on a free tunnelbroker as this would put a lot of strain on their network because video streaming consumes a lot of bandwidth.

You can also use an external server (from another provider that do support IPv6) for acting as an IPV6 tunnel for your main server. Wireguard is perfectly suited for that.
All of this is out of scope of this tutorial, please consult the internet for tutorials.

2) System packages requirement

Please install:

Configure Invidious for IPv6

If you are running Invidious outside of Docker or using something else than Docker (K8s)

Please make sure that you have this line set in config.yml:

force_resolve: ipv6

Note: If you are on Kubernetes, check that your pods have IPv6 connectivity. But you probably already know that if you are using Kubernetes.

If you are running Invidious in Docker

Note: Make sure you are running a recent version of Docker if you are running into IPv6 issues.

If needed, IPv6 official documentation for Docker is at https://docs.docker.com/config/daemon/ipv6/.

  1. Put the following config in /etc/docker/daemon.json:
    {
     "experimental": true,
     "ip6tables": true
    }
    
  2. Restart Docker
  3. In your docker-compose file of invidious. Add these lines at the end of your docker-compose
    networks:
      default:
        enable_ipv6: true
        ipam:
          config:
            - subnet: 2001:0DB9::/112
              gateway: 2001:0DB9::1
    
    Note: Don't change the subnet and the gateway. Unless there is a conflict with an existing docker network.
  4. Make sure that you have this line set in config.yml:
    force_resolve: ipv6
    
  5. Bring down your docker composition and bring it back up for recreating the network:
    docker compose down
    docker compose up -d
    
  6. To check if everything went well then do:
    docker compose exec invidious ping -c 1 ipv6.icanhazip.com
    
    If you do not get any error then you can jump to the next step.

Configure the IPv6 rotator (made by Invidious team)

This tool was developed by the Invidious team, and it's the official tool for rotating your IPv6 address on Invidious: https://github.com/iv-org/smart-ipv6-rotator.
It may be used on other projects that depend on YouTube and/or Google (example: Piped or SearXNG).

  1. Make sure you have installed all the python libraries from the "requirements".
  2. Clone the repository somewhere that you like (not inside the invidious directory):
    git clone https://github.com/iv-org/smart-ipv6-rotator.git
    
  3. Find the IPv6 subnet of your server, usually it's written on your provider website.
    But you can easily find it using this tool: http://www.gestioip.net/cgi-bin/subnet_calculator.cgi.
    Enter the main IPv6 address, select IPv6 and change the prefix length only if it's not a /64.
    Use the command ip a to get the detail of your IPv6 network configuration.
  4. Run the script once like this (don't use sudo if you are already root):
    sudo python smart-ipv6-rotator.py run --ipv6range=YOURIPV6SUBNET/64
    
  5. If everything went well, then configure a cron to periodically rotate your IPv6 range. Twice a day (noon and midnight) is enough for YouTube servers. Also at the reboot of the server! Example crontab (crontab -e -u root):
    @reboot sleep 30s && python /path/to/the/script/smart-ipv6-rotator.py run --ipv6range=YOURIPV6SUBNET/64
    0 */12 * * * python /path/to/the/script/smart-ipv6-rotator.py run --ipv6range=YOURIPV6SUBNET/64
    
    The sleep command is used in case your network takes too much time to be ready.

That's it!

If the script does not work for you, it could be that:

If you find any other issues, please open a bug report there: https://github.com/iv-org/smart-ipv6-rotator/issues

The original will have more up-to-date instructions, but we do not wish to send traffic Microsoft's way.

Other Recent Techrights' Posts

IBM Starts 2026 a Much Smaller Company (Not Homage to Gerstner)
People who get bluewashed out of their job (or bluewashed into unemployment) are gagged by NDAs
Microsoft XBox Having a "Dog Ate My Homework" Moment: No New Console Until 3 Years From Now... Because "RAM Prices"
Who will ever remember this in 2028? Nobody.
Gemini End of Year Capsules Tally (Based on Lupa) Shows About 10% Growth
What a difference a year makes
Dr. Andy Farnell Explains Why Chatbots Became Dishonesty on Top of Dishonesty (Hiding Usage of Dishonest Salads of Words)
new article from CyberShow
 
The Slop Industry is Failing So Badly (Mountains of Debt, Losses) That It's Merging With the SPAM Industry
we reckon that Google will eventually delist all slopfarms, recognising they're just a form of SPAM
Links 31/12/2025: Cheeto Pushing for More Wars, ‘Security is a Shared Responsibility’
Links for the day
Enshittification of Postal Services Isn't Technological Advancement
Societies that say the aim is to "go digital" and eliminate paper trail aren't advanced; they're moving backwards
XBox is Likely Dead Already, But the Threat It Posed to Us All for Two Decades Isn't Over
"the Xbox was never about gaming and merely served as a test bed for DRM in commodity systems."
Ahead of 2026 Mass Layoffs at Microsoft the Tree Gets Shaken to See Who 'Falls' (Resigns/Retires)
"We had a quiet meeting last week about budget realignment. No one said layoffs, but it’s clear where the focus is shifting."
Almost 6,5000 Pages in 2025, Aiming Higher in 2026
if we can keep focused, then quantity will increase
Gemini Links 31/12/2025: New Resolution, Reverse Hexdump, and Programming Languages
Links for the day
Links 31/12/2025: Nvidia Faces Bubble-Bursting Moment, Saudi Oil Money Pumped Into Chatbots to Keep the Energy Waste Going (Circular Financing Again)
Links for the day
Richard Stallman's First Talk in a U.S. College Since 2018
Greetings from Georgia Tech!
EPO People Power - Part XX - Why António Campinos Chose to Put His Cokehead Friend on 'Sick Leave'
EPO Cocainegate will be covered for months to come
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Tuesday, December 30, 2025
IRC logs for Tuesday, December 30, 2025
Gemini Links 30/12/2025: FreeBSD, Gemlogs, and Xobaque
Links for the day
Get Ready for Gigantic XBox Layoffs at Microsoft (Much Bigger Than in 2025)
he unionisation drive is a sign workers already expect this
Concern Trolls: Stop Criticising Poor Gerstner Because Now He's Dead. Reality Check: Gerstner Has Found a Trick for Dodging Tax on His Hundreds of Millions in Wealth.
Maybe even billions in wealth
Samoa: GNU/Linux and ChromeOS Rose to Around 11%
based on Web access data from Samoa
DnD: Debian and Drugs
There will soon be some interesting new information about Debian
A Conundrum of Privacy/Surveillance: Will You Give Them a Stool Sample to "Feel Humane"?
What if skinnerboxes in South Korea also required that people provide urine and stool samples?
Nope, There's No Twitter "Successor"
There's a lot of horrible abuse going on in social control media
A Calm Year in IRC is a Good Year for IRC
Next year IRC will turn 38 (in August) and in 2028 it'll turn 40, just like the FSF did a couple of months ago
Slopfarms Covering Up for "Microsoft CEO Satya Nadella" After a Terrible Performance and a Terrible Year at Microsoft
How to cause many to resign/retire, hence not be counted as "layoffs"
IBM Was Never Saved, It Has Been a Downhill Journey for Decades Already
Gerstner wasn't a tech person but a fiscal butcher
Some GNU Joiners in Geminispace
Jose E. Marchesi (known for GNU poke and a bunch of other things) adopted Gemini Protocol
Jean-Slop Van Damme and the Art of Bull--- Code
it's saving neither time nor money
IBM Seems to be Doing to HashiCorp What It Did to Red Hat (Many Key People Leaving)
"Today marks my last day at HashiCorp, wrapping up an incredibly rewarding 5-year journey"
State of the Slop, Day 364
How does Phoronix feel about Google promoting slopfarms that 'rewrite' its stories and slap slop images on top?
Links 30/12/2025: "Durian Tsunami" and "Unneeded Surgeries"
Links for the day
Links 30/12/2025: Social Control Media Detox, Rage Against Slop Wasting People's Productive Capacities
Links for the day
Reality Check About IBM's Louis Grestner, Slopfarms Say He Was IBM CEO for 30 Years!
It is "hallucinating" (lying)
Debt as the New Currency?
Rich people get richer because they take money from the rest of us, if not directly then by compelling us (collectively) to borrow money at a national level, then "invest" in them
EPO People Power - Part XIX - "Berenguer Has Known of Campinos' Substance Abuse First Hand For a Long Time"
"You rightfully claimed that Berenguer is Campinos' protegee"
Gemini Links 30/12/2025: Quitting Coffee, Apartment by the Beach, and Strange Retail Ethics
Links for the day
Nintendo and Sony Outsold Microsoft XBox by 15:1!
The mass layoffs indicate Microsoft is aware of this
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Monday, December 29, 2025
IRC logs for Monday, December 29, 2025
Slopfarm: Firing 35,000 Employee is "Saving the Company"
"Big Blue" is getting smaller all the time
Slopfarms About the "Linux CEO" Linus Torvaldos [sic]
nowadays NVIDIA builds and helps build a giant Ponzi scheme
Vista 11 is "10" (Ten Percent)
Some months ago Microsoft openly admitted that it had lost (shed off) hundreds of millions of Windows users
Dealing With Online Pogroms
lawfare funded by third parties
The Year Apple Would Rather Forget
We await further stumbles and falls from Apple (in 2026)
"EU's reform agenda threatens to erase a decade of digital rights"
This is really sad for those of us who spent decades promoting and boosting/advocating the EU
IBM Layoffs in India, More Coming Soon, Say Apparent Insiders
Threads regarding IBM layoffs
Gemini Links 29/12/2025: Earlier "Happy New Year 2026" and "Dead Archivist Society"
Links for the day
Links 29/12/2025: Putin Critic Sergei Udaltsov Imprisoned, Cloudflare’s Outages Discussed
Links for the day
LLMs Are Inherently Parasitic, We Need to Treat Them Accordingly
a maintenance burden for those who possess actual intelligence
Links 29/12/2025: Bottled Water Considered Harmful, Cheetos Promoting Nazis in Europe
Links for the day
EPO People Power - Part XVIII - European Patent Office "Paints Itself as Progressive While Literally Being Represented by Cokeheads"
To what length/s will German authorities and media (not just in Germany) go to protect the EPO's "precious image"?
What IBM Will Do to Red Hat in the Coming Year or Years
This won't end up well for GNU/Linux as a whole
Not Turning in His Grave: When People Die, Their Corporate Destruction Becomes a "Turnaround"
All he did was mass layoffs - a tradition that has not ended since then
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, December 28, 2025
IRC logs for Sunday, December 28, 2025
Louis Gerstner Has Died, His Legacy of Mass Layoffs at IBM Hasn't
Hagiographies will follow. They will say he "saved" IBM.
Links 29/12/2025: The Sunday Routine, Limits of Memory, and Gemini Vocabulary
Links for the day