Comments (10)
gotta check that out, but if you take a look at my ansible snippet you can see that true
is definitely the first value
I have to admit that the first revServers in my second comment is wrong, it should read :
revServers = ["true,10.6.0.0/16,10.6.84.254,lan"]
EDIT: I can confirm, on first launch it shows revServers = ["true,10.6.0.0/16,10.6.84.254,lan"]
after clicking import button in teleporter it shows revServers = ["DOMAIN=lan,10.6.0.0/16,10.6.84.254,lan"]
I couldn't find anything in the logs concerning the import action and the subsequent config file modification
from docker-pi-hole.
little more info, by parsing pihole.toml
I found out that :
revServers = ["lan,10.6.0.0/16,10.6.84.254,lan"]
is changed to :
revServers = ["DOMAIN=lan,10.6.0.0/16,10.6.84.254,lan"]
after hitting import button
That's why everything goes back to normal after I restart the container, as the reverse servers are configured as environment variables in the container
from docker-pi-hole.
I found out that :
revServers = ["lan,10.6.0.0/16,10.6.84.254,lan"]
is changed ...
Was the initial value "lan,10.6.0.0/16,10.6.84.254,lan"
?
The first item (lan
) should be true
, like value in the compose file:
FTLCONF_dns_revServers: "true, ..."
from docker-pi-hole.
after clicking import button in teleporter it shows
revServers = ["DOMAIN=lan,10.6.0.0/16,10.6.84.254,lan"]
This suggests an issue with the imported configuration, how does it look like inside the backup file you import?
from docker-pi-hole.
well, that depends, this configuration has been working pretty good for years
I can mail you the archive if you'd like, after all nothing is that important in it, and you'll be able to see by yourself...
anyhoo, I've grepped through all the config file in the archive, and I didn't find any reference to DOMAIN=lan
so, I guess, either it's somewhere else or it's in the code, or I'm blind as a mole...
from docker-pi-hole.
In your original backup file, find setupVars.conf
file.
What are the values for this 4 variables?
REV_SERVER=
REV_SERVER_CIDR=
REV_SERVER_TARGET=
REV_SERVER_DOMAIN=
from docker-pi-hole.
alright, I'm blind as a mole (or drunk, who knows), here's the content of setupVars.conf
REV_SERVER=true
REV_SERVER_DOMAIN=lan
REV_SERVER_TARGET=10.6.84.254
REV_SERVER_CIDR=10.6.0.0/16
notice it matches with the parameters you can find in my ansible snippet available in my first post
EDIT : here's the ansible part for v5 :
- name: Déploiement de PiHole
containers.podman.podman_container:
name: pihole
image: docker.io/pihole/pihole:latest
label:
io.containers.autoupdate=registry
PODMAN_SYSTEMD_UNIT=pod_infra.service
diun.enable=true
env:
DNSMASQ_LISTENING: 'single'
DNSSEC: 'true'
DNS_BOGUS_PRIV: 'true'
DNS_FQDN_REQUIRED: 'true'
DNSMASQ_USER: pihole
FTLCONF_LOCAL_IPV4: '{{ ansible_default_ipv4.address }}'
FTLCONF_PIHOLE_PTR: 'HOSTNAMEFQDN'
IPv6: 'false'
PIHOLE_DNS_: '127.0.0.1#5054'
PIHOLE_DOMAIN: '{{ ansible_domain }}'
REV_SERVER: 'true'
REV_SERVER_CIDR: "{{ ansible_default_ipv4.address.split('.')[0:2] | join('.') }}.0.0/16"
REV_SERVER_DOMAIN: '{{ ansible_domain }}'
REV_SERVER_TARGET: '{{ ansible_default_ipv4.gateway }}'
TEMPERATURE_UNIT: 'c'
TZ: 'Europe/Paris'
VIRTUAL_HOST: 'pihole.{{ ansible_fqdn }}'
WEBPASSWORD: '{{ vault_pihole_passwd }}'
WEBTHEME: 'default-dark'
WEBUIBOXEDLAYOUT: 'boxed'
WEB_PORT: '8053'
volumes:
- '/srv/pihole/etc-pihole/:/etc/pihole/'
- '/srv/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/'
- '/srv/home/home.html:/var/www/html/admin/home.html'
- '/srv/ssl/ca.crt:/var/www/html/admin/ca.crt'
state: present
restart_policy: "no"
pod: "infra"
log_driver: json-file
log_opt: path=/var/log/containers/pihole.json
healthcheck_start_period: 1m
healthcheck_interval: 2m
healthcheck_retries: 5
healthcheck_timeout: 1m
dns: 1.1.1.1
from docker-pi-hole.
Thanks for the additional input, I see now where the bug is - we are using a wrong (intermediate) variable which ends up to contain something different than the expected active
boolean at the time of creating the final string. This particular case would have been caught by pi-hole/FTL#1773 but this PR is still awaiting review and not yet active.
This will be fixed by pi-hole/FTL#1901
from docker-pi-hole.
Thanks
I saw your PR, glad I could help on this matter, I will test as soon as it is merged
from docker-pi-hole.
Hi,
Just updated, and tested the import function, everything works as intended
Thanks for the hard work 👍
from docker-pi-hole.
Related Issues (20)
- Revert `systemd.resolved` to original state HOT 2
- PiHole Web Interface keeps going back to an older version HOT 10
- 403 forbidden HOT 4
- s6-overlay-suexec: Exec format error HOT 1
- Seeing blank screen on homepage with 2024.01.0 image HOT 3
- Pi-hole Docker on Windows 10 - Inconsistent Ad Blocking Behavior and Persistent Issues HOT 1
- Unable to run as non-root user HOT 2
- Docker diff unexpectedly lists a large number of changes for pihole container HOT 7
- cant make changes HOT 8
- Container still has invalid /etc/resolv.conf HOT 6
- some settings tabs often will not load HOT 17
- WEBTHEME not recognizing lcars-picard HOT 2
- s6-rc-compile: fatal: invalid /etc/s6-overlay/s6-rc.d/_postFTL/type: must be oneshot, longrun, or bundle HOT 5
- DNS Resolving not work after docker restart with readonly /etc/cron.d/pihole HOT 10
- Cannot lunch DHCP SERVER / FTL failed to start NET_ADMIN HOT 5
- Remove obsolete "version" value from example docker-compose.yml in README.md HOT 1
- FTLCONF_dns_upstream recommendation not correct in log HOT 2
- _uid-gid-changer.sh id -g ${groupname} gives wrong gid back HOT 2
- Stop working in latest release. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-pi-hole.