Skip to content

Instantly share code, notes, and snippets.

@ptheywood
Last active December 8, 2021 11:40
Show Gist options
  • Save ptheywood/ea878c6ded41adad6716eb2b0d412f88 to your computer and use it in GitHub Desktop.
Save ptheywood/ea878c6ded41adad6716eb2b0d412f88 to your computer and use it in GitHub Desktop.
Probably partial instructions for fixing network-manager-fortisslvpn peer dns on ubuntu 21.04

Fortisslvpn in ubuntu 21.04 (and some earlier versions) does not peer dns correctly since a fortivpn update changed a default parameter. The ubuntu package has not been patched in 2+ years.

The best way to fix this so far, is to manually build a patched .deb to install. These instructions are crude and may be missing dependencies.

@todo - It would be better to alter the package version info so it is newer than that provided by apt repos to avoid needing to hold the package back

  1. Modify /etc/apt/sources.list, uncommenting the line deb-src http://gb.archive.ubuntu.com/ubuntu/ hirsute universe or equivalent
  2. sudo apt-get update
  3. Make and change to a temporary directory. mkdir -p /tmp/fortisslvpn && cd /tmp/fortisslvpn
  4. Download the source for the apt network-manager-fortisslvpn package: apt source network-manager-fortisslvpn
  5. cd network-manager-fortisslvpn-1.2.10
  6. Apply the patch to src/nm-fortisslvpn-service.c https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/-/merge_requests/15/diffs?commit_id=88fe44bead5b2d06aa3c294544366798fb77aa26
  7. Build a patched .deb, with some extra flags dpkg-buildpackage -rfakeroot -b -uc -us
  8. cd ../
  9. Install the new .deb sudo dpkg -i network-manager-fortisslvpn_1.2.10-0ubuntu1_amd64.deb
  10. Mark the package as held so it does not get updated over. sudo apt-mark hold network-manager-fortisslvpn Fortisslvpn via network manager should now dns correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment