summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/posts/openbsd-vpn-gateway/index.org28
1 files changed, 15 insertions, 13 deletions
diff --git a/content/posts/openbsd-vpn-gateway/index.org b/content/posts/openbsd-vpn-gateway/index.org
index 2f6f31e..7add08d 100644
--- a/content/posts/openbsd-vpn-gateway/index.org
+++ b/content/posts/openbsd-vpn-gateway/index.org
@@ -29,6 +29,12 @@
decide to close the connection. Sort of like a "kill switch", as some
companies market it.
+* My Network
+
+ In this post the machine will have a single network interface called
+ =vio0= with a desired static IP of =192.168.0.11=, although the
+ interface and IP in your case will be differ.
+
* Hardware
To replicate my setup you'll need a dedicated machine running
@@ -61,22 +67,18 @@
your first time installing OpenBSD, you should check out the
[[https://www.openbsd.org/faq/faq4.html#Download][ installation guide]], which goes over the process in detail.
-* Configuring a static IP
+* Configuring a Static IP
The most important thing is to set a static IP, so it can be set as
the gateway for client machines. We'll set this first.
- In this post the machine will have a single network interface called
- =vio0= with a desired static IP of =192.168.0.11=, although the
- interface and IP in your case will be differ.
-
- Setting a static IP in OpenBSD couldn't be simpler. For each interface
- on the machine, you can create a file with the name
- =/etc/hostname.<if>=, where =<if>= is the name of the interface. Since
- we want to set a configure the interface =vio0=, the file we want is
- =/etc/hostname.vio0=. If your box was configured with DHCP, the file
- might contain =dhcp=. We want to give the interface the static IP
- =192.168.0.11=, so we open the file and replace its contents with the
- following.
+ Setting a static IP in OpenBSD couldn't be simpler. For each
+ interface on the machine, you can create a file with the name
+ =/etc/hostname.<if>=, where =<if>= is the name of the
+ interface. Since we want to set a configure the interface =vio0=,
+ the file we want is =/etc/hostname.vio0=. If your box was configured
+ with DHCP, the file might contain =dhcp=. We want to give the
+ interface the static IP =192.168.0.11=, so we open the file and
+ replace its contents with the following.
#+BEGIN_SRC
inet 192.168.0.11/24