<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From a7ff1b1ff9fa6eea8301088b2d98cf7536771694 Mon Sep 17 00:00:00 2001
From: Dante Catalfamo
Date: Sat, 30 Dec 2023 01:32:54 -0500
Subject: openbsd-wireguard-gateway: Update diagram and caption paths

---
 .../openbsd-wireguard-vpn-gateway/tex/diagram.tex  | 26 ++++++++++++----------
 1 file changed, 14 insertions(+), 12 deletions(-)

(limited to 'content/posts/openbsd-wireguard-vpn-gateway/tex/diagram.tex')

diff --git a/content/posts/openbsd-wireguard-vpn-gateway/tex/diagram.tex b/content/posts/openbsd-wireguard-vpn-gateway/tex/diagram.tex
index 6271044..a14ab90 100644
--- a/content/posts/openbsd-wireguard-vpn-gateway/tex/diagram.tex
+++ b/content/posts/openbsd-wireguard-vpn-gateway/tex/diagram.tex
@@ -2,19 +2,21 @@
 \usepackage{tikz}
 \begin{document}
 \begin{tikzpicture}
-  % \node (server) at (0,0) {server};
+  \draw[red] (-4,4.5) -- +(1,0) node[right,node font=\tiny] {incoming};
+  \draw[orange] (-4,4.25) -- +(1,0) node[right,node font=\tiny] {rtable 1};
+  \draw (-4,4) -- +(1,0) node[right,node font=\tiny] {rtable 0};
   \node (wg0)      at (0,0) {wg0};
-  \node (vio0)     at (0, 1) {vio0};
-  \node (pf)       at (2, 1) {pf};
-  \node (client)   at (-2, 1) {client};
-  \node (internet) at (3, 3) {internet};
-  \node (program)  at (4, 0) {program};
-  \draw[-&gt;,blue] (client) -- (vio0);
-  \draw[-&gt;] (vio0) -- (pf);
-  \draw[-&gt;,orange] (pf) -- (wg0);
-  \draw[-&gt;,orange] (wg0) -- (vio0);
-  \draw[-&gt;,blue] (vio0) -- (internet);
-  \draw[-&gt;,orange] (program) -- (wg0);
+  \node (vio0)     at (0, 2) {vio0};
+  \node (pf)       at (4, 2) {pf};
+  \node (client)   at (-4, 2) {client};
+  \node (internet) at (0, 5) {internet};
+  \draw (-1, 2.5) rectangle (5,-0.5);
+  \node (server)  at (2,2.7) {VPN Server};
+  \draw[-&gt;,red] (client) -- (vio0);
+  \draw[-&gt;,red] (vio0) -- (pf);
+  \draw[-&gt;,orange] (pf) -- node[above,sloped] {NAT} (wg0);
+  \draw[-&gt;] (wg0) -- (vio0);
+  \draw[-&gt;] (vio0) -- (internet);
 \end{tikzpicture}
 \end{document}
 %%% Local Variables:
-- 
cgit v1.2.3

</pre></body></html>