Skip to content

Instantly share code, notes, and snippets.

@mauvehed
Last active October 11, 2023 22:21
Show Gist options
  • Select an option

  • Save mauvehed/506173c4bd1c0e39d9883d4f1f0765a5 to your computer and use it in GitHub Desktop.

Select an option

Save mauvehed/506173c4bd1c0e39d9883d4f1f0765a5 to your computer and use it in GitHub Desktop.

Revisions

  1. mauvehed revised this gist Oct 11, 2023. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions Nextdns_UDM.md
    Original file line number Diff line number Diff line change
    @@ -44,9 +44,11 @@ sh -c 'DEBUG=1 sh -c "$(curl -sL https://nextdns.io/install)"'
    Source: https://github.com/nextdns/nextdns/wiki/Conditional-Profile

    ```
    sudo nextdns config set \
    nextdns config set \
    -profile 10.0.4.0/24=12345 \
    -profile 00:1c:42:2e:60:4a=67890 \
    -profile abcdef
    sudo nextdns restart
    nextdns config set -max-ttl=5s
    nextdns restart
    nextdns config
    ```
  2. mauvehed revised this gist May 7, 2023. 1 changed file with 28 additions and 4 deletions.
    32 changes: 28 additions & 4 deletions Nextdns_UDM.md
    Original file line number Diff line number Diff line change
    @@ -1,28 +1,52 @@
    # NextDNS on UnifiOS
    Sourced from https://github.com/nextdns/nextdns/wiki/UnifiOS
    Source https://github.com/nextdns/nextdns/wiki/UnifiOS

    ## To upgrade/uninstall, run this command again and select the approriate option

    `sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'`
    ```
    sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'
    ```

    ## You can use the nextdns command to control the daemon.
    ### Here is a few important commands to know:

    #### Start, stop, restart the daemon:
    ```
    nextdns start
    nextdns stop
    nextdns restart
    ```

    #### Configure the local host to point to NextDNS or not:
    ```
    nextdns activate
    nextdns deactivate
    ```

    #### Explore daemon logs:
    ```
    nextdns log
    ```

    #### For more commands, use:
    ```
    nextdns help

    ```
    ### Generate DEBUG logs

    `sh -c 'DEBUG=1 sh -c "$(curl -sL https://nextdns.io/install)"'`
    ```
    sh -c 'DEBUG=1 sh -c "$(curl -sL https://nextdns.io/install)"'
    ```

    ## Advanced

    ### Conditional profiling (by subnet/VLAN)
    Source: https://github.com/nextdns/nextdns/wiki/Conditional-Profile

    ```
    sudo nextdns config set \
    -profile 10.0.4.0/24=12345 \
    -profile 00:1c:42:2e:60:4a=67890 \
    -profile abcdef
    sudo nextdns restart
    ```
  3. mauvehed created this gist May 7, 2023.
    28 changes: 28 additions & 0 deletions Nextdns_UDM.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    # NextDNS on UnifiOS
    Sourced from https://github.com/nextdns/nextdns/wiki/UnifiOS

    ## To upgrade/uninstall, run this command again and select the approriate option

    `sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'`

    ## You can use the nextdns command to control the daemon.
    ### Here is a few important commands to know:

    #### Start, stop, restart the daemon:
    nextdns start
    nextdns stop
    nextdns restart

    #### Configure the local host to point to NextDNS or not:
    nextdns activate
    nextdns deactivate

    #### Explore daemon logs:
    nextdns log

    #### For more commands, use:
    nextdns help

    ### Generate DEBUG logs

    `sh -c 'DEBUG=1 sh -c "$(curl -sL https://nextdns.io/install)"'`