summaryrefslogtreecommitdiffstats
path: root/content/posts/openbsd-vpn-gateway
diff options
context:
space:
mode:
authorDante Catalfamo2020-08-16 23:33:37 -0400
committerDante Catalfamo2020-08-16 23:33:37 -0400
commit6555ac4343f10e5bc0d53abd6742d00368c17af2 (patch)
tree48b32e92bd56da5b8a288ffa642ef8c5950297ef /content/posts/openbsd-vpn-gateway
parentb7699dbc217cee0753e44815e9fee4c4e8489801 (diff)
downloadblog-6555ac4343f10e5bc0d53abd6742d00368c17af2.tar.gz
blog-6555ac4343f10e5bc0d53abd6742d00368c17af2.tar.bz2
blog-6555ac4343f10e5bc0d53abd6742d00368c17af2.zip
gateway: more wording and corrections
Diffstat (limited to 'content/posts/openbsd-vpn-gateway')
-rw-r--r--content/posts/openbsd-vpn-gateway/index.org17
1 files changed, 10 insertions, 7 deletions
diff --git a/content/posts/openbsd-vpn-gateway/index.org b/content/posts/openbsd-vpn-gateway/index.org
index 5fc0ba0..ce96625 100644
--- a/content/posts/openbsd-vpn-gateway/index.org
+++ b/content/posts/openbsd-vpn-gateway/index.org
@@ -64,23 +64,26 @@
simple and straight forward. You can pick up the disk =.iso= image
or USB =.fs= image from the [[https://www.openbsd.org/faq/faq4.html#Download][download]] page on OpenBSD website. If
this is 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. You may
+ [[https://www.openbsd.org/faq/faq4.html][installation guide]], which goes over the process in detail. You may
also want to consider checking out my [[{{< ref openbsd-introduction-talk >}}][Introduction to OpenBSD]] talk.
* 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.
+ It's very important to set a static IP on our VPN gateway. We do
+ this so we always know where to find it on the network. We'll do
+ this first.
Setting a static IP in OpenBSD couldn't be simpler. For each
interface on the machine, you can create a [[http://man.openbsd.org/man5/hostname.if.5][=hostname.if(5)=]] 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= with a =/24= subnet. We use
- [[https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing][CIDR notation]] here for convenience. We open the file and replace its
- contents with the following.
+ with DHCP, the file might contain a single line saying =dhcp=. We
+ want to give the interface the static IP =192.168.0.11= with a =/24=
+ subnet. We use [[https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing][CIDR notation]] here for convenience, but it's also
+ possible to write out the full subnet mask after our IP, separated
+ by a space. We open the file and replace its contents with the
+ following.
#+BEGIN_SRC
inet 192.168.0.11/24