Search results

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

  1. Dabombber

    [384.12_Alpha - builds] Testing all variants.

    You should be able to generate a certificate from the ddns page. I don't see why that wouldn't be permanent.
  2. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    tail shows the last 10 lines of a file by default.
  3. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    That was using a host file blocking 811469 domains, the exact same way diversion does. pc_append "addn-hosts=${DIVERSION_DIR}/list/blacklist" $CONFIG
  4. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    It doesn't make any difference in memory having more hosts per line, it just decreases the file size. Not using Diversion there, but addn-hosts=/tmp/adblock.hosts is in my dnsmasq config.
  5. Dabombber

    384.11 Secure DNS

    What do you have "Wan: Use local caching DNS server as system resolver (default: No)" set to in the "Tools > Other Settings" page. If it's set to Yes, try changing it to No. It could be stopping your router from getting the time, which is needed for most certificate stuff.
  6. Dabombber

    [384.12_Alpha - builds] Testing all variants.

    Yea that's true, lazy logic on my part. This should work right? VERSION="$(nvram get buildno)" VERSION="${VERSION%_*}" if [ $((${VERSION%.*} * 100 + ${VERSION#*.})) -ge 38412 ]; then nvram set dns_local_cache=1 else nvram set dns_local=1 fi EDIT: Mmm not quite, some builds have...
  7. Dabombber

    [384.12_Alpha - builds] Testing all variants.

    You can compare the version completely in shell. VERSION="$(nvram get buildno)" if [ "${VERSION%.*}" -ge 384 ] && [ "${VERSION#*.}" -ge 12 ]; then nvram set dns_local_cache=1 else nvram set dns_local=1 fi
  8. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    Looks like diversion is reading /proc/swaps and messed up the logic a bit. Just ignore the message for now. @thelonelycoder From line 451 else # No reference in post-mount swaplocation="$(find /tmp/mnt/*/myswap.swp 2> /dev/null)" if [ "$(echo "$swaplocation" | wc...
  9. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    Since $() eats newlines anyway, you could just check if the string is empty [ -n "$(tail -c1 "$1")" ] && echo >> "$1"
  10. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    Is your swap file managed by diversion? If not you might want to put the line in a different file and include that from the post-mount script. Side note, does this work? check_nl(){ [ "$(tail -c1 "${1}"; echo x)" != "$'\nx'" ] && echo >>"${1}";} I don't think ANSI-C Quoting is supported by...
  11. Dabombber

    amtm amtm - the Asuswrt-Merlin Terminal Menu

    Obviously the "Do stuff here" would be replaced by whatever relies on ntp.
  12. Dabombber

    amtm amtm - the Asuswrt-Merlin Terminal Menu

    Easy fix, just run it in a background subshell: #!/bin/sh ( ntptimer=0 ntptimeout=30 while [ "$(nvram get ntp_ready)" = "0" ] && [ "$ntptimer" -lt "$ntptimeout" ]; do ntptimer=$((ntptimer+1)) sleep 1 done // Do stuff here ) &
  13. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    Ah yea, I guess my terminology is a bit off. I meant filterlist as a generic umbrella term for any kind of blocking file.
  14. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    I'm not sure I'd want a filterlist which uses a spam email host filter as a source. Completely different applications.
  15. Dabombber

    [384.12_Alpha - builds] Testing all variants.

    Those are just the nvram names for them, wan_dns actually has space separated entries and ipv6 entries are in the form ipv6_dns1 - ipv6_dns3. They're automatic from your ISP I think.
  16. Dabombber

    [384.12_Alpha - builds] Testing all variants.

    If you're using DoT you will probably want it off. The clients always go through the router/dnsmasq/stubby, but if set to 'no' the router will skip dnsmasq/stubby. This could be important since stubby needs the system time to be correct, and to get the correct time you need to go through stubby...
  17. Dabombber

    [Release] Asuswrt-Merlin 384.11 is available

    /opt/tmp is usually created by entware, although there doesn't seem to be anything in the script which requires entware. So you can either change the FILE="/opt/tmp/dhcp_staticlist.txt" line to somewhere else or run entware-setup.sh.
  18. Dabombber

    [384.12_Alpha - builds] Testing all variants.

    That pretty much explains it though. If the router itself (not clients) wants to know the ip of a domain, the option will decide if it goes through dnsmasq or not. That'd usually be what you want since it'll have caching and resolve lan domains, but if you have a weird setup you might want to...
  19. Dabombber

    Diversion Diversion - the Router Ad-Blocker

    You'd be better off reporting this to the maintainers of whichever hostlist you're using. It's kinda surprising how some lists don't do basic validation of domains. On the off chance thelonelycoder feels like validating them in diversion, I think this regex should match all valid domains (and a...
Top