more
This commit is contained in:
parent
06ff49c1e5
commit
c1d0701ea2
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2022-06-09 Thu 13:41 -->
|
<!-- 2022-06-09 Thu 13:49 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Lezzo secret wiki</title>
|
<title>Lezzo secret wiki</title>
|
||||||
@ -14,13 +14,13 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>[ Lezzo secret wiki ]</a></h2>
|
<h2>[ Lezzo secret wiki ]</a></h2>
|
||||||
<div id="outline-container-org37692f1" class="outline-2">
|
<div id="outline-container-org97a447f" class="outline-2">
|
||||||
<h2 id="org37692f1"><b>~</b> Frequently used commands and configuration snippets</h2>
|
<h2 id="org97a447f"><b>~</b> Frequently used commands and configuration snippets</h2>
|
||||||
<div class="outline-text-2" id="text-org37692f1">
|
<div class="outline-text-2" id="text-org97a447f">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgae97eeb" class="outline-3">
|
<div id="outline-container-org27f15e0" class="outline-3">
|
||||||
<h3 id="orgae97eeb">Reduce packages disk usage on gentoo</h3>
|
<h3 id="org27f15e0">Reduce packages disk usage on gentoo</h3>
|
||||||
<div class="outline-text-3" id="text-orgae97eeb">
|
<div class="outline-text-3" id="text-org27f15e0">
|
||||||
<pre class="example">
|
<pre class="example">
|
||||||
eclean packages
|
eclean packages
|
||||||
eclean distfiles
|
eclean distfiles
|
||||||
@ -28,9 +28,9 @@ eclean-kernel -A -a
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org2256cf9" class="outline-3">
|
<div id="outline-container-org79cb598" class="outline-3">
|
||||||
<h3 id="org2256cf9">Update pi-hole devuan host</h3>
|
<h3 id="org79cb598">Update pi-hole devuan host</h3>
|
||||||
<div class="outline-text-3" id="text-org2256cf9">
|
<div class="outline-text-3" id="text-org79cb598">
|
||||||
<pre class="example">
|
<pre class="example">
|
||||||
apt update
|
apt update
|
||||||
apt upgrade
|
apt upgrade
|
||||||
@ -38,9 +38,32 @@ PIHOLE_SKIP_OS_CHECK=true pihole -up
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgfa03af1" class="outline-3">
|
<div id="outline-container-org6d26529" class="outline-3">
|
||||||
<h3 id="orgfa03af1">Add static route for wireguard</h3>
|
<h3 id="org6d26529">Wireguard configuration</h3>
|
||||||
<div class="outline-text-3" id="text-orgfa03af1">
|
<div class="outline-text-3" id="text-org6d26529">
|
||||||
|
<pre class="example">
|
||||||
|
cd /etc/wireguard.conf
|
||||||
|
wg genkey > privatekey
|
||||||
|
cat privatekey | wg pubkey
|
||||||
|
</pre>
|
||||||
|
<pre class="example">
|
||||||
|
[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
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="outline-container-org7b058c3" class="outline-3">
|
||||||
|
<h3 id="org7b058c3">Add static route for wireguard</h3>
|
||||||
|
<div class="outline-text-3" id="text-org7b058c3">
|
||||||
<p>
|
<p>
|
||||||
Useful when subnet clash, example:
|
Useful when subnet clash, example:
|
||||||
</p>
|
</p>
|
||||||
@ -57,9 +80,9 @@ route add -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.13.1 lezzo # dns resolutio
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org62b7bbc" class="outline-3">
|
<div id="outline-container-org55ef39e" class="outline-3">
|
||||||
<h3 id="org62b7bbc">Remove gentoo strong password requirement</h3>
|
<h3 id="org55ef39e">Remove gentoo strong password requirement</h3>
|
||||||
<div class="outline-text-3" id="text-org62b7bbc">
|
<div class="outline-text-3" id="text-org55ef39e">
|
||||||
<p>
|
<p>
|
||||||
From <a href="https://forums.gentoo.org/viewtopic-t-1117656-start-0.html">https://forums.gentoo.org/viewtopic-t-1117656-start-0.html</a>:
|
From <a href="https://forums.gentoo.org/viewtopic-t-1117656-start-0.html">https://forums.gentoo.org/viewtopic-t-1117656-start-0.html</a>:
|
||||||
in /etc/pam.d/system-auth
|
in /etc/pam.d/system-auth
|
||||||
|
@ -12,6 +12,25 @@ apt update
|
|||||||
apt upgrade
|
apt upgrade
|
||||||
PIHOLE_SKIP_OS_CHECK=true pihole -up
|
PIHOLE_SKIP_OS_CHECK=true pihole -up
|
||||||
#+end_src
|
#+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
|
** Add static route for wireguard
|
||||||
Useful when subnet clash, example:
|
Useful when subnet clash, example:
|
||||||
#+begin_src
|
#+begin_src
|
||||||
|
Loading…
Reference in New Issue
Block a user