summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorDante Catalfamo2020-07-13 23:43:30 -0400
committerDante Catalfamo2020-07-13 23:43:30 -0400
commitf2feeb604604078b30fac4aff6d76902e1f2189f (patch)
treef19b4d38eec98cdd791a1838a86384b4c1f107e9 /content
parent4493a029c948f4f2b45d6799aae4cb298883f0d3 (diff)
downloadblog-f2feeb604604078b30fac4aff6d76902e1f2189f.tar.gz
blog-f2feeb604604078b30fac4aff6d76902e1f2189f.tar.bz2
blog-f2feeb604604078b30fac4aff6d76902e1f2189f.zip
gateway: Add header
Diffstat (limited to 'content')
-rw-r--r--content/posts/openbsd-vpn-gateway/index.org41
1 files changed, 21 insertions, 20 deletions
diff --git a/content/posts/openbsd-vpn-gateway/index.org b/content/posts/openbsd-vpn-gateway/index.org
index 4d363b1..d1e5db3 100644
--- a/content/posts/openbsd-vpn-gateway/index.org
+++ b/content/posts/openbsd-vpn-gateway/index.org
@@ -61,28 +61,29 @@ 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 different.
-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.
+* 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.
-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
-#+END_SRC
+ #+BEGIN_SRC
+ inet 192.168.0.11/24
+ #+END_SRC
-Now we run [[https://man.openbsd.org/man8/netstart.8][=netstart(8)=]] to reconfigure the interface according to the
-file we've just edited.
+ Now we run [[https://man.openbsd.org/man8/netstart.8][=netstart(8)=]] to reconfigure the interface according to the
+ file we've just edited.
-#+BEGIN_SRC shell
-dosa sh /etc/netstat vio0
-#+END_SRC
+ #+BEGIN_SRC shell
+ dosa sh /etc/netstat vio0
+ #+END_SRC
-Now if you check =ifconfig=, you should see the interface has the
-correct IP.
+ Now if you check =ifconfig=, you should see the interface has the
+ correct IP.