Comments (13)
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.
Related Issues (20)
- Wrong ultralow for past 2 years HOT 7
- UniFi native(-ish) DNSCrypt handling? HOT 3
- UniFi UXG Pro Device Firmware Version 3.1.16 Failure Bug HOT 4
- Support authentication with GitHub in installer script for increased rate-limits HOT 1
- NextDNS CLI on pfSense: "sudo nextdns log" Returns "Error: exit status 1" HOT 1
- Identify Client Correctly HOT 2
- Conditional config and device name reporting stops working HOT 2
- UnifiOS UDM SE NextDNS CLI Unreliable HOT 20
- NextDNS Latency Discrepancy: Salvador vs. Rio de Janeiro HOT 3
- UDM SE update to 3.2.12 rerunning 1.42.0 installer does not work. HOT 8
- DNS64 support HOT 5
- UDM (or UDR) with Firmware 3.1.16 and Network 8.0.28 cannot install HOT 9
- Add the possibility to hide the taskbar icon on Windows 1x HOT 7
- Install without Tray Icon & still setup profiles HOT 3
- Online Installer no longer working on Unifi Dream Machine HOT 19
- NextDNS Install does not persist after UDM Firmware Update HOT 3
- cant read
- Fritzbox+CLI Device Names Missing HOT 1
- Peaking CPU high load issue on Unify UDM Base during suricate updates 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 nextdns.