Works for docker compose files
First, stop all containers with
docker stop $(docker ps -a -q)Save files
tar -cf docker.tar /var/lib/docker/volumes /opt/docker-containers/ # Or where the docker containers are| ! | |
| ! Title: Adguard Allowlist | |
| ! | |
| # [discord.com] | |
| 127.0.0.1 click.discord.com | |
| # [ojrq.net] | |
| 127.0.0.1 www.ojrq.net |
Works for docker compose files
First, stop all containers with
docker stop $(docker ps -a -q)Save files
tar -cf docker.tar /var/lib/docker/volumes /opt/docker-containers/ # Or where the docker containers are| # Only allow user <user> | |
| AllowUsers <user> | |
| # Auth global | |
| PasswordAuthentication no | |
| PubkeyAuthentication yes | |
| PermitRootLogin no | |
| # Localnets access | |
| Match Address 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,127.0.0.1/32 |
| #!/bin/bash | |
| # Crontab | |
| # $ crontab -e | |
| # Update named adblock every day at 4am | |
| # 0 4 * * * /opt/named-adblock/update.sh | |
| # Named | |
| # Write this into your named.conf file | |
| # include "/etc/bind/named.conf.adblock"; |