runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
917 stars 131 forks source link

Where to I find the config files? #190

Open rubyredrick opened 1 month ago

rubyredrick commented 1 month ago

Description I installed on a DS918+ and now I need to add an ip to allowed_ips

I've been going around in circles trying to find out how to do this. But I can''t find out where the package keeps them or a command to change them.

webb@FortKnox:~$ sudo wg-quick up wg0 wg-quick: `/etc/wireguard/wg0.conf' does not exist webb@FortKnox:~$ ls /etc/wireguard ls: cannot access '/etc/wireguard': No such file or directory webb@FortKnox:~$ sudo ls /etc/wireguard ls: cannot access '/etc/wireguard': No such file or directory

Let me know if I can give any more info.

Synology NAS model DS918+

wg0.conf

Just what I'm trying to fine, think

fabiov64 commented 1 month ago

Here some basic knowledge of Linux/Unix security is required ... You just need to create the /etc/wireguard directory and put there the wg0.conf. For creating the folder, you can just type sudo mkdir /etc/wireguard. And then you can create a wg0.conf file with an editor and to copy it into the newly created directory using sudo cp command. After doing that, you can turn on your VPN. For samples and instructions on how to build a wg.conf file, please browse the official wireguard page: www.wireguard.com