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

Wireguard not working on reboot #1613

Closed
JedMeister opened this issue May 23, 2021 · 2 comments · Fixed by turnkeylinux-apps/wireguard#2
Closed

Wireguard not working on reboot #1613

JedMeister opened this issue May 23, 2021 · 2 comments · Fixed by turnkeylinux-apps/wireguard#2
Milestone

Comments

@JedMeister
Copy link
Member

JedMeister commented May 23, 2021

It has been reported in our forums that the WireGuard appliance works fine, but following a reboot it no longer works.

Part of the issue (the wg-quick@wg0.service) is covered in #1610 but more is required.

It turns out that net.ipv4.ip_forward also needs to be enabled in /etc/sysctl.conf.
(see this comment)

To summarize, this needs to be done to workaround (both of) the issue(s):

systemctl enable --now  wg-quick@wg0.service
sysctl -w net.ipv4.ip_forward=1

To fix the build code, this will probably do it:

systemctl enable wg-quick@wg0.service
sed -i "\|#* *net.ipv4.ip_forward=| s|^#* *\(net.ipv4.ip_forward *=\).*|\11|" /etc/sysctl.conf

(Note that the build code changes could also be applied to an existing VM, but it will require a reboot to start working).

@OnGle
Copy link
Member

OnGle commented Jul 5, 2021

ping, what's the status on this issue @JedMeister?

@JedMeister
Copy link
Member Author

Thanks for the bump @OnGle!

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

Successfully merging a pull request may close this issue.

2 participants