Skip to content

Break through streaming restrictions with Adguard Home and Sniproxy

License

Notifications You must be signed in to change notification settings

RealTong/streaming-unlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to streaming-unlock 👋

Version Twitter: RealTong

How to use this project? English | 中文文档

🌟 Features

  • Unlock streaming zone restrictions with AdguardHome
  • Managing AdguardHome with WebUI
  • IP authorization via web panel
  • Customized replacement of upstream DNS
  • Docker Deployment

Install

  • Cloning Code git clone https://github.com/RealTong/streaming-unlock.git && cd streaming-unlock
  • Run docker compose up -d
  • Click http://example:3000,Setting up AdguardHome
  • Set DNS on your proxy software or terminal device to the IP of the server where the project is deployed

Configuration

You can configure it yourself in webui or by modifying the adguardhome/conf/AdGuardHome.yaml file (need to restart the container to take effect)

To make the unlocking work you need to add a rewrite rule to AdguardHome, e.g. write this to unlock netflix (you need to change 1.1.1.1 in the example to the IP of the server)

DNSRewrite

Q&A

docker compose up -dAn error occurred Error response from daemon: Ports are not available: exposing port UDP 0.0.0.0:53 -> 0.0.0.0:0: listen udp 0.0.0.0:53: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. (Port 53 is occupied) What to do

  1. sudo systemctl stop systemd-resolved
  2. sudo systemctl disable systemd-resolved
  3. docker compose up -d
  4. Refer to Configuration, to configure
  5. Then you will see that the unlock is working. The reason is that AdguardHome is acting as our DNS server and occupying port 53, but the DNS server of the host is still pointing to 127.0.0.53:53 of systemd-resolved, so we can change the DNS of the host and it will be fine.
  6. vim /etc/resolv.conf Modify nameserver 127.0.0.53 to nameserver 127.0.0.1

🤝 Contributing

Contributions, issues and feature requests are welcome!

Show your support

Give a ⭐️ if this project helped you!


Thanks to JetBrains for the free open source license

About

Break through streaming restrictions with Adguard Home and Sniproxy

Resources

License

Stars

Watchers

Forks

Packages

No packages published