summaryrefslogtreecommitdiffstats
path: root/content/posts/openbsd-vpn-gateway
diff options
context:
space:
mode:
authorDante Catalfamo2020-07-14 00:34:27 -0400
committerDante Catalfamo2020-07-14 00:34:27 -0400
commitfdde575593390d3797143f51acff2982208cbe02 (patch)
tree7f0ac67ac1b956e0a535fe3f4f2d4da530aed144 /content/posts/openbsd-vpn-gateway
parent0c5d811130815b9c8aec58d492456468e58b108d (diff)
downloadblog-fdde575593390d3797143f51acff2982208cbe02.tar.gz
blog-fdde575593390d3797143f51acff2982208cbe02.tar.bz2
blog-fdde575593390d3797143f51acff2982208cbe02.zip
gateway: move my network section
Diffstat (limited to 'content/posts/openbsd-vpn-gateway')
-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