From b0dbc7d569d1d332b28d11e8427ce0f01e3e7ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Mon, 5 Sep 2022 07:37:29 +0200 Subject: [PATCH] Manual backup: 2022-09-05 07:37:29 --- .obsidian/plugins/obsidian-git/data.json | 8 +++--- KB/Linux/Wireguard.md | 33 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 KB/Linux/Wireguard.md diff --git a/.obsidian/plugins/obsidian-git/data.json b/.obsidian/plugins/obsidian-git/data.json index d79c700..8b1fb22 100644 --- a/.obsidian/plugins/obsidian-git/data.json +++ b/.obsidian/plugins/obsidian-git/data.json @@ -1,10 +1,10 @@ { - "commitMessage": "Automatic backup: {{date}}", + "commitMessage": "Manual backup: {{date}}", "autoCommitMessage": "Automatic backup: {{date}}", "commitDateFormat": "YYYY-MM-DD HH:mm:ss", "autoSaveInterval": 0, "autoPushInterval": 0, - "autoPullInterval": 0, + "autoPullInterval": 60, "autoPullOnBoot": true, "disablePush": false, "pullBeforePush": true, @@ -14,11 +14,11 @@ "updateSubmodules": false, "syncMethod": "merge", "customMessageOnAutoBackup": false, - "autoBackupAfterFileChange": false, + "autoBackupAfterFileChange": true, "treeStructure": false, "refreshSourceControl": true, "basePath": "", "differentIntervalCommitAndPush": false, - "changedFilesInStatusBar": false, + "changedFilesInStatusBar": true, "username": "" } \ No newline at end of file diff --git a/KB/Linux/Wireguard.md b/KB/Linux/Wireguard.md new file mode 100644 index 0000000..bb00771 --- /dev/null +++ b/KB/Linux/Wireguard.md @@ -0,0 +1,33 @@ +--- +creation date: 2022-09-05 +tags: [note,linux,wireguard,wg] +--- + +# Wireguard + +`wireguard-tools` is required. + +## Forwarding + +When forwarding should be allowed, the "host" needs to set the following via `sysctl` or in a `PostUp` / `PostDown` hook of WireGuard. + +```shell +net.ipv4.ip_forward=1 +net.ipv6.conf.all.forwarding=1 +``` + +In addition, the `AllowedIPs` in the client's `peer` section should be `0.0.0.0/0, ::/0`. + +## Import into Network Manager + +When using Network Manager, WireGuard profiles can be imported + +```shell +nmcli connection import type wireguard file +``` + +Ensure you've unchecked _Automatically connect_ afterwards in `nm-connection-editor`. + +## Android + +On Android devices, private DNS enabled might block resolving. Disable it for WireGuard \ No newline at end of file