Wireguard set up

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Deleted User 7758

Wireguard set up

Post by Deleted User 7758 »

Hi,
I'm trying to set up fireguard for VPN access to pinhole and next cloud from wan.
I'm trying to follow the instructions at
viewtopic.php?p=16308#p16308
I got to the bit where I could add a config to a mobile client by using an onscreen QR code (yet to be tested) but when I got to the 'Adding multiple clients:' stage I get:

Code: Select all

jon@Odroid:~$ cd /etc/wireguard
-bash: cd: /etc/wireguard: Permission denied
jon@Odroid:~$ sudo cd /etc/wireguard
[sudo] password for jon: 
sudo: cd: command not found
Jon
User avatar
Joulinar
Posts: 2297
Joined: Sat Nov 16, 2019 12:49 am

Re: Wireguard set up

Post by Joulinar »

Hi,

many thanks for your message. You can't use sudo together with cd command. Why is explained on this link I quickly found on google

https://community.clearlinux.org/t/why- ... found/1811

I would recommend to use root user to setup WireGuard.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply