diff options
| author | Paul Buetow <paul@buetow.org> | 2025-06-23 07:55:29 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-06-23 07:55:29 +0300 |
| commit | 3613219f24397a48ca8b0ef3fb31bd893889e185 (patch) | |
| tree | 7a6dc90198805609fd5609dd8ec77af05eb58429 /gemfeed | |
| parent | 5de77f57f8f4f082395c81fefd7f0cb04fce1aec (diff) | |
Update content for gemtext
Diffstat (limited to 'gemfeed')
| -rw-r--r-- | gemfeed/atom.xml | 2972 |
1 files changed, 1486 insertions, 1486 deletions
diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index dc5b32eb..65d4da0f 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <updated>2025-06-23T01:00:42+03:00</updated> + <updated>2025-06-23T07:54:22+03:00</updated> <title>foo.zone feed</title> <subtitle>To be in the .zone!</subtitle> <link href="gemini://foo.zone/gemfeed/atom.xml" rel="self" /> @@ -387,14 +387,14 @@ by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas freebsd-update fetch</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas freebsd-update install</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas shutdown -r now</font> -<b><font color="#ee5896">..</font></b> -<b><font color="#ee5896">..</font></b> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas pkg update</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas pkg upgrade</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> reboot</font> +<pre>paul@f0:~ % doas freebsd-update fetch +paul@f0:~ % doas freebsd-update install +paul@f0:~ % doas shutdown -r now +.. +.. +paul@f0:~ % doas pkg update +paul@f0:~ % doas pkg upgrade +paul@f0:~ % reboot </pre> <br /> <span>Next, we install <span class='inlinecode'>wireguard-tools</span> and configure the WireGuard service:</span><br /> @@ -403,19 +403,19 @@ http://www.gnu.org/software/src-highlite --> by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas pkg install wireguard-tools</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas sysrc </font><font color="#ffffff">wireguard_interfaces</font><b><font color="#ee5896">=</font></b><font color="#ffffff">wg0</font> -<font color="#ffffff">wireguard_interfaces</font><b><font color="#ee5896">:</font></b><font color="#ffffff"> -</font><b><font color="#ee5896">></font></b><font color="#ffffff"> wg0</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas sysrc </font><font color="#ffffff">wireguard_enable</font><b><font color="#ee5896">=</font></b><font color="#ffffff">YES</font> -<font color="#ffffff">wireguard_enable</font><b><font color="#ee5896">:</font></b><font color="#ffffff"> -</font><b><font color="#ee5896">></font></b><font color="#ffffff"> YES</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas mkdir -p /usr/local/etc/wireguard</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas touch /usr/local/etc/wireguard/wg</font><font color="#ff00ff">0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">conf</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas service wireguard start</font> -<font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> doas wg show</font> -<font color="#ffffff">interface</font><b><font color="#ee5896">:</font></b><font color="#ffffff"> wg0</font> -<font color="#ffffff"> public key</font><b><font color="#ee5896">:</font></b><font color="#ffffff"> L</font><b><font color="#ee5896">+</font></b><font color="#ffffff">V9o0fNYkMVKNqsX7spBzD</font><b><font color="#ee5896">/</font></b><font color="#ffffff">9oSvxM/C7</font><font color="#ffffff">ZCZX1jLO3Q</font><b><font color="#ee5896">=</font></b> -<font color="#ffffff"> private key</font><b><font color="#ee5896">:</font></b><font color="#ffffff"> </font><b><font color="#ee5896">(</font></b><font color="#ffffff">hidden</font><b><font color="#ee5896">)</font></b> -<font color="#ffffff"> listening port</font><b><font color="#ee5896">:</font></b><font color="#ffffff"> </font><font color="#ff00ff">20246</font> +<pre>paul@f0:~ % doas pkg install wireguard-tools +paul@f0:~ % doas sysrc wireguard_interfaces=wg0 +wireguard_interfaces: -> wg0 +paul@f0:~ % doas sysrc wireguard_enable=YES +wireguard_enable: -> YES +paul@f0:~ % doas mkdir -p /usr/local/etc/wireguard +paul@f0:~ % doas touch /usr/local/etc/wireguard/wg<font color="#000000">0</font>.conf +paul@f0:~ % doas service wireguard start +paul@f0:~ % doas wg show +interface: wg0 + public key: L+V9o0fNYkMVKNqsX7spBzD/9oSvxM/C7ZCZX1jLO3Q= + private key: (hidden) + listening port: <font color="#000000">20246</font> </pre> <br /> <span>We now have the WireGuard up and running, but it is not yet in any functional configuration. We will come back to that later.</span><br /> @@ -426,23 +426,23 @@ http://www.gnu.org/software/src-highlite --> by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><font color="#ffffff">paul@f0</font><b><font color="#ee5896">:~</font></b><font color="#ffffff"> </font><b><font color="#ee5896">%</font></b><font color="#ffffff"> cat </font><b><font color="#ee5896"><<</font></b><font color="#ffffff">END </font><b><font color="#ee5896">|</font></b><font color="#ffffff"> doas tee -a /etc/hosts</font> +<pre>paul@f0:~ % cat <<END | doas tee -a /etc/hosts -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">1.120</font><font color="#ffffff"> r0 r0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan r0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">1.121</font><font color="#ffffff"> r1 r1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan r1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">1.122</font><font color="#ffffff"> r2 r2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan r2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> +<font color="#000000">192.168</font>.<font color="#000000">1.120</font> r0 r0.lan r0.lan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">1.121</font> r1 r1.lan r1.lan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">1.122</font> r2 r2.lan r2.lan.buetow.org -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.130</font><font color="#ffffff"> f0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 f0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.131</font><font color="#ffffff"> f1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 f1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.132</font><font color="#ffffff"> f2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 f2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> +<font color="#000000">192.168</font>.<font color="#000000">2.130</font> f0.wg0 f0.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.131</font> f1.wg0 f1.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.132</font> f2.wg0 f2.wg0.wan.buetow.org -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.120</font><font color="#ffffff"> r0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 r0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.121</font><font color="#ffffff"> r1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 r1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.122</font><font color="#ffffff"> r2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 r2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> +<font color="#000000">192.168</font>.<font color="#000000">2.120</font> r0.wg0 r0.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.121</font> r1.wg0 r1.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.122</font> r2.wg0 r2.wg0.wan.buetow.org -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.110</font><font color="#ffffff"> blowfish</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 blowfish</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.111</font><font color="#ffffff"> fishfinger</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 fishfinger</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ffffff">END</font> +<font color="#000000">192.168</font>.<font color="#000000">2.110</font> blowfish.wg0 blowfish.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.111</font> fishfinger.wg0 fishfinger.wg0.wan.buetow.org +END </pre> <br /> <span>As you can see, <span class='inlinecode'>192.168.1.0/24</span> is the network used in my LAN (with the <span class='inlinecode'>fN</span> and <span class='inlinecode'>rN</span> hosts) and <span class='inlinecode'>192.168.2.0/24</span> is the network used for the WireGuard mesh network. The <span class='inlinecode'>wg0</span> interface will be used for all WireGuard traffic.</span><br /> @@ -455,8 +455,8 @@ http://www.gnu.org/software/src-highlite --> by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> dnf update -y</font> -<b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> reboot</font> +<pre>[root@r0 ~] dnf update -y +[root@r0 ~] reboot </pre> <br /> <span>Next, we prepare WireGuard on them. Same as on the FreeBSD hosts, we will only prepare WireGuard without any useful configuration yet:</span><br /> @@ -465,12 +465,12 @@ http://www.gnu.org/software/src-highlite --> by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> dnf install -y wireguard-tools</font> -<b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> mkdir -p /etc/wireguard</font> -<b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> touch /etc/wireguard/wg</font><font color="#ff00ff">0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">conf</font> -<b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> systemctl </font><b><font color="#00ffff">enable</font></b><font color="#ffffff"> wg-quick@wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">service</font> -<b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> systemctl start wg-quick@wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">service</font> -<b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> systemctl disable firewalld</font> +<pre>[root@r0 ~] dnf install -y wireguard-tools +[root@r0 ~] mkdir -p /etc/wireguard +[root@r0 ~] touch /etc/wireguard/wg<font color="#000000">0</font>.conf +[root@r0 ~] systemctl <b><u><font color="#000000">enable</font></u></b> wg-quick@wg0.service +[root@r0 ~] systemctl start wg-quick@wg0.service +[root@r0 ~] systemctl disable firewalld </pre> <br /> <span>We also update the <span class='inlinecode'>hosts</span> file accordingly:</span><br /> @@ -479,23 +479,23 @@ http://www.gnu.org/software/src-highlite --> by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> cat </font><b><font color="#ee5896"><<</font></b><font color="#ffffff">END </font><b><font color="#ee5896">>></font></b><font color="#ffffff">/etc/hosts</font> +<pre>[root@r0 ~] cat <<END >>/etc/hosts -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">1.130</font><font color="#ffffff"> f0 f0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan f0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">1.131</font><font color="#ffffff"> f1 f1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan f1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">1.132</font><font color="#ffffff"> f2 f2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan f2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">lan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> +<font color="#000000">192.168</font>.<font color="#000000">1.130</font> f0 f0.lan f0.lan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">1.131</font> f1 f1.lan f1.lan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">1.132</font> f2 f2.lan f2.lan.buetow.org -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.130</font><font color="#ffffff"> f0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 f0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.131</font><font color="#ffffff"> f1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 f1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.132</font><font color="#ffffff"> f2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 f2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> +<font color="#000000">192.168</font>.<font color="#000000">2.130</font> f0.wg0 f0.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.131</font> f1.wg0 f1.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.132</font> f2.wg0 f2.wg0.wan.buetow.org -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.120</font><font color="#ffffff"> r0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 r0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.121</font><font color="#ffffff"> r1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 r1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.122</font><font color="#ffffff"> r2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 r2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> +<font color="#000000">192.168</font>.<font color="#000000">2.120</font> r0.wg0 r0.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.121</font> r1.wg0 r1.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.122</font> r2.wg0 r2.wg0.wan.buetow.org -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.110</font><font color="#ffffff"> blowfish</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 blowfish</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.111</font><font color="#ffffff"> fishfinger</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 fishfinger</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ffffff">END</font> +<font color="#000000">192.168</font>.<font color="#000000">2.110</font> blowfish.wg0 blowfish.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.111</font> fishfinger.wg0 fishfinger.wg0.wan.buetow.org +END </pre> <br /> <span>Unfortunately, the SELinux policy on Rocky Linux blocks WireGuard's operation. By making the <span class='inlinecode'>wireguard_t</span> domain permissive using <span class='inlinecode'>semanage permissive -a wireguard_t</span>, SELinux will no longer enforce restrictions for WireGuard, allowing it to work as intended:</span><br /> @@ -504,9 +504,9 @@ http://www.gnu.org/software/src-highlite --> by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> dnf install -y policycoreutils-python-utils</font> -<b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> semanage permissive -a wireguard_t</font> -<b><font color="#ee5896">[</font></b><font color="#ffffff">root@r0 </font><b><font color="#ee5896">~]</font></b><font color="#ffffff"> reboot</font> +<pre>[root@r0 ~] dnf install -y policycoreutils-python-utils +[root@r0 ~] semanage permissive -a wireguard_t +[root@r0 ~] reboot </pre> <br /> <a class='textlink' href='https://github.com/angristan/wireguard-install/discussions/499'>https://github.com/angristan/wireguard-install/discussions/499</a><br /> @@ -519,14 +519,14 @@ http://www.gnu.org/software/src-highlite --> by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><font color="#ffffff">blowfish$ doas pkg_add wireguard-tools</font> -<font color="#ffffff">blowfish$ doas mkdir /etc/wireguard</font> -<font color="#ffffff">blowfish$ doas touch /etc/wireguard/wg</font><font color="#ff00ff">0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">conf</font> -<font color="#ffffff">blowsish$ cat </font><b><font color="#ee5896"><<</font></b><font color="#ffffff">END </font><b><font color="#ee5896">|</font></b><font color="#ffffff"> doas tee /etc/hostname</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font> -<font color="#ffffff">inet </font><font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.110</font><font color="#ffffff"> </font><font color="#ff00ff">255.255</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">255.0</font><font color="#ffffff"> NONE</font> -<font color="#ffffff">up</font> -<b><font color="#ee5896">!</font></b><font color="#ffffff">/usr/local/bin/wg setconf wg0 /etc/wireguard/wg</font><font color="#ff00ff">0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">conf</font> -<font color="#ffffff">END</font> +<pre>blowfish$ doas pkg_add wireguard-tools +blowfish$ doas mkdir /etc/wireguard +blowfish$ doas touch /etc/wireguard/wg<font color="#000000">0</font>.conf +blowsish$ cat <<END | doas tee /etc/hostname.wg0 +inet <font color="#000000">192.168</font>.<font color="#000000">2.110</font> <font color="#000000">255.255</font>.<font color="#000000">255.0</font> NONE +up +!/usr/local/bin/wg setconf wg0 /etc/wireguard/wg<font color="#000000">0</font>.conf +END </pre> <br /> <span>Note that on <span class='inlinecode'>blowfish</span>, we configure <span class='inlinecode'>192.168.2.110</span> here in the <span class='inlinecode'>hostname.wg</span>, and on <span class='inlinecode'>fishfinger</span>, we configure <span class='inlinecode'>192.168.2.111</span>. Those are the IP addresses of the WireGuard interfaces on those hosts.</span><br /> @@ -537,19 +537,19 @@ http://www.gnu.org/software/src-highlite --> by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><font color="#ffffff">blowfish$ cat </font><b><font color="#ee5896"><<</font></b><font color="#ffffff">END </font><b><font color="#ee5896">|</font></b><font color="#ffffff"> doas tee -a /etc/hosts</font> +<pre>blowfish$ cat <<END | doas tee -a /etc/hosts -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.130</font><font color="#ffffff"> f0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 f0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.131</font><font color="#ffffff"> f1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 f1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.132</font><font color="#ffffff"> f2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 f2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> +<font color="#000000">192.168</font>.<font color="#000000">2.130</font> f0.wg0 f0.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.131</font> f1.wg0 f1.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.132</font> f2.wg0 f2.wg0.wan.buetow.org -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.120</font><font color="#ffffff"> r0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 r0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.121</font><font color="#ffffff"> r1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 r1</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.122</font><font color="#ffffff"> r2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 r2</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> +<font color="#000000">192.168</font>.<font color="#000000">2.120</font> r0.wg0 r0.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.121</font> r1.wg0 r1.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.122</font> r2.wg0 r2.wg0.wan.buetow.org -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.110</font><font color="#ffffff"> blowfish</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 blowfish</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ff00ff">192.168</font><b><font color="#ee5896">.</font></b><font color="#ff00ff">2.111</font><font color="#ffffff"> fishfinger</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0 fishfinger</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wg0</font><b><font color="#ee5896">.</font></b><font color="#ffffff">wan</font><b><font color="#ee5896">.</font></b><font color="#ffffff">buetow</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org</font> -<font color="#ffffff">END</font> +<font color="#000000">192.168</font>.<font color="#000000">2.110</font> blowfish.wg0 blowfish.wg0.wan.buetow.org +<font color="#000000">192.168</font>.<font color="#000000">2.111</font> fishfinger.wg0 fishfinger.wg0.wan.buetow.org +END </pre> <br /> <h2 style='display: inline' id='wireguard-configuration'>WireGuard configuration</h2><br /> @@ -674,10 +674,10 @@ PersistentKeepalive = 25 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><b><font color="#ee5896">></font></b><font color="#ffffff"> git clone https</font><b><font color="#ee5896">:</font></b><font color="#ffffff">//codeberg</font><b><font color="#ee5896">.</font></b><font color="#ffffff">org/snonux/wireguardmeshgenerator</font> -<b><font color="#ee5896">></font></b><font color="#ffffff"> cd </font><b><font color="#ee5896">.</font></b><font color="#ffffff">/wireguardmeshgenerator</font> -<b><font color="#ee5896">></font></b><font color="#ffffff"> bundle install</font> -<b><font color="#ee5896">></font></b><font color="#ffffff"> sudo dnf install -y wireguard-tools</font> +<pre>> git clone https://codeberg.org/snonux/wireguardmeshgenerator +> cd ./wireguardmeshgenerator +> bundle install +> sudo dnf install -y wireguard-tools </pre> <br /> <span>This assumes that Ruby and the <span class='inlinecode'>bundler</span> gem are already installed. If not, refer to the docs of your distribution.</span><br /> @@ -813,39 +813,39 @@ hosts: by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><b><font color="#00ffff">begin</font></b> -<font color="#ffffff"> options </font><b><font color="#ee5896">=</font></b><font color="#ffffff"> </font><b><font color="#ee5896">{</font></b><font color="#ffffff"> hosts</font><b><font color="#ee5896">:</font></b><font color="#ffffff"> </font><b><font color="#ee5896">[]</font></b><font color="#ffffff"> </font><b><font color="#ee5896">}</font></b> -<font color="#ffffff"> OptionParser</font><b><font color="#ee5896">.</font></b><font color="#ffffff">new </font><b><font color="#00ffff">do</font></b><font color="#ffffff"> </font><b><font color="#ee5896">|</font></b><font color="#ffffff">opts</font><b><font color="#ee5896">|</font></b> -<font color="#ffffff"> opts</font><b><font color="#ee5896">.</font></b><font color="#ffffff">banner </font><b><font color="#ee5896">=</font></b><font color="#ffffff"> </font><font color="#cd00ff">'Usage: wireguardmeshgenerator.rb [options]'</font> -<font color="#ffffff"> opts</font><b><font color="#ee5896">.</font></b><font color="#ffffff">on</font><b><font color="#ee5896">(</font></b><font color="#cd00ff">'--generate'</font><b><font color="#ee5896">,</font></b><font color="#ffffff"> </font><font color="#cd00ff">'Generate Wireguard configs'</font><b><font color="#ee5896">)</font></b><font color="#ffffff"> </font><b><font color="#00ffff">do</font></b> -<font color="#ffffff"> options</font><b><font color="#ee5896">[:</font></b><font color="#ffffff">generate</font><b><font color="#ee5896">]</font></b><font color="#ffffff"> </font><b><font color="#ee5896">=</font></b><font color="#ffffff"> </font><b><font color="#00ffff">true</font></b> -<font color="#ffffff"> </font><b><font color="#00ffff">end</font></b> -<font color="#ffffff"> opts</font><b><font color="#ee5896">.</font></b><font color="#ffffff">on</font><b><font color="#ee5896">(</font></b><font color="#cd00ff">'--install'</font><b><font color="#ee5896">,</font></b><font color="#ffffff"> </font><font color="#cd00ff">'Install Wireguard configs'</font><b><font color="#ee5896">)</font></b><font color="#ffffff"> </font><b><font color="#00ffff">do</font></b> -<font color="#ffffff"> options</font><b><font color="#ee5896">[:</font></b><font color="#ffffff">install</font><b><font color="#ee5896">]</font></b><font color="#ffffff"> </font><b><font color="#ee5896">=</font></b><font color="#ffffff"> </font><b><font color="#00ffff">true</font></b> -<font color="#ffffff"> </font><b><font color="#00ffff">end</font></b> -<font color="#ffffff"> opts</font><b><font color="#ee5896">.</font></b><font color="#ffffff">on</font><b><font color="#ee5896">(</font></b><font color="#cd00ff">'--clean'</font><b><font color="#ee5896">,</font></b><font color="#ffffff"> </font><font color="#cd00ff">'Clean Wireguard configs'</font><b><font color="#ee5896">)</font></b><font color="#ffffff"> </font><b><font color="#00ffff">do</font></b> -<font color="#ffffff"> options</font><b><font color="#ee5896">[:</font></b><font color="#ffffff">clean</font><b><font color="#ee5896">]</font></b><font color="#ffffff"> </font><b><font color="#ee5896">=</font></b><font color="#ffffff"> </font><b><font color="#00ffff">true</font></b> -<font color="#ffffff"> </font><b><font color="#00ffff">end</font></b> -<font color="#ffffff"> opts</font><b><font color="#ee5896">.</font></b><font color="#ffffff">on</font><b><font color="#ee5896">(</font></b><font color="#cd00ff">'--hosts=HOSTS'</font><b><font color="#ee5896">,</font></b><font color="#ffffff"> </font><font color="#cd00ff">'Comma separated hosts to configure'</font><b><font color="#ee5896">)</font></b><font color="#ffffff"> </font><b><font color="#00ffff">do</font></b><font color="#ffffff"> </font><b><font color="#ee5896">|</font></b><font color="#ffffff">hosts</font><b><font color="#ee5896">|</font></b> -<font color="#ffffff"> options</font><b><font color="#ee5896">[:</font></b><font color="#ffffff">hosts</font><b><font color="#ee5896">]</font></b><font color="#ffffff"> </font><b><font color="#ee5896">=</font></b><font color="#ffffff"> hosts</font><b><font color="#ee5896">.</font></b><font color="#ffffff">split</font><b><font color="#ee5896">(</font></b><font color="#cd00ff">','</font><b><font color="#ee5896">)</font></b> -<font color="#ffffff"> </font><b><font color="#00ffff">end</font></b> -<font color="#ffffff"> </font><b><font color="#00ffff">end</font></b><b><font color="#ee5896">.</font></b><font color="#ffffff">parse!</font> - -<font color="#ffffff"> conf </font><b><font color="#ee5896">=</font></b><font color="#ffffff"> YAML</font><b><font color="#ee5896">.</font></b><font color="#ffffff">load_file</font><b><font color="#ee5896">(</font></b><font color="#cd00ff">'wireguardmeshgenerator.yaml'</font><b><font color="#ee5896">).</font></b><font color="#ffffff"& |
