-
Notifications
You must be signed in to change notification settings - Fork 25
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
OpenWRT 24.10-rc2 #199
Comments
And logs for when the internet traffic stops The key error seems to be "no default route IP found" GNU nano 8.2 /tmp/ctrld.log |
Install logs (attempted dev, but logs are the same for release as well) As soon as the installer hits "Generating controld config: /etc/controld/ctrld.toml" that's when all traffic stops.
|
It's because dnsmasq now creates a unique dir for each instance rather than the old /tmp/dnsmasq.d. For a quick/dirty fix you can change/comment the line in the /etc/init.d/dnsmasq file (make a backup if desired) from: config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq${cfg:+.$cfg}.d" to: config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d" Which is the old behavior and do a service dnsmasq restart. After that, ctrld should work again. Once a fix is provided for ctrld you can undo your changes. |
Thank you. That fixes the DNS issue and now it runs and intercepts traffic. |
Wish I knew the answer to that one. I've been seeing it too whenever the ctrld service starts. I have to go into Luci/SSH login and restart the WAN interface to get my internet working again. Then it stays working as long as I don't restart the router/ctrld service. Not sure what's causing it yet. |
Same. I installed watchcat to patch that issue, so I don't have to do anything manually, but it is indeed still there. |
Thx modify config work for me on new release OpenWrt 24.10.0 !! |
I am trying to get started with ctrld on the new OpenWRT 24.10-rc2
I install curl via opkg then run the standard install command
sh -c 'sh -c "$(curl -sSL https://api.controld.com/dl)" -s xxxxxx forced'
On install all outbound traffic on WAN stops, no ping, no web traffic nothing.
Only way to get traffic back is to stop the service and reboot the router.
Every 2-3 times I run the service it will start without breaking internet access, but it does not intercept DNS traffic at all.
When it doesn't break the internet it shows the below logs:
Log below:
root@OpenWrt:~# ctrld run --cd xxxxxxxx --iface=auto --homedir=/etc/controld --config=/etc/controld/ctrld.toml -vv
Dec 9 03:16:48.000 INF loading config file from: /etc/controld/ctrld.toml
Dec 9 03:16:48.053 INF starting ctrld v1.3.11
Dec 9 03:16:48.055 INF os: linux 6.6.63
Dec 9 03:16:48.056 INF fetching Controld D configuration from API: xxxxxxx mode=cd
Dec 9 03:16:48.059 DBG resolving "api.controld.com" using bootstrap DNS ["76.76.2.22:53" "202.128.112.1:53" "[fe80::2293:39ff:fef6:75e7]:53"]
Dec 9 03:16:50.061 DBG got answer from nameserver: 76.76.2.22
Dec 9 03:16:52.062 DBG got answer from nameserver: 76.76.2.22
Dec 9 03:16:52.062 DBG API IPs: [2606:1a40:3::1 147.185.34.1]
Dec 9 03:16:53.431 INF generating ctrld config from Control-D configuration mode=cd
Dec 9 03:16:53.432 INF listener.0 could not listen on address: 0.0.0.0:53, trying: 0.0.0.0:53
Dec 9 03:16:53.433 INF listener.0 could not listen on address: 0.0.0.0:53, trying localhost: 127.0.0.1:53
Dec 9 03:16:53.434 INF listener.0 could not listen on address: 127.0.0.1:53, trying current ip with port 5354
Dec 9 03:16:53.438 INF writing config file to: /etc/controld/ctrld.toml
Dec 9 03:16:53.443 DBG control server started: /var/run/ctrld_control.sock
Dec 9 03:16:53.444 INF using bootstrap IP for upstream.0 bootstrap_ip=76.76.2.22
Dec 9 03:16:53.453 DBG checking default route interface iface=eth0
Dec 9 03:16:53.459 WRN no default route IP found
Dec 9 03:16:53.460 DBG start hosts file discovery
Dec 9 03:16:53.460 INF starting DNS server on listener.0: 0.0.0.0:5354
Dec 9 03:16:53.461 DBG start dhcp discovery
Dec 9 03:16:53.462 DBG router setup on start
Dec 9 03:16:53.466 DBG start arp discovery
Dec 9 03:16:53.467 ERR could not configure router error="open /tmp/dnsmasq.d/ctrld.conf: no such file or directory"
Dec 9 03:16:53.468 DBG starting custom config reload timer mode=api-reload
Dec 9 03:16:53.468 DBG start checking DNS loop
Dec 9 03:16:53.468 DBG skipping external: upstream.0
Dec 9 03:16:53.468 DBG end checking DNS loop
Dec 9 03:16:53.469 DBG listening ndp on: ::%br-lan.66
Dec 9 03:16:53.470 DBG listening ndp on: ::%eth0
Dec 9 03:16:53.471 DBG listening ndp on: ::%br-lan
Dec 9 03:16:53.473 DBG start ptr discovery
Dec 9 03:16:53.474 DBG start mdns discovery
Dec 9 03:16:53.573 DBG sending doh request to: 76.76.2.22:443
Dec 9 03:16:53.645 DBG could not find avahi-browse binary, skipping. error="exec: "avahi-browse": executable file not found in $PATH"
Dec 9 03:16:53.645 WRN stop probing "[ff02::fb]:5353": write udp6 [::]:5353->[ff02::fb]:5353: sendto: network is unreachable
Dec 9 03:16:53.645 WRN stop probing "224.0.0.251:5353": write udp4 0.0.0.0:5353->224.0.0.251:5353: sendto: operation not permitted
Dec 9 03:16:53.665 DBG sending doh request to: 76.76.2.22:443
Dec 9 03:17:53.469 DBG start checking DNS loop
Dec 9 03:17:53.470 DBG skipping external: upstream.0
Dec 9 03:17:53.471 DBG end checking DNS loop
Dec 9 03:18:53.470 DBG start checking DNS loop
Dec 9 03:18:53.471 DBG skipping external: upstream.0
Dec 9 03:18:53.471 DBG end checking DNS loop
Stopping service here...
Dec 9 03:19:26.404 DBG dns watchers stopped
Dec 9 03:19:26.404 INF Service stopped
Dec 9 03:19:26.405 DBG router cleanup on stop
Dec 9 03:19:26.405 ERR could not cleanup router error="remove /tmp/dnsmasq.d/ctrld.conf: no such file or directory"
Dec 9 03:19:26.407 DBG Restoring DNS for interface iface=eth0
Dec 9 03:19:26.555 DBG dns: [rc=unknown ret=direct]
Dec 9 03:19:26.555 DBG dns: using "direct" mode
Dec 9 03:19:26.631 DBG Restoring DNS successfully iface=eth0
The text was updated successfully, but these errors were encountered: