diff --git a/404.html b/404.html deleted file mode 100644 index 205d00e4..00000000 --- a/404.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - -404 Page not found - - - - - - - -
-

404!

-
- - - \ No newline at end of file diff --git a/about/index.html b/about/index.html deleted file mode 100644 index ee609867..00000000 --- a/about/index.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - -About - - - - - - - -
-

About

-
-
-

I work as a software developer in the realm of security.

-

I have a passion for open-source, automation, security, and economics.

-

I enjoy running, music and spending time with my family.

-
- - - \ No newline at end of file diff --git a/authors/index.xml b/authors/index.xml new file mode 100644 index 00000000..34bedf86 --- /dev/null +++ b/authors/index.xml @@ -0,0 +1 @@ +Authors on davegallant/authors/Recent content in Authors on davegallantHugo -- gohugo.ioen-us \ No newline at end of file diff --git a/blog/2020/03/16/appgate-sdp-on-arch-linux/index.html b/blog/2020/03/16/appgate-sdp-on-arch-linux/index.html deleted file mode 100644 index 2dec1a7f..00000000 --- a/blog/2020/03/16/appgate-sdp-on-arch-linux/index.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -AppGate SDP on Arch Linux - - - - - - - -
-

AppGate SDP on Arch Linux

-

Dave Gallant -2020/03/16

-
-
-

AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP 4.3.2 working on Arch Linux.

-

Depending on the AppGate SDP Server that is running, you may require a client that is more recent than the latest package on AUR. -As of right now, the latest AUR is 4.2.2-1.

-

These steps highlight how to get it working with Python3.8 by making a 1 line modification to AppGate source code.

-

Packaging

-

We already know the community package is out of date, so let’s clone it:

-
git clone https://aur.archlinux.org/appgate-sdp.git
-cd appgate-sdp
-

You’ll likely notice that the version is not what we want, so let’s modify the PKGBUILD to the following:

-
# Maintainer: Pawel Mosakowski <pawel at mosakowski dot net>
-pkgname=appgate-sdp
-conflicts=('appgate-sdp-headless')
-pkgver=4.3.2
-_download_pkgver=4.3
-pkgrel=1
-epoch=
-pkgdesc="Software Defined Perimeter - GUI client"
-arch=('x86_64')
-url="https://www.cyxtera.com/essential-defense/appgate-sdp/support"
-license=('custom')
-# dependecies calculated by namcap
-depends=('gconf' 'libsecret' 'gtk3' 'python' 'nss' 'libxss' 'nodejs' 'dnsmasq')
-source=("https://sdpdownloads.cyxtera.com/AppGate-SDP-${_download_pkgver}/clients/${pkgname}_${pkgver}_amd64.deb"
-        "appgatedriver.service")
-options=(staticlibs)
-prepare() {
-    tar -xf data.tar.xz
-}
-package() {
-    cp -dpr "${srcdir}"/{etc,lib,opt,usr} "${pkgdir}"
-    mv -v "$pkgdir/lib/systemd/system" "$pkgdir/usr/lib/systemd/"
-    rm -vrf "$pkgdir/lib"
-    cp -v "$srcdir/appgatedriver.service" "$pkgdir/usr/lib/systemd/system/appgatedriver.service"
-    mkdir -vp "$pkgdir/usr/share/licenses/appgate-sdp"
-    cp -v "$pkgdir/usr/share/doc/appgate/copyright" "$pkgdir/usr/share/licenses/appgate-sdp"
-    cp -v "$pkgdir/usr/share/doc/appgate/LICENSE.github" "$pkgdir/usr/share/licenses/appgate-sdp"
-    cp -v "$pkgdir/usr/share/doc/appgate/LICENSES.chromium.html.bz2" "$pkgdir/usr/share/licenses/appgate-sdp"
-}
-md5sums=('17101aac7623c06d5fbb95f50cf3dbdc'
-         '002644116e20b2d79fdb36b7677ab4cf')
-
-

Let’s first make sure we have some dependencies. If you do not have yay, check it out.

-
yay -S dnsmasq gconf
-

Now, let’s install it:

-
makepkg -si
-

Running the client

-

Ok, let’s run the client by executing appgate.

-

It complains about not being able to connect.

-

Easy fix:

-
sudo systemctl start appgatedriver.service
-

Now we should be connected… but DNS is not working?

-

Fixing the DNS

-

Running resolvectl should display that something is not right.

-

Why is the DNS not being set by appgate?

-
$ head -3 /opt/appgate/linux/set_dns
-#!/usr/bin/env python3
-'''
-This is used to set and unset the DNS.
-

It seems like python3 is required for the DNS setting to happen. -Let’s try to run it.

-
$ sudo /opt/appgate/linux/set_dns
-/opt/appgate/linux/set_dns:88: SyntaxWarning: "is" with a literal. Did you mean "=="?
-  servers = [( socket.AF_INET if x.version is 4 else socket.AF_INET6, map(int, x.packed)) for x in servers]
-Traceback (most recent call last):
-  File "/opt/appgate/linux/set_dns", line 30, in <module>
-    import dbus
-ModuleNotFoundError: No module named 'dbus'
-

Ok, let’s install it:

-
$ sudo python3.8 -m pip install dbus-python
-

It should work now… right?

-
$ sudo /opt/appgate/linux/set_dns
-/opt/appgate/linux/set_dns:88: SyntaxWarning: "is" with a literal. Did you mean "=="?
-  servers = [( socket.AF_INET if x.version is 4 else socket.AF_INET6, map(int, x.packed)) for x in servers]
-module 'platform' has no attribute 'linux_distribution'
-

This is a breaking change in Python3.8.

-

So what is calling platform.linux_distribution?

-

Let’s search for it:

-
$ sudo grep -r 'linux_distribution' /opt/appgate/linux/
-/opt/appgate/linux/nm.py:    if platform.linux_distribution()[0] != 'Fedora':
-

Aha! So this is in the local AppGate source code. This should be an easy fix. Let’s just replace this line with:

-
if True: # Since we are not using Fedora :)
-

Wrapping up

-

It turns out there are breaking changes in Python3.8.

-

The docs that say Deprecated since version 3.5, will be removed in version 3.8: See alternative like the distro package.

-

I guess this highlights one of the caveats of relying upon system python.

-
- - - \ No newline at end of file diff --git a/categories/index.html b/categories/index.html deleted file mode 100644 index df4b9411..00000000 --- a/categories/index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - -Categories - - - - - - - -

Categories

- - - - \ No newline at end of file diff --git a/categories/index.xml b/categories/index.xml index 64d11f28..7309969d 100644 --- a/categories/index.xml +++ b/categories/index.xml @@ -1 +1 @@ -Categories on davegallant.github.io - blog/categories/Recent content in Categories on davegallant.github.io - blogHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400linux/categories/linux/Mon, 16 Mar 2020 22:00:15 -0400/categories/linux/ \ No newline at end of file +Categories on davegallant/categories/Recent content in Categories on davegallantHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400linux/categories/linux/Mon, 16 Mar 2020 22:00:15 -0400/categories/linux/ \ No newline at end of file diff --git a/categories/linux/index.html b/categories/linux/index.html deleted file mode 100644 index d8d0107b..00000000 --- a/categories/linux/index.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - -linux - - - - - - - -

linux

- - - - \ No newline at end of file diff --git a/categories/linux/index.xml b/categories/linux/index.xml index 36a32729..0876eed8 100644 --- a/categories/linux/index.xml +++ b/categories/linux/index.xml @@ -1 +1 @@ -linux on davegallant.github.io - blog/categories/linux/Recent content in linux on davegallant.github.io - blogHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/blog/2020/03/16/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/blog/2020/03/16/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file +linux on davegallant/categories/linux/Recent content in linux on davegallantHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/post/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/post/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file diff --git a/css/style.css b/css/style.css deleted file mode 100644 index 90b599c6..00000000 --- a/css/style.css +++ /dev/null @@ -1,53 +0,0 @@ -body { - max-width: 800px; - margin: auto; - padding: 1em; - line-height: 1.5em; -} - -/* header and footer areas */ -.menu { padding: 0; } -.menu li { display: inline-block; } -.article-meta, .menu a { - text-decoration: none; - /* background: #eee; */ - padding: 5px; - border-radius: 5px; -} -.menu, .article-meta, footer { text-align: center; } -.title { font-size: 1.1em; } -.author { font-size: 0.9em; } -.date { font-size: 0.9em; } -footer a { text-decoration: none; } -hr { - border-style: dashed; - color: #ddd; -} - -/* code */ -pre { - border: 1px solid #ddd; - box-shadow: 5px 5px 5px #eee; - padding: 1em; - overflow-x: auto; -} -code { background: #f9f9f9; } -pre code { background: none; } - -/* misc elements */ -img, iframe, video { max-width: 100%; } -main { hyphens: auto; } -blockquote { - background: #f9f9f9; - border-left: 5px solid #ccc; - padding: 3px 1em 3px; -} - -table { - margin: auto; - border-top: 1px solid #666; - border-bottom: 1px solid #666; -} -table thead th { border-bottom: 1px solid #ddd; } -th, td { padding: 5px; } -thead, tfoot, tr:nth-child(even) { background: #eee } diff --git a/index.html b/index.html deleted file mode 100644 index c6ccd803..00000000 --- a/index.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - -davegallant.github.io - blog - - - - - - - - - - - \ No newline at end of file diff --git a/index.xml b/index.xml index 7ad041ed..0ffa7de4 100644 --- a/index.xml +++ b/index.xml @@ -1,3 +1,2 @@ -davegallant.github.io - blog/Recent content on davegallant.github.io - blogHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/blog/2020/03/16/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/blog/2020/03/16/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p>About/about/Mon, 01 Jan 0001 00:00:00 +0000/about/I work as a software developer in the realm of security. -I have a passion for open-source, automation, security, and economics. -I enjoy running, music and spending time with my family. \ No newline at end of file +davegallant/Recent content on davegallantHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/post/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/post/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p><link>/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/</guid><description>test</description></item><item><title>About/about/Mon, 01 Jan 0001 00:00:00 +0000/about/I&rsquo;m a software engineer with a passion for open-source, infrastructure, tooling and security. +When I&rsquo;m not in front of a computer, I enjoy traveling, hiking and spending time with my family. \ No newline at end of file diff --git a/page/index.xml b/page/index.xml new file mode 100644 index 00000000..8c91929c --- /dev/null +++ b/page/index.xml @@ -0,0 +1,2 @@ +Pages on davegallant/page/Recent content in Pages on davegallantHugo -- gohugo.ioen-us<link>/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/</guid><description>test</description></item><item><title>About/about/Mon, 01 Jan 0001 00:00:00 +0000/about/I&rsquo;m a software engineer with a passion for open-source, infrastructure, tooling and security. +When I&rsquo;m not in front of a computer, I enjoy traveling, hiking and spending time with my family. \ No newline at end of file diff --git a/post/index.html b/post/index.html deleted file mode 100644 index b540a747..00000000 --- a/post/index.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - -Posts - - - - - - - -

Posts

- - - - \ No newline at end of file diff --git a/post/index.xml b/post/index.xml index ae5fa68d..f8c681d9 100644 --- a/post/index.xml +++ b/post/index.xml @@ -1 +1 @@ -Posts on davegallant.github.io - blog/post/Recent content in Posts on davegallant.github.io - blogHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/blog/2020/03/16/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/blog/2020/03/16/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file +Posts on davegallant/post/Recent content in Posts on davegallantHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/post/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/post/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file diff --git a/series/index.xml b/series/index.xml new file mode 100644 index 00000000..73967631 --- /dev/null +++ b/series/index.xml @@ -0,0 +1 @@ +Series on davegallant/series/Recent content in Series on davegallantHugo -- gohugo.ioen-us \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index 8a37003c..00d83db1 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -/blog/2020/03/16/appgate-sdp-on-arch-linux/2020-03-16T22:00:15-04:00/categories/2020-03-16T22:00:15-04:00/2020-03-16T22:00:15-04:00/tags/linux/2020-03-16T22:00:15-04:00/categories/linux/2020-03-16T22:00:15-04:00/post/2020-03-16T22:00:15-04:00/tags/python/2020-03-16T22:00:15-04:00/tags/2020-03-16T22:00:15-04:00/tags/vpn/2020-03-16T22:00:15-04:00/about/ \ No newline at end of file +/post/appgate-sdp-on-arch-linux/2020-03-16T22:00:15-04:00/categories/2020-03-16T22:00:15-04:00/2020-03-16T22:00:15-04:00/tags/linux/2020-03-16T22:00:15-04:00/categories/linux/2020-03-16T22:00:15-04:00/post/2020-03-16T22:00:15-04:00/tags/python/2020-03-16T22:00:15-04:00/tags/2020-03-16T22:00:15-04:00/tags/vpn/2020-03-16T22:00:15-04:00//about//authors//page//series/ \ No newline at end of file diff --git a/tags/index.html b/tags/index.html deleted file mode 100644 index e9502c87..00000000 --- a/tags/index.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - -Tags - - - - - - - -

Tags

- - - - \ No newline at end of file diff --git a/tags/index.xml b/tags/index.xml index a99f73f5..a1e3d4e3 100644 --- a/tags/index.xml +++ b/tags/index.xml @@ -1 +1 @@ -Tags on davegallant.github.io - blog/tags/Recent content in Tags on davegallant.github.io - blogHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400linux/tags/linux/Mon, 16 Mar 2020 22:00:15 -0400/tags/linux/python/tags/python/Mon, 16 Mar 2020 22:00:15 -0400/tags/python/vpn/tags/vpn/Mon, 16 Mar 2020 22:00:15 -0400/tags/vpn/ \ No newline at end of file +Tags on davegallant/tags/Recent content in Tags on davegallantHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400linux/tags/linux/Mon, 16 Mar 2020 22:00:15 -0400/tags/linux/python/tags/python/Mon, 16 Mar 2020 22:00:15 -0400/tags/python/vpn/tags/vpn/Mon, 16 Mar 2020 22:00:15 -0400/tags/vpn/ \ No newline at end of file diff --git a/tags/linux/index.html b/tags/linux/index.html deleted file mode 100644 index 3636eaea..00000000 --- a/tags/linux/index.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - -linux - - - - - - - -

linux

- - - - \ No newline at end of file diff --git a/tags/linux/index.xml b/tags/linux/index.xml index 9db0d08d..6080fc32 100644 --- a/tags/linux/index.xml +++ b/tags/linux/index.xml @@ -1 +1 @@ -linux on davegallant.github.io - blog/tags/linux/Recent content in linux on davegallant.github.io - blogHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/blog/2020/03/16/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/blog/2020/03/16/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file +linux on davegallant/tags/linux/Recent content in linux on davegallantHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/post/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/post/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file diff --git a/tags/python/index.html b/tags/python/index.html deleted file mode 100644 index 0745e075..00000000 --- a/tags/python/index.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - -python - - - - - - - -

python

- - - - \ No newline at end of file diff --git a/tags/python/index.xml b/tags/python/index.xml index 9da4b9a1..a9c091b3 100644 --- a/tags/python/index.xml +++ b/tags/python/index.xml @@ -1 +1 @@ -python on davegallant.github.io - blog/tags/python/Recent content in python on davegallant.github.io - blogHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/blog/2020/03/16/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/blog/2020/03/16/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file +python on davegallant/tags/python/Recent content in python on davegallantHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/post/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/post/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file diff --git a/tags/vpn/index.html b/tags/vpn/index.html deleted file mode 100644 index 8dfc3c0d..00000000 --- a/tags/vpn/index.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - -vpn - - - - - - - -

vpn

- - - - \ No newline at end of file diff --git a/tags/vpn/index.xml b/tags/vpn/index.xml index 6e2d9d67..1fa91807 100644 --- a/tags/vpn/index.xml +++ b/tags/vpn/index.xml @@ -1 +1 @@ -vpn on davegallant.github.io - blog/tags/vpn/Recent content in vpn on davegallant.github.io - blogHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/blog/2020/03/16/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/blog/2020/03/16/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file +vpn on davegallant/tags/vpn/Recent content in vpn on davegallantHugo -- gohugo.ioen-usMon, 16 Mar 2020 22:00:15 -0400AppGate SDP on Arch Linux/post/appgate-sdp-on-arch-linux/Mon, 16 Mar 2020 22:00:15 -0400/post/appgate-sdp-on-arch-linux/<p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP <code>4.3.2</code> working on Arch Linux.</p> \ No newline at end of file