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
ASUS-Merlin Services-start #116
Comments
Related to #115 @dave14305 what do you think? |
The way dnsmasq.postconf is setup, dnsmasq.conf will only be updated if the nextdns daemon is running. I’m not familiar with how this can conflict with a vpn client (I don’t use vpn client on the router). If nextdns hasn’t started when dnsmasq starts, it will default to the WAN DNS settings. @maghuro can you give a more specific example? Or PM me on SNB with the details. It is bad to add artificial delays to startup scripts. |
I'm using a script that routes all vpn server traffic to one of the vpn clients (x3mRouting, option 4). This script isn't called from services-start, it's called In other way (I think on openvpn-start) However, if I put the command line to start NextDNS on the first line of services-start, it works and I can properly remote connect to my vpn server and have access to both lan and wan. Despite of all of this, every script that I have configured on services-start (including a couple of scripts I've written) must be called AFTER nextdns is properly configured, so they can access network through nextdns's DNS and not through router's default DNS. |
Turns out it was a problem with the script I'm using to write iptables and that wasn't have nothing to do with nextdns. However I keep my thinking that nextdns script SHOULD be called before everything else. |
You really should look at that, put the calling nextdns line on the top of everything (after the shebang of course) |
Is this related to #144? |
No, different things. The other one is that when the script is called through services-start, everything looks good. |
@maghuro can you please test master and confirm it works? |
I'm not at home right now and without possibility to compile it. Thanks! 😊 |
Just tested it, perfectly working. However... #265 |
on Merlin router, the script must be called BEFORE all scripts. because most of people have some scripts being called on services-start, and if nextdns is the last one, it causes some errors and incompatibilities. In my case, I have a script that routes a vpn server traffic to a vpn client. And if it is executed before the nextdns, some values will be overridden (don't know which and how) and I have to call this script again after nextdns.
changing nextdns calling line from last line to first line (so it can be called before everything else) is the preferable way, as from then, router will start to call any scripts with the nextdns activated. Maybe adding a little pause before executing, like 30-60s or so, so the router can have proper time to establish a wan connection.
Let me just add this little outburst - I'm no pro in coding, but as an advanced user, and as a noob coder, I think nextdns implementation right now is a little bit intrusive in a way that many scripts that we are also using are somehow bypassed, "blocked", muffled (can't find better word) by nextdns script. Talking in asus-merlin firmware, of course.
I think it should be less intrusive and a little more transparent (maybe some simple webgui?) so users can now what have been deactivated, activated, well... What's really going on.
The text was updated successfully, but these errors were encountered: