我正在尝试使用DNS记录,而不是在配置文件/etc/wireguard/wg0.conf中硬编码的公共IP地址
我遵循了下面的例子,它执行了,我得到了下面的错误
sh[1227]: /usr/share/wireguard-tools/examples/reresolve-dns/reresolve-dns.sh: line 46: : No such file or directoryStarting Reresolve DNS of all WireGuard endpoints...
wireguard_reresolve-dns.service: Main process exited, code=exited, status=1/FAILURE
wireguard_reresolve-dns.service: Failed with result 'exit-code'.
Failed to start Reresolve DNS of all WireGuard endpoints.我不确定这个错误是从哪里产生的,因为文件路径是正确的,并且文件存在
~# ls /usr/share/wireguard-tools/examples/reresolve-dns/reresolve-dns.sh
/usr/share/wireguard-tools/examples/reresolve-dns/reresolve-dns.sh因此,wireguard仍然不会用我在DNS服务器https://wiki.archlinux.org/index.php/WireGuard#Endpoint_with_changing_IP中更改的新IP更改对等方IP
我不确定上面的wiki是否真的在工作,因为我在github中找到了另一个wireguard工具repo,它做了同样的事情,但即使是这个也不起作用,下面是这个repo https://github.com/WireGuard/wireguard-tools的链接。
在同一时间发现下面的repo在动态it变化方面做得更好,但我认为这个repo仍在开发中,因为当我尝试安装它时,它给我下面的错误https://github.com/WireGuard/wg-dynamic
~/wg-dynamic# make install
make: *** No rule to make target 'wg', needed by 'install'. Stop.我希望如果有人已经尝试了上述,其中一个是工作的,我应该采取什么补救措施,以便使其工作,因为以上两个网址没有给出任何错误,但in地址不会更改为一个在DNS服务器上发生变化。
发布于 2020-09-01 23:02:03
示例脚本需要一个wireguard配置文件作为参数(在第46行,正如错误消息指出的那样)。尝试添加例如/etc/wireguard/wg0.conf或任何您想要使用的配置文件。
https://stackoverflow.com/questions/62585927
复制相似问题