summaryrefslogtreecommitdiffstats
path: root/content/posts/openbsd-wireguard-vpn-gateway/index.org
diff options
context:
space:
mode:
authorDante Catalfamo2023-12-30 01:32:54 -0500
committerDante Catalfamo2023-12-30 01:33:14 -0500
commita7ff1b1ff9fa6eea8301088b2d98cf7536771694 (patch)
treeb7e4125ceff312e3aa4eb9f1e2866efc699a5f29 /content/posts/openbsd-wireguard-vpn-gateway/index.org
parent920e7ad804380ce17c4a0bbfa51cbe077787caa0 (diff)
downloadblog-a7ff1b1ff9fa6eea8301088b2d98cf7536771694.tar.gz
blog-a7ff1b1ff9fa6eea8301088b2d98cf7536771694.tar.bz2
blog-a7ff1b1ff9fa6eea8301088b2d98cf7536771694.zip
openbsd-wireguard-gateway: Update diagram and caption paths
Diffstat (limited to 'content/posts/openbsd-wireguard-vpn-gateway/index.org')
-rw-r--r--content/posts/openbsd-wireguard-vpn-gateway/index.org10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/posts/openbsd-wireguard-vpn-gateway/index.org b/content/posts/openbsd-wireguard-vpn-gateway/index.org
index 3f27707..8a3ee30 100644
--- a/content/posts/openbsd-wireguard-vpn-gateway/index.org
+++ b/content/posts/openbsd-wireguard-vpn-gateway/index.org
@@ -39,7 +39,7 @@ Here's a diagram of what we're building.
The first step in the process is getting the VPN profile from the VPN
provider. It should look something like the following.
-#+CAPTION: profile.conf
+#+CAPTION: =profile.conf=
#+begin_src conf
[Interface]
PrivateKey = PRIVATEKEY
@@ -56,7 +56,7 @@ We then have to rewrite it into OpenBSD's =hostname.if(5)= format.
We'll call it =/etc/hostname.wg0= to create a Wireguard interface and
execute the following commands when it's created.
-#+CAPTION: /etc/hostname.wg0
+#+CAPTION: =/etc/hostname.wg0=
#+begin_src conf
inet XX.XX.XX.XX/32
inet6 YYYY:YYYY:YYYY:YYYY:YYYY:YYYY:YYYY/128
@@ -71,7 +71,7 @@ config file. Lines beginning with =!= are commands that are run as
root when the interface is being created. In this case our new routing
table (rtable) will be number 1. The default routing table is number 0.
-#+CAPTION: /etc/hostname.wg0
+#+CAPTION: =/etc/hostname.wg0=
#+begin_src conf
inet XX.XX.XX.XX/32
inet6 YYYY:YYYY:YYYY:YYYY:YYYY:YYYY:YYYY/128
@@ -89,7 +89,7 @@ interface names if we ever have to.
We can bring up the interface using the command =sh /etc/netstart wg0=.
-#+CAPTION: /etc/pf.conf
+#+CAPTION: =/etc/pf.conf=
#+begin_src conf
set skip on lo
@@ -140,7 +140,7 @@ We can apply the file without rebooting with the command =pfctl -f /etc/pf.conf=
Finally we need to make sure our machine will forward traffic. We can
do this by adding a line to our =sysctl.conf(5)= file.
-#+CAPTION: /etc/sysctl.conf
+#+CAPTION: =/etc/sysctl.conf=
#+begin_src conf
net.inet.ip.forwarding=1
#+end_src