Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wg-quick: `/etc/wireguard/wg0.conf' does not exist #509

Open
mdenzel opened this issue May 29, 2024 · 2 comments
Open

wg-quick: `/etc/wireguard/wg0.conf' does not exist #509

mdenzel opened this issue May 29, 2024 · 2 comments

Comments

@mdenzel
Copy link

mdenzel commented May 29, 2024

Hi there,

I receive the following error on Fedora Linux:

wg-quick: `/etc/wireguard/wg0.conf' does not exist

It seems to be the line chmod 600 /etc/wireguard.

I fixed it through the following commands:

chmod 700 /etc/wireguard
chmod 600 /etc/wireguard/wg0.conf

Not 100% sure if this is safe, thus not a pull request. In my opinion it should also protect the private key in wg0.conf or is there a difference?

@mleku
Copy link

mleku commented Jun 7, 2024

are you sure you didn't manually create that directory without +x by accident?

maybe it's a umask in your shell?

@mdenzel
Copy link
Author

mdenzel commented Jun 7, 2024

See line 212 of your script:

chmod 600 -R /etc/wireguard/

If I am not mistaken that sets 600 for everything? Should that maybe be replaced by:

chmod 700 /etc/wireguard
chmod 600 /etc/wireguard/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants