From c1d0701ea2565afae1836c6ff9b4cd2518ef49a1 Mon Sep 17 00:00:00 2001 From: Francesco Mecca Date: Thu, 9 Jun 2022 13:49:22 +0100 Subject: [PATCH] more --- secretwiki/commands.html | 55 ++++++++++++++++++++++++++++------------ secretwiki/commands.org | 19 ++++++++++++++ 2 files changed, 58 insertions(+), 16 deletions(-) diff --git a/secretwiki/commands.html b/secretwiki/commands.html index 3ac993b..8ab96b8 100644 --- a/secretwiki/commands.html +++ b/secretwiki/commands.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Lezzo secret wiki @@ -14,13 +14,13 @@

[ Lezzo secret wiki ]

-
-

~ Frequently used commands and configuration snippets

-
+
+

~ Frequently used commands and configuration snippets

+
-
-

Reduce packages disk usage on gentoo

-
+
+

Reduce packages disk usage on gentoo

+
 eclean packages
 eclean distfiles
@@ -28,9 +28,9 @@ eclean-kernel -A -a
 
-
-

Update pi-hole devuan host

-
+
+

Update pi-hole devuan host

+
 apt update
 apt upgrade
@@ -38,9 +38,32 @@ PIHOLE_SKIP_OS_CHECK=true pihole -up
 
-
-

Add static route for wireguard

-
+
+

Wireguard configuration

+
+
+cd /etc/wireguard.conf
+wg genkey > privatekey
+cat privatekey | wg pubkey
+
+
+[Interface]
+PrivateKey = 
+Address = 10.0.13.X/32
+DNS = 10.0.1.8
+
+# lezzo
+[Peer]
+PublicKey = 
+Endpoint = tubo.lezzo.org:51888
+PersistentKeepalive = 25
+AllowedIPs = 0.0.0.0/0
+
+
+
+
+

Add static route for wireguard

+

Useful when subnet clash, example:

@@ -57,9 +80,9 @@ route add -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.13.1 lezzo # dns resolutio
-
-

Remove gentoo strong password requirement

-
+
+

Remove gentoo strong password requirement

+

From https://forums.gentoo.org/viewtopic-t-1117656-start-0.html: in /etc/pam.d/system-auth diff --git a/secretwiki/commands.org b/secretwiki/commands.org index 90bcf0a..8eb96fb 100644 --- a/secretwiki/commands.org +++ b/secretwiki/commands.org @@ -12,6 +12,25 @@ apt update apt upgrade PIHOLE_SKIP_OS_CHECK=true pihole -up #+end_src +** Wireguard configuration +#+begin_src +cd /etc/wireguard.conf +wg genkey > privatekey +cat privatekey | wg pubkey +#+end_src +#+begin_src +[Interface] +PrivateKey = +Address = 10.0.13.X/32 +DNS = 10.0.1.8 + +# lezzo +[Peer] +PublicKey = +Endpoint = tubo.lezzo.org:51888 +PersistentKeepalive = 25 +AllowedIPs = 0.0.0.0/0 +#+end_src ** Add static route for wireguard Useful when subnet clash, example: #+begin_src