mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-14 12:20:19 +00:00
deploy: 7a12f8daeaac15d2e93d3b30382c5fb1ecbd328d
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<head>
|
||||
<meta charset=utf-8>
|
||||
<meta name=viewport content="width=device-width,initial-scale=1">
|
||||
<script type=application/ld+json>{"@context":"http://schema.org","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"\/"},"articleSection":"post","name":"AppGate SDP on Arch Linux","headline":"AppGate SDP on Arch Linux","description":"\u003cp\u003eAppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP \u003ccode\u003e4.3.2\u003c\/code\u003e working on Arch Linux.\u003c\/p\u003e","inLanguage":"en-US","author":"","creator":"","publisher":"","accountablePerson":"","copyrightHolder":"","copyrightYear":"2020","datePublished":"2020-03-16 22:00:15 -0400 -0400","dateModified":"2020-03-16 22:00:15 -0400 -0400","url":"\/blog\/2020\/03\/16\/appgate-sdp-on-arch-linux\/","wordCount":"506","keywords":["linux","vpn","python","Blog"]}</script>
|
||||
<script type=application/ld+json>{"@context":"http://schema.org","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"\/"},"articleSection":"post","name":"AppGate SDP on Arch Linux","headline":"AppGate SDP on Arch Linux","description":"\u003cp\u003eAppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP \u003ccode\u003e4.3.2\u003c\/code\u003e working on Arch Linux.\u003c\/p\u003e","inLanguage":"en-US","author":"","creator":"","publisher":"","accountablePerson":"","copyrightHolder":"","copyrightYear":"2020","datePublished":"2020-03-16 22:00:15 -0400 -0400","dateModified":"2020-03-16 22:00:15 -0400 -0400","url":"\/blog\/2020\/03\/16\/appgate-sdp-on-arch-linux\/","wordCount":"511","keywords":["linux","vpn","python","Blog"]}</script>
|
||||
<title>AppGate SDP on Arch Linux</title>
|
||||
<link rel=stylesheet href=https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css integrity=sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B crossorigin=anonymous>
|
||||
<link rel=stylesheet href=/css/style.css>
|
||||
@@ -30,7 +30,7 @@
|
||||
<p>Depending on the AppGate SDP Server that is running, you may require a client that is more recent than the latest package on <a href=https://aur.archlinux.org/packages/appgate-sdp/>AUR</a>.
|
||||
As of right now, the latest AUR is <code>4.2.2-1</code>.</p>
|
||||
<p>These steps highlight how to get it working with <code>Python3.8</code> by making a 1 line modification to AppGate source code.</p>
|
||||
<h1 id=package>Package</h1>
|
||||
<h1 id=packaging-up>Packaging up</h1>
|
||||
<p>We already know the community package is out of date, so let’s clone it:</p>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell>git clone https://aur.archlinux.org/appgate-sdp.git
|
||||
cd appgate-sdp
|
||||
@@ -71,13 +71,13 @@ md5sums<span style=color:#f92672>=(</span><span style=color:#e6db74>'17101aa
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell>yay -S dnsmasq gconf
|
||||
</code></pre></div><p>Now, let’s install it:</p>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell>makepkg -si
|
||||
</code></pre></div><h1 id=run>Run</h1>
|
||||
</code></pre></div><h1 id=running-the-client>Running the client</h1>
|
||||
<p>Ok, let’s run the client by executing <code>appgate</code>.</p>
|
||||
<p>It complains about not being able to connect.</p>
|
||||
<p>Easy fix:</p>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell>sudo systemctl start appgatedriver.service
|
||||
</code></pre></div><p>Now we should be connected… but DNS is not working?</p>
|
||||
<h1 id=fix-dns>Fix DNS</h1>
|
||||
<h1 id=fixing-the-dns>Fixing the DNS</h1>
|
||||
<p>Running <code>resolvectl</code> should display that something is not right.</p>
|
||||
<p>Why is the DNS not being set by appgate?</p>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-shell data-lang=shell>$ head -3 /opt/appgate/linux/set_dns
|
||||
@@ -107,7 +107,7 @@ module <span style=color:#e6db74>'platform'</span> has no attribute <spa
|
||||
/opt/appgate/linux/nm.py: <span style=color:#66d9ef>if</span> platform.linux_distribution<span style=color:#f92672>()[</span>0<span style=color:#f92672>]</span> !<span style=color:#f92672>=</span> <span style=color:#e6db74>'Fedora'</span>:
|
||||
</code></pre></div><p>Aha! So this is in the local AppGate source code. This should be an easy fix. Let’s just replace this line with:</p>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-python data-lang=python><span style=color:#66d9ef>if</span> <span style=color:#66d9ef>True</span>: <span style=color:#75715e># Since we are not using Fedora :)</span>
|
||||
</code></pre></div><h1 id=conclusion>Conclusion</h1>
|
||||
</code></pre></div><h1 id=wrapping-up>Wrapping up</h1>
|
||||
<p>It turns out there are <a href=https://docs.python.org/3.7/library/platform.html#platform.linux_distribution>breaking changes</a> in Python3.8.</p>
|
||||
<p>The docs that say <code>Deprecated since version 3.5, will be removed in version 3.8: See alternative like the distro package.</code></p>
|
||||
<p>I guess this highlights one of the caveats of relying upon system python.</p>
|
||||
|
Reference in New Issue
Block a user