From 01b9abce401cb4f633dfd2a0a0ee40480fbf6f9a Mon Sep 17 00:00:00 2001 From: Dante Catalfamo Date: Fri, 28 Aug 2020 16:24:34 -0400 Subject: vpn-gateway: more on last section regarding clients --- content/posts/openbsd-vpn-gateway/index.org | 57 +++++++++++++++++------------ 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/content/posts/openbsd-vpn-gateway/index.org b/content/posts/openbsd-vpn-gateway/index.org index c8005e5..997f049 100644 --- a/content/posts/openbsd-vpn-gateway/index.org +++ b/content/posts/openbsd-vpn-gateway/index.org @@ -412,30 +412,39 @@ 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]]. +** OpenBSD + 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_="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 +** FreeBSD + FreeBSD's [[https://www.freebsd.org/doc/handbook/config-network-setup.html][handbook]] covers this topic very well. The basic steps are + involve adding the following lines to your =/etc/rc.conf=: + - ~ifconfig_="inet XXX.XXX.XXX.XXX netmask YYY.YYY.YYY.YYY~, + where == is the interface, and =X= and =Y= are your IP and + netmask. + - ~defaultrouter=~ where =