Comments (15)
Not against the idea, however, if you have a way to persist a boot script over firmware updates while the nextdns package does not, it would be better to exploit this to automatically restore the package. Can you provide more details about how you maintain those boot scripts active?
from nextdns.
I use the Unifi OS utilities boot script.
https://github.com/unifi-utilities/unifios-utilities/blob/main/on-boot-script/README.md
From the readme it states, the script…
Persists through reboot and firmware updates! It is able to do this because Ubiquiti caches all debian package installs on the UDM in /data, then re-installs them on reset of unifi-os container
So maybe you are on the right track in your thinking. Either way, the goal is to either be able to keep Nextdns installed between updates, or reinstall it immediately after an update on boot.
from nextdns.
Apparently they have the same problem with 3.x and upgrades. Are you sure your boot scripts are surviving upgrades? Once they find a solution, we can port it.
from nextdns.
And here I thought my on-boot scripts were working fine. Turns out the udm-boot
service was in fact not working either.
I have a few scripts in /data/on_boot.d
that are set to run in sequence by the udm-boot
service. But since nextdns was not-installed anymore I'd ssh in and manually execute each script after re-installing nextdns. In doing so I assumed udm-boot was doing it's job but failing (due to nextdns no longer installed) when in reality it was also not working. All the while, my system was running fine since i was manually invoking those scripts each time. 🙃
Hopefully a solution is reached on that thread. I was able to get udm-boot
working again by following these steps unifi-utilities/unifios-utilities#523 (comment) but not sure it will survive firmware upgrades. I'll have to wait and see.
from nextdns.
I'd like this for the use-case of cloud vm exit-node provisioning
from nextdns.
I'd love to do this as well. I'd like to initiate the re-install from node-red via ssh, and if it's already installed then it could just exit. The config files are always still around, it's just the program itself gets removed. Once it's reinstalled it works fine with no changes.
Maybe like a sh -c 'sh -c "$(curl -sL https://nextdns.io/install-unattended"' or something?
from nextdns.
Yes I am seeing this too and as often as the UDM firmware comes out remembering to re-install the package is a bit cumbersome. Sounds like so far there is not a resolution? The Control-D folks said without a doubt their install persists but I have not tried/tested it. I have been a loyal NextDNS user since the start and don't like to change just to change products.
I would like to see this just "fix itself" after a firmware upgrade, b/c I have no other scripts running after updates. This is the only add on I need to maintain after an upgrade.
from nextdns.
I’m not aware of a solution. If you find something working, let me know so I can implement it.
from nextdns.
Well, for my use case I just need the script to run without asking the user to press 'i'. Once it installs, the config files are not removed when UDM re-images, it's just the install files, so it works right away. I usually just ctrl-break out of the config wizard.
So i suppose just some sort of way to tell the install to bypass the initial screen asking you to enter 'i' would be worth a shot?
from nextdns.
You can just reinstall the apt package (or restore it). You don’t need to run the installer.
from nextdns.
You can just reinstall the apt package (or restore it). You don’t need to run the installer.
I..... can't believe I didn't think of that haha. Ok, next UDM update I'll give that a shot.
from nextdns.
I just discovered my UXG had secretly done an update and removed NextDNS. Not sure how I can even auto detect that its been removed. Need persistence!
from nextdns.
I just discovered my UXG had secretly done an update and removed NextDNS. Not sure how I can even auto detect that its been removed. Need persistence!
not "secretly" but you have activated "automatic updates".
from nextdns.
https://github.com/unifi-utilities/unifios-utilities/tree/main/on-boot-script-2.x
This does persist on firmware updates, is there a way for NextDNS to leverage it (in my case for Unifi Cloud Gateway Ultra)?
from nextdns.
This project is using the same technique as our installer and has likely the same issue on firmware upgrade since recent firmwares.
from nextdns.
Related Issues (20)
- private block list HOT 1
- Fails to start service on Debian (Raspberry Pi) HOT 5
- cache-keys and cache-stats subcommands broken with release 1.43.0 HOT 5
- Can't upgrade HOT 3
- 1.43.1 Broken on MacOS HOT 14
- 1.43.2 on Ubiquiti EdgeOS - Repeating "Received signal: broken pipe (ignored)" log entries HOT 4
- v1.43.3 increased lag in page loading HOT 1
- UniFi with NextDNS "Hangs" at random about once a month on multiple systems
- Invalid header field value for "X-Device-Model"
- nextdns status returns Error: unknown status: HOT 6
- FreeBSD 14 - Not able to resolve hostnames locally on the VM running FreeBSD HOT 2
- tplinkwifi.net blocked HOT 4
- Upgrade from 1.43.3 to 1.43.4 on UDM HOT 3
- nextdns on Synology NAS: service in failed state HOT 2
- NextDns on udm with WireGuard vpn
- EdgeRouterX can't upgrade past 1.43.4 Cannot detect running environment
- NextDNS installation on Unifi Cloud Gateway Ultra is not persistent HOT 4
- Multiple upstreams HOT 1
- Conditional Profiles broken on UniFiOS HOT 9
- NextDns crashes every 30 seconds on Asus Ac86u Router HOT 2
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 nextdns.