What's new

DNScrypt dnscrypt installer for asuswrt

  • 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!

Do you get an error when creating a swapfile?
I can browse the files just fine so it works!

=> Please enter the number designates your selection: 5
Info: This operation will install a swap file for your device
Info: You need an external USB storage to host this file
=> Do you want to install a swap file (512MB on ext filesystem partition)? [y/n]: y
find: unrecognized: -maxdepth
BusyBox v1.25.1 (2018-02-04 12:53:06 EST) multi-call binary.
Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]
Search for files and perform actions on them.
First failed action stops processing of current file.
Defaults: PATH is current directory, action is '-print'
-L,-follow Follow symlinks
-H ...on command line only
Actions:
! ACT Invert ACT's success/failure
ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2
ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2
Note: -a has higher priority than -o
-name PATTERN Match file name (w/o directory name) to PATTERN
-iname PATTERN Case insensitive -name
-mtime DAYS mtime is greater than (+N), less than (-N),
or exactly N days in the past
If none of the following actions is specified, -print is assumed
-print Print file name
-print0 Print file name, NUL terminated
-exec CMD ARG ; Run CMD with all instances of {} replaced by
file name. Fails if CMD exits with nonzero
*** Error: Unable to find any external USB storage
 
Not sure what causes these errors. We have the same version of busybox only the timestamp is different.

Can you post the output of

Code:
fdisk -l | grep "\/dev\/sd"

and of

Code:
df -h
 
I can browse the files just fine so it works!

=> Please enter the number designates your selection: 5
Info: This operation will install a swap file for your device
Info: You need an external USB storage to host this file
=> Do you want to install a swap file (512MB on ext filesystem partition)? [y/n]: y
find: unrecognized: -maxdepth
BusyBox v1.25.1 (2018-02-04 12:53:06 EST) multi-call binary.
Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]
Search for files and perform actions on them.
First failed action stops processing of current file.
Defaults: PATH is current directory, action is '-print'
-L,-follow Follow symlinks
-H ...on command line only
Actions:
! ACT Invert ACT's success/failure
ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2
ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2
Note: -a has higher priority than -o
-name PATTERN Match file name (w/o directory name) to PATTERN
-iname PATTERN Case insensitive -name
-mtime DAYS mtime is greater than (+N), less than (-N),
or exactly N days in the past
If none of the following actions is specified, -print is assumed
-print Print file name
-print0 Print file name, NUL terminated
-exec CMD ARG ; Run CMD with all instances of {} replaced by
file name. Fails if CMD exits with nonzero
*** Error: Unable to find any external USB storage
Have you installed any additional entware packages, such as find? Post output of
Code:
which find
 
@thelonelycoder Something weird with the shell on AC86U. Can you send me the output of following commands:
Code:
BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum`
echo ${#BLAH}
[ ${#BLAH} -eq 32 ] || echo BAM
[ `echo $BLAH|wc -c` -eq 32 ] || echo HAM
On my AC56U it's
Code:
admin@RT-AC56U-84E0:/tmp/mnt# BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum`
admin@RT-AC56U-84E0:/tmp/mnt# echo ${#BLAH}
267752

Dunno why 267752 is not a number :(
 
Last edited:
Not sure what causes these errors. We have the same version of busybox only the timestamp is different.

Can you post the output of

Code:
fdisk -l | grep "\/dev\/sd"

and of

Code:
df -h

I have a 16GB USB3 stick plugged in and working over the network, I deleted the partition and put a EXT3 on this time.

ASUSWRT-Merlin RT-AC68U 384.3-beta1 Sun Feb 4 17:53:07 UTC 2018
which findGoNz0@Access-Point:/tmp/home/root# which find
/usr/bin/find
GoNz0@Access-Point:/tmp/home/root# fdisk -l | grep "\/dev\/sd"
Disk /dev/sda: 7756 MB, 7756087296 bytes
/dev/sda1 * 1 943 7573280 c Win95 FAT32 (LBA)
GoNz0@Access-Point:/tmp/home/root# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 33.6M 33.6M 0 100% /
devtmpfs 124.8M 0 124.8M 0% /dev
tmpfs 124.9M 592.0K 124.3M 0% /tmp
/dev/mtdblock4 62.8M 1.8M 61.0M 3% /jffs
GoNz0@Access-Point:/tmp/home/root#
Have you installed any additional entware packages, such as find? Post output of
Code:
which find

Nope nothing.

ASUSWRT-Merlin RT-AC68U 384.3-beta1 Sun Feb 4 17:53:07 UTC 2018
which findGoNz0@Access-Point:/tmp/home/root# which find
/usr/bin/find
 
@thelonelycoder Something weird with the shell on AC86U. Can you send me the output of following commands:
Code:
BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum`
echo ${#BLAH}
[ ${#BLAH} -eq 32 ] || echo BAM
[ `echo $BLAH|wc -c` -eq 32 ] || echo HAM
On my AC56U it's
Code:
admin@RT-AC56U-84E0:/tmp/mnt# BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum`
admin@RT-AC56U-84E0:/tmp/mnt# echo ${#BLAH}
267752

Dunno why 267752 is not a number :(

Output from my unit: <!26775
btw if you check that url redirects to dnscrypt.info
 
I have a 16GB USB3 stick plugged in and working over the network, I deleted the partition and put a EXT3 on this time.

ASUSWRT-Merlin RT-AC68U 384.3-beta1 Sun Feb 4 17:53:07 UTC 2018
which findGoNz0@Access-Point:/tmp/home/root# which find
/usr/bin/find
GoNz0@Access-Point:/tmp/home/root# fdisk -l | grep "\/dev\/sd"
Disk /dev/sda: 7756 MB, 7756087296 bytes
/dev/sda1 * 1 943 7573280 c Win95 FAT32 (LBA)
GoNz0@Access-Point:/tmp/home/root# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 33.6M 33.6M 0 100% /
devtmpfs 124.8M 0 124.8M 0% /dev
tmpfs 124.9M 592.0K 124.3M 0% /tmp
/dev/mtdblock4 62.8M 1.8M 61.0M 3% /jffs
GoNz0@Access-Point:/tmp/home/root#


Nope nothing.

ASUSWRT-Merlin RT-AC68U 384.3-beta1 Sun Feb 4 17:53:07 UTC 2018
which findGoNz0@Access-Point:/tmp/home/root# which find
/usr/bin/find
just for testing purposes, have u tried changing USB port? Or using other USB drive?
 
@GoNz0 The fact you were having problem with find command is weird. And when you ran df -h, there's no USB connected too, so I don't think it works else where anyway. In any case, I have tried to mix up the code without using find, say if you have the stick mounted correctly, it should work.

@thelonelycoder @accolito Having var length printed out with <! prefix might be a bug, or is it something else. Maybe @RMerlin can take a look at this? Anyway I have stop using ${#VAR} in my code, hopefully it works now.

@all some new features are added, check my master commit log :).
 
@bigeyes0x0 and Frank...Thank you for this incredible script...very very nice! Keep up the great work you guys!
 
N7XkAAO.png

1R6TEzs.png

But it is there? :confused:
 
@thelonelycoder Something weird with the shell on AC86U. Can you send me the output of following commands:
Code:
BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum`
echo ${#BLAH}
[ ${#BLAH} -eq 32 ] || echo BAM
[ `echo $BLAH|wc -c` -eq 32 ] || echo HAM
On my AC56U it's
Code:
admin@RT-AC56U-84E0:/tmp/mnt# BLAH=`curl -L -k -s http://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md.md5sum`
admin@RT-AC56U-84E0:/tmp/mnt# echo ${#BLAH}
267752

Dunno why 267752 is not a number :(
Code:
user@RT-AC86U-AD60:/tmp/home/root# echo ${#BLAH}
<!267752
user@RT-AC86U-AD60:/tmp/home/root# [ ${#BLAH} -eq 32 ] || echo BAM
[: <!267752: bad number
BAM
user@RT-AC86U-AD60:/tmp/home/root# [ `echo $BLAH|wc -c` -eq 32 ] || echo HAM
HAM
 
@thelonelycoder got the clue and fixed it already I hope. Can you try the new code, already uploaded.

:)

Code:
 Info:  Detected ARMv8 architecture.
 Info:  JFFS custom scripts and configs are already enabled
 Info:  Choose what you want to do:
  1) Install dnscrypt-proxy
  2) Configure dnscrypt-proxy
  3) Configure timezone
  4) Install (P)RNG
  5) Install swap file
  q) Quit
 =>  Please enter the number designates your selection: 1
 Info:  This operation will install dnscrypt-proxy and related files (<6MB)
 Info:  to jffs, no other data will be changed.
 Info:  Also some start scripts will be installed/modified as required.

 =>  Do you want to install dnscrypt-proxy to /jffs [y/n]: y
 Info:  Downloading manager
 Info:  Downloading nonroot
 Info:  Downloading dnscrypt-proxy-linux_arm64-2.0.0.tar.gz
 Info:  Downloading public-resolvers.md
 Info:  Downloading public-resolvers.md.minisig
linux-arm64/
linux-arm64/dnscrypt-proxy
linux-arm64/LICENSE
linux-arm64/example-dnscrypt-proxy.toml
linux-arm64/example-blacklist.txt
linux-arm64/example-cloaking-rules.txt
linux-arm64/example-forwarding-rules.txt
 Info:  Configure dnsmasq.postconf file for dnscrypt
 Info:  Creating wan-start file
 Info:  Configure wan-start file for dnscrypt
 Info:  Configuring dnscrypt-proxy...
 =>  Do you want to use DNS server over IPv6 (yes only if your connection has IPv6) [y/n]: n
 Info:  Choose how your DNS servers are selected:
  1) Automatically
  2) Manually
 =>  Select your mode, [1-2]: 1
 =>  Use servers support the DNSCrypt protocol [y/n]: y
 =>  Use servers support the DNS-over-HTTPS protocol [y/n]: y
 =>  Use only servers support DNSSEC [y/n]: y
 =>  Use only servers that do not log user's queries [y/n]: y
 =>  Use only servers that do not filter result [y/n]: y
 Info:  Set a DNS server for initializing dnscrypt-proxy
 Info:  and router services (e.g. ntp) at boot
 =>  Default is 8.8.8.8:
 =>  Set log level, default is 2, 0 is the most verbose, [0-6]: 2
 =>  Do you want to redirect all DNS resolutions on your network through dnscrypt? [y/n]: y
 Info:  Configure firewall-start file for dnscrypt
 Info:  For dnscrypt-proxy version 2 to work reliably, you might also want to:
 Info:   - Add swap
 Info:   - Add a RNG
 Info:   - Set your timezone
 Info:  Operation completed. You can quit or continue
=====================================================
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top