I suggest you follow the guide on this page to setup your wireguard....Trying to run wireguard script wg-quick which using resolvconf command
Get error /opt/bin/wg-quick: line 31: resolvconf: command not found
Which entware package need to be installed for this resolvconf command?
I suggest you follow the guide on this page to setup your wireguard....
![]()
[Experimental] WireGuard for HND platform (4.1.x kernels)
1. Install WireGuard You need Entware-aarch64-3.10 to use wireguard without a new firmware build. ㅡ Kernel Module ㅡ RT-AC86U, GT-AC2900 - 4.1.27 https://github.com/odkrys/entware-makefile-for-merlin/raw/main/wireguard-kernel_1.0.20210219-k27_1_aarch64-3.10.ipk opkg install...www.snbforums.com
I have RT-AC68U which mentioned in this forum not stable for wireguard
However I found website link below and I'm trying now but get stuck with this unsupported resolvconf command
![]()
WireGuard on ASUS WiFi router with Broadcom ARMv7 32-bit chipset running ASUSWRT-Merlin — nixFAQ
Introduction WireGuard is now the most-hyped VPN implementation out there. Boasting code length of a fraction of the lines of code compared to IPSec, strong cryptography, a high-speed Linux kernel...nixfaq.org
set_dns() {
[[ ${#DNS[@]} -gt 0 ]] || return 0
# TODO: this is a horrible way of doing it. Has OpenBSD no resolvconf?
cmd cp /etc/resolv.conf "/etc/resolv.conf.wg-quick-backup.$INTERFACE"
cmd printf 'nameserver %s\n' "${DNS[@]}" > /etc/resolv.conf
}
unset_dns() {
[[ -f "/etc/resolv.conf.wg-quick-backup.$INTERFACE" ]] || return 0
cmd mv "/etc/resolv.conf.wg-quick-backup.$INTERFACE" /etc/resolv.conf
}
Often BusyBox has stripped down versions of software. If you have entware installed, you can use
Opkg list
To see if there are any full versions available for resolvconf. Pipe the output to grep to help your search
(On a tiny keyboard, so I can't type this I want it).
I believe the following is from a back-level version of wg-quick....
so if the Wireguard DNS directive is configured (you can try commenting it out) then the contents of '/etc/resolv.conf' is overwritten after the backup is created.Code:set_dns() { [[ ${#DNS[@]} -gt 0 ]] || return 0 # TODO: this is a horrible way of doing it. Has OpenBSD no resolvconf? cmd cp /etc/resolv.conf "/etc/resolv.conf.wg-quick-backup.$INTERFACE" cmd printf 'nameserver %s\n' "${DNS[@]}" > /etc/resolv.conf } unset_dns() { [[ -f "/etc/resolv.conf.wg-quick-backup.$INTERFACE" ]] || return 0 cmd mv "/etc/resolv.conf.wg-quick-backup.$INTERFACE" /etc/resolv.conf }
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!