diff options
| -rw-r--r-- | content/posts/openbsd-vpn-gateway/index.org | 34 | 
1 files changed, 27 insertions, 7 deletions
| diff --git a/content/posts/openbsd-vpn-gateway/index.org b/content/posts/openbsd-vpn-gateway/index.org index 216eb65..5d1e0d8 100644 --- a/content/posts/openbsd-vpn-gateway/index.org +++ b/content/posts/openbsd-vpn-gateway/index.org @@ -398,14 +398,34 @@  * Connecting Clients    The final piece in the puzzle is connecting client to the VPN    gateway. The method to do this varies depending on OS, and -  situation. +  situation. Most tutorials online covering setting a static IP will +  also mention how to set the gateway. It's also possible to set a +  custom gateway on machines using DHCP with the =routes= command and +  various config options, but I won't go through that here to keep +  this section somewhat brief. + +  On OpenBSD, if we have a static IP setup on our OpenBSD machine, +  like we did as part of this tutorial, it's as simple as replacing +  the contents of =/etc/mygate= with the IP of our new VPN gateway, +  and then either running ~doas sh /etc/netstart~ or rebooting. This +  is covered more in depth on the [[https://www.openbsd.org/faq/faq6.html][OpenBSD FAQ]]. + +  FreeBSD's [[https://www.freebsd.org/doc/handbook/config-network-setup.html][handbook]] covers this topic very well. The basic steps are: +  - Add a line ~ifconfig_<if>="inet + +  Most graphical interfaces for Linux desktop environments will have a +  networking section that will allow you to set the gateway without +  too much fuss. [[https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-20-04-focal-fossa-desktop-server][Here]]'s a walk through from https://linuxconfig.org. + +  The situation for Linux servers is a bit more of a mess. As covered +  in the previously linked article, Ubuntu now likes to use the +  =netplan= framework, while others like Fedora may prefer =nmcli= as +  stated in [[https://linuxconfig.org/how-to-configure-static-ip-address-on-fedora-31][this]] article, or =network-scripts= as states [[https://www.systutorials.com/how-to-set-the-static-ip-address-using-cli-in-fedoracentos-linux/][here]]. If you +  take this path it's recommended you look into how it should be done +  on your specific Linux distribution. + +  Most graphical -** OpenBSD -   OpenBSD perhaps has one of the most straightforward solutions. - -*** Static IP - -*** DHClient  ** Linux  *** Docker | 
