# ip -4 rule
RTNETLINK answers: Address family not supported by protocol
Dump terminated
# ip -6 rule
0: from all lookup local
32766: from all lookup main
- system:
"aarch64-linux"
- host os:
Linux 5.1.8, NixOS, 19.09pre182429.98e3b90b6c8 (Loris)
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.2.2
- channels(root):
"nixos-19.09pre182429.98e3b90b6c8"
- nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos
Background
I set up wireguard with networking.wg-quick
and the unit fails.
3l7hb4ljp9gmi65ik2ckckyqki96w04a-unit-script-wg-quick-wg0-start[10363]: [#] ip -4 rule add not fwmark 51820 table 51820
3l7hb4ljp9gmi65ik2ckckyqki96w04a-unit-script-wg-quick-wg0-start[10363]: RTNETLINK answers: Address family not supported by protocol
3l7hb4ljp9gmi65ik2ckckyqki96w04a-unit-script-wg-quick-wg0-start[10363]: RTNETLINK answers: Address family not supported by protocol
3l7hb4ljp9gmi65ik2ckckyqki96w04a-unit-script-wg-quick-wg0-start[10363]: Dump terminated
3l7hb4ljp9gmi65ik2ckckyqki96w04a-unit-script-wg-quick-wg0-start[10363]: RTNETLINK answers: Address family not supported by protocol
3l7hb4ljp9gmi65ik2ckckyqki96w04a-unit-script-wg-quick-wg0-start[10363]: Dump terminated
3l7hb4ljp9gmi65ik2ckckyqki96w04a-unit-script-wg-quick-wg0-start[10363]: [#] ip link delete dev wg0
systemd[1]: wg-quick-wg0.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: wg-quick-wg0.service: Failed with result 'exit-code'.
systemd[1]: Failed to start wg-quick WireGuard Tunnel - wg0.