How to use this project? English | 中文文档
- Unlock streaming zone restrictions with AdguardHome
- Managing AdguardHome with WebUI
- IP authorization via web panel
- Customized replacement of upstream DNS
- Docker Deployment
- 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
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)
docker compose up -d
An error occurredError 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
- sudo systemctl stop systemd-resolved
- sudo systemctl disable systemd-resolved
- docker compose up -d
- Refer to Configuration, to configure
- 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
ofsystemd-resolved
, so we can change the DNS of the host and it will be fine. vim /etc/resolv.conf
Modify nameserver 127.0.0.53 to nameserver 127.0.0.1
Contributions, issues and feature requests are welcome!