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

Stubby and Openwrt installation procedure #360

Open
hanvinke opened this issue May 18, 2024 · 6 comments
Open

Stubby and Openwrt installation procedure #360

hanvinke opened this issue May 18, 2024 · 6 comments

Comments

@hanvinke
Copy link

Lately I cannot install stubby as usual:

` opkg install stubby
Unknown package 'stubby'.
Collected errors:

  • opkg_install_cmd: Cannot install package stubby.`

I am using latest release Openwrt 23.05.03. The firmwareselector page from openwrt also does not recognize
Stubby as a program anymore.

Is this intentional?

@hanvinke
Copy link
Author

Update:
Although I updated twice with opkg update Stubby was not found. But Stubby was found after updating through the luci gui.
Probably the reason it was not found on the firmware selector page is because the device i use is only supported through a Snapshot (not yet officially supported).

Stubby

So I will close this issue.

@wtoorop
Copy link
Contributor

wtoorop commented May 19, 2024

Thanks for reporting @hanvinke . If anyone else has the issue, we at least know what to do.

@hanvinke
Copy link
Author

hanvinke commented Jun 2, 2024

@wtoorop Thanks for the reaction!

Did not have much time recently to test Stubby. But got some mixed feelings when following the guide for installing with OpenWrt though. For instance when a user reboots the device Stubby will lose its DNSSEC functionality. This is because the directory "/var/lib/stubby/" does not exist anymore.
The reason is OpenWrt´s /var is just a symlink to /tmp, thus only resides on a tmpfs-partition. It is however not recreated on boot. So Stubby´s Zero configuration will fail and will try to look for the default trust anchor location.

"Stubby -i" shows "default_trust_anchor_location": <bindata of "/etc/unbound/getdns-root.key" But Unbound is not installed, only dnsMasq. Maybe it is an idea to give some more information about this in the README? I think a normal user might get frustrated about Stubby not working after a reboot.

//Edit: I still need to examine if there is a difference in behaviour when using an ext4 or squashfs openWRT-image when installing Stubby.

@hanvinke
Copy link
Author

hanvinke commented Jun 2, 2024

Reopening and changed description

@hanvinke hanvinke reopened this Jun 2, 2024
@hanvinke hanvinke changed the title Openwrt : Cannot install package stubby Stubby and Openwrt installation procedure Jun 2, 2024
@rmandrad
Copy link

rmandrad commented Jul 3, 2024

@wtoorop Thanks for the reaction!

Did not have much time recently to test Stubby. But got some mixed feelings when following the guide for installing with OpenWrt though. For instance when a user reboots the device Stubby will lose its DNSSEC functionality. This is because the directory "/var/lib/stubby/" does not exist anymore. The reason is OpenWrt´s /var is just a symlink to /tmp, thus only resides on a tmpfs-partition. It is however not recreated on boot. So Stubby´s Zero configuration will fail and will try to look for the default trust anchor location.

"Stubby -i" shows "default_trust_anchor_location": <bindata of "/etc/unbound/getdns-root.key" But Unbound is not installed, only dnsMasq. Maybe it is an idea to give some more information about this in the README? I think a normal user might get frustrated about Stubby not working after a reboot.

//Edit: I still need to examine if there is a difference in behaviour when using an ext4 or squashfs openWRT-image when installing Stubby.

read the openwrt forum ... you have an option to have /var permanent ... and really has this anything to do with stubby !!! open a question instead on forum.openwrt.org

@hanvinke
Copy link
Author

hanvinke commented Jul 3, 2024

@rmandrad
Hi, thank you for your input.

I think my main concern is more about a simple user following the instructions found on https://github.com/openwrt/packages/blob/master/net/stubby/files/README.md . These are fine but are missing in my opinion some important points. [ I just hate to see a highly sophisticated program like Stubby fail in the real world because of some silliness. The creators deserve better in my opinion. ]

Firstly Stubby will not work "out of the box" after installation. This is because the directory /var/lib/stubby is not created automatically. So mkdir /var/lib/stubby and chown -R stubby:stubby /var/lib/stubby is needed. Then it would be nice to have a description about adding /var/lib/stubby to the backup list via System > Backup/Flash firmware via LuCI. Then with an attended sysupgrade (see https://openwrt.org/docs/guide-user/installation/attended.sysupgrade) the directory and files will be preserved after a reinstallation for example. I don´t know if making /var permanent is in general a good idea in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants