From fdde575593390d3797143f51acff2982208cbe02 Mon Sep 17 00:00:00 2001 From: Dante Catalfamo Date: Tue, 14 Jul 2020 00:34:27 -0400 Subject: gateway: move my network section --- content/posts/openbsd-vpn-gateway/index.org | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'content/posts') 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.=, where == 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.=, where == 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 -- cgit v1.2.3