Talk:WireGuard: Difference between revisions
imported>Asymmetric No edit summary |
imported>Nrbray m typo |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
I could only make this work after running < | == <code>sysctl net.ipv4.ip_forward=1</code> needed for server == | ||
; done! | |||
I could only make this work after running <syntaxHighlight lang="bash">sysctl net.ipv4.ip_forward=1</syntaxHighlight>. | |||
This is also mentioned in the [https://wiki.archlinux.org/index.php/WireGuard#Server Arch wiki]. | This is also mentioned in the [https://wiki.archlinux.org/index.php/WireGuard#Server Arch wiki]. | ||
Line 9: | Line 13: | ||
I feel like the disclaimer is not necessary, since the article refers to a client/server mode of operation. --[[User:Asymmetric|Asymmetric]] ([[User talk:Asymmetric|talk]]) 14:32, 18 May 2019 (UTC) | I feel like the disclaimer is not necessary, since the article refers to a client/server mode of operation. --[[User:Asymmetric|Asymmetric]] ([[User talk:Asymmetric|talk]]) 14:32, 18 May 2019 (UTC) | ||
Turns out the flag is already set by the [ | Turns out the flag is already set by the [https://github.com/asymmetric/nixpkgs/tree/2ec5e9595becf05b052ce4c61a05d87ce95d19af/nixos/modules/services/networking/nat.nix#L254-L255 nat module] --[[User:Asymmetric|Asymmetric]] ([[User talk:Asymmetric|talk]]) 15:08, 18 May 2019 (UTC) | ||
https://github.com/asymmetric/nixpkgs/tree/2ec5e9595becf05b052ce4c61a05d87ce95d19af/nixos/modules/services/networking/nat.nix#L254-L255 nat module]--[[User:Asymmetric|Asymmetric]] ([[User talk:Asymmetric|talk]]) 15:08, 18 May 2019 (UTC) | |||
It would be really cool to have examples for nftables as well, preferably with conf files... | |||
--[[User:Devvythelopper|Devvythelopper]] ([[User talk:Devvythelopper|talk]]) 14:32, 18 May 2019 (UTC) | |||
=== Regarding my addition: === | |||
--[[User:Nrbray|Nrbray]] ([[User talk:Nrbray|talk]]) 10:35, 8 December 2023 (UTC) | |||
networking.useNetworkd = true; | |||
avoids error: | |||
trace: warning: The combination of `systemd.network.enable = true` [wireguard], `networking.useDHCP = true` and `networking.useNetworkd = false` can cause both networkd and dhcpcd to manage the same interfaces. This can lead to loss of networking. It is recommended you choose only one of networkd (by also enabling `networking.useNetworkd`) or scripting (by disabling `systemd.network.enable`) | |||
Some hint found here: https://discourse.nixos.org/t/systemd-services/31546/2 |