Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forwarder not being set on UDM-Pro #203

Open
nalabelle opened this issue Dec 20, 2024 · 1 comment
Open

Forwarder not being set on UDM-Pro #203

nalabelle opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nalabelle
Copy link

I was trying to set up ctrld on a Ubiquiti UDM-Pro and I couldn't get it working. I tracked it down to the dnsmasq file not being written here.

I can start ctrld, manually create /run/dnsmasq.conf.d/zzzctrld.conf with these contents, and pkill dnsmasq, and then everything works as expected.

no-resolv
server=127.0.0.1#5354
add-mac

When I shutdown ctrld, it deletes that file.

System Details
root@Dream-Machine-Pro:~# uname -o
GNU/Linux
root@Dream-Machine-Pro:~# uname -u
uname: invalid option -- 'u'
Try 'uname --help' for more information.
root@Dream-Machine-Pro:~# ubnt-device-info firmware && echo
4.0.21
root@Dream-Machine-Pro:~# test -d /data/unifi && echo "true"
true
Log excerpt
root@Dream-Machine-Pro:~# ctrld service start --log /tmp/ctrld.log -vv
Dec 20 14:45:01.000 NTC Reading config: /etc/controld/ctrld.toml
Dec 20 14:45:01.000 INF loading config file from: /etc/controld/ctrld.toml
Dec 20 14:45:01.131 NTC Starting service
Dec 20 14:45:03.104 DBG waiting for ctrld listener to be ready
Dec 20 14:45:03.655 NTC Service started
# /tmp/ctrld.log
{"level":"info","time":"2024-12-20T14:45:03-08:00.426","message":"starting ctrld v1.3.11"}
{"level":"info","time":"2024-12-20T14:45:03-08:00.505","message":"os: linux Debian GNU/Linux 11 (bullseye) (4.19.152-ui-alpine)"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.507","message":"control server started: /var/run/ctrld_control.sock"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.508","message":"resolving \"dns.nextdns.io\" using bootstrap DNS [\"76.76.2.22:53\" \"[fe80::200:5eff:fe00:101]:53\"]"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.544","message":"got answer from nameserver: 76.76.2.22"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.569","message":"got answer from nameserver: 76.76.2.22"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.569","message":"bootstrap IPs: [2001:19f0:ac01:170:5400:2ff:fec8:72c8 2a0e:6901:410:25:5054:ff:fe1c:7c81 104.238.181.28 209.209.57.165]"}
{"level":"info","time":"2024-12-20T14:45:03-08:00.569","message":"bootstrap IPs for upstream.0: [\"2001:19f0:ac01:170:5400:2ff:fec8:72c8\" \"2a0e:6901:410:25:5054:ff:fe1c:7c81\" \"104.238.181.28\" \"209.209.57.165\"]"}
{"level":"info","time":"2024-12-20T14:45:03-08:00.570","message":"starting DNS server on listener.0: 0.0.0.0:5354"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.573","message":"start checking DNS loop"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.574","message":"skipping external: upstream.0"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.575","message":"end checking DNS loop"}
{"level":"debug","error":"dial udp [fe80::200:5eff:fe00:101]:53: connect: invalid argument","time":"2024-12-20T14:45:03-08:00.577","message":"failed to connect to OS nameserver: fe80::200:5eff:fe00:101"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.578","message":"initialized OS resolver with nameservers: [76.76.2.0:53]"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.650","message":"sending doh3 request to: 209.209.57.165:443"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.727","message":"start hosts file discovery"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.727","message":"start dhcp discovery"}
{"level":"debug","time":"2024-12-20T14:45:03-08:00.732","message":"start arp discovery"}
...
@yegors yegors added the bug Something isn't working label Feb 13, 2025
@cuonglm
Copy link
Collaborator

cuonglm commented Feb 14, 2025

@nalabelle ctrld service start won't do magic thing, like changing DNS, automatic router setup ...

Could you please try running this command:

ctrld start --log /tmp/ctrld.log -vv

and see if it worked for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants