<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Openvpn on Puppeteers Oy</title>
		<link>https://www.puppeteers.net/tags/openvpn/</link>
		<description>Recent content in Openvpn on Puppeteers Oy</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Tue, 13 Dec 2022 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://www.puppeteers.net/tags/openvpn/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Azure Private DNS and VPN Gateway</title>
				<link>https://www.puppeteers.net/blog/azure-private-dns-and-vpn-gateway/</link>
				<pubDate>Tue, 13 Dec 2022 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/azure-private-dns-and-vpn-gateway/</guid>
				<description>&lt;p&gt;&lt;img src=&#34;https://puppeteers-public.hel1.your-objectstorage.com/pexels-mo-eid-8347501.jpg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-azure-private-dns&#34;&gt;What is Azure Private DNS?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://learn.microsoft.com/en-us/azure/dns/private-dns-overview&#34;&gt;Azure Private DNS&lt;/a&gt; is a DNS service for Azure virtual networks. You can register a &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/dns/private-dns-privatednszone&#34;&gt;private DNS zone&lt;/a&gt; to Azure Private DNS and then link that zone with one or more virtual networks. If you enable DNS auto-registration for a virtual network, a new resource (e.g. virtual machines and VPN Gateways) will automatically add its IP address to Azure Private DNS. Resources in the linked virtual networks can use entries in Azure Private DNS to locate each other, instead of relying on IP addresses or the default Azure DNS domain. You can make Azure Private DNS and Azure VPN Gateway work together in several ways, some of which this article will describe.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Managing OpenVPN-based Azure VPN Gateway certificates with easyrsa3</title>
				<link>https://www.puppeteers.net/blog/managing-openvpn-based-azure-vpn-gateway-certificates-with-easyrsa3/</link>
				<pubDate>Fri, 19 Nov 2021 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/managing-openvpn-based-azure-vpn-gateway-certificates-with-easyrsa3/</guid>
				<description>&lt;p&gt;The Azure VPN Gateway supports the OpenVPN protocol (except the &amp;ldquo;Basic SKU&amp;rdquo;). Unlike, for example, the commercial Access Server, the VPN Gateway does not have a built-in certificate authority (CA) tool for managing client certificates. And client certificates are essentially a requirement if you need to support clients other than Windows and Mac, such as Linux, iOS or Android. The use of easy-rsa-old as a CA for Azure VPN Gateway is documented quite well in this &lt;a href=&#34;https://www.thomasmaurer.ch/2020/02/create-azure-p2s-vpn-with-azure-ad-authentication/&#34;&gt;blog post&lt;/a&gt;, but this post is about using the newer &lt;a href=&#34;https://github.com/OpenVPN/easy-rsa&#34;&gt;easyrsa3&lt;/a&gt; instead. Basic familiarity with easyrsa3 is assumed, so we just go through the steps you&amp;rsquo;d normally take.&lt;/p&gt;</description>
			</item>
			<item>
				<title>OpenVPN server options in Azure</title>
				<link>https://www.puppeteers.net/blog/openvpn-server-options-in-azure/</link>
				<pubDate>Thu, 21 Oct 2021 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/openvpn-server-options-in-azure/</guid>
				<description>&lt;p&gt;OpenVPN is among the best VPN solutions, especially when you need a cross-platform (Windows, Mac, Linux, Android, iOS) solution that just works. It is best suited for point to site (P2S) or &amp;ldquo;road warrior&amp;rdquo; setups where users access internal resources using a VPN client when on the road.&lt;/p&gt;&#xA;&lt;p&gt;When setting up OpenVPN server in Azure you have several options at your disposal:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Set up your own open source &lt;a href=&#34;https://github.com/OpenVPN/openvpn&#34;&gt;OpenVPN 2&lt;/a&gt; server&lt;/p&gt;</description>
			</item>
			<item>
				<title>Making per-link DNS servers added by Wireguard to systemd-resolved survive NetworkManager connection changes</title>
				<link>https://www.puppeteers.net/blog/making-per-link-dns-servers-added-by-wireguard-to-systemd-resolved-survive-networkmanager-connection-changes/</link>
				<pubDate>Tue, 13 Apr 2021 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/making-per-link-dns-servers-added-by-wireguard-to-systemd-resolved-survive-networkmanager-connection-changes/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; the problem described in this article seems to be resolved in Fedora 36 (NetworkManager 1.38.0-2.fc36). It is still present in Fedora 35 (NetworkManager 1.32.12-2.fc35).&lt;/p&gt;&#xA;&lt;p&gt;The title of this blog post may seem familiar to some, as &lt;a href=&#34;https://www.puppeteers.net/blog/making-per-link-dns-servers-pushed-from-openvpn-to-systemd-resolved-survive-networkmanager-connection-changes/&#34;&gt;I solved this problem&lt;/a&gt; for OpenVPN earlier. I won&amp;rsquo;t repeat myself here, so please check the &lt;a href=&#34;https://www.puppeteers.net/blog/making-per-link-dns-servers-pushed-from-openvpn-to-systemd-resolved-survive-networkmanager-connection-changes/&#34;&gt;OpenVPN article&lt;/a&gt; to understand why this is happening.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.wireguard.com/&#34;&gt;Wireguard&lt;/a&gt; servers - unlike &lt;a href=&#34;https://openvpn.net/community/&#34;&gt;OpenVPN&lt;/a&gt; servers - are not able to push any settings such as DNS servers to their clients. However, Wireguard client itself is able to run PostUp commands to configure per-link DNS. The same approach can be used with OpenVPN &amp;ldquo;up&amp;rdquo; scripts as well, if you prefer having full control at the client-side. Here&amp;rsquo;s a Wireguard example:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Making per-link DNS servers pushed from OpenVPN to systemd-resolved survive NetworkManager connection changes</title>
				<link>https://www.puppeteers.net/blog/making-per-link-dns-servers-pushed-from-openvpn-to-systemd-resolved-survive-networkmanager-connection-changes/</link>
				<pubDate>Tue, 03 Nov 2020 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/making-per-link-dns-servers-pushed-from-openvpn-to-systemd-resolved-survive-networkmanager-connection-changes/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; the problem described in this article seems to be resolved in Fedora 36 (NetworkManager 1.38.0-2.fc36). It is still present in Fedora 35 (NetworkManager 1.32.12-2.fc35).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; there a companion article about solving this problem for Wireguard in &lt;a href=&#34;https://www.puppeteers.net/blog/making-per-link-dns-servers-added-by-wireguard-to-systemd-resolved-survive-networkmanager-connection-changes/&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In an the &lt;a href=&#34;https://www.puppeteers.net/blog/manage-linux-client-dns-settings-in-openvpn-and-wireguard/&#34;&gt;Manage Linux client DNS settings in OpenVPN and Wireguard&lt;/a&gt; article we described how to use the &lt;a href=&#34;https://github.com/jonathanio/update-systemd-resolved&#34;&gt;update-systemd-resolved&lt;/a&gt; script to update systemd-resolved per-link DNS servers automatically based on DNS servers pushed from an OpenVPN server. This is very convenient if you have to be connected to multiple remote locations each with their own DNS servers and zones.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Manage Linux client DNS settings in OpenVPN and Wireguard</title>
				<link>https://www.puppeteers.net/blog/manage-linux-client-dns-settings-in-openvpn-and-wireguard/</link>
				<pubDate>Tue, 31 Mar 2020 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/manage-linux-client-dns-settings-in-openvpn-and-wireguard/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://openvpn.net/&#34;&gt;OpenVPN&lt;/a&gt; and &lt;a href=&#34;https://www.wireguard.com/&#34;&gt;Wireguard&lt;/a&gt; are both used to provide secure, remote access to an organization&amp;rsquo;s internal services such as network shares (NFS and Samba), desktops and servers (SSH and RDP) or web services. Linux is generally a first-class citizen as far as clients are concerned but with one exception: accessing DNS through the VPN tunnel.&lt;/p&gt;&#xA;&lt;p&gt;OpenVPN servers have the concept of pushing settings such as DNS servers to client. This happens by emulating a DHCP server. Windows OpenVPN clients for example are able to process this information automatically to update the (per-link) DNS server settings automatically. But Linux traditionally has not had this capability without support from &amp;ldquo;up&amp;rdquo; and &amp;ldquo;down&amp;rdquo; scripts. When one is using &lt;a href=&#34;https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html&#34;&gt;systemd-resolved&lt;/a&gt; the traditional ways such as using resolvconf or modifying /etc/resolv.conf directly no longer work or cause issues. Fortunately there is a good script, &lt;a href=&#34;https://github.com/jonathanio/update-systemd-resolved&#34;&gt;update-systemd-resolved&lt;/a&gt;, for automating the DNS server setup process for systemd-resolved. Basically it takes the list of DNS settings OpenVPN provides and converts them into dbus calls that modify the running systemd-resolved&amp;rsquo;s configuration.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
