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
- Modify
/etc/apt/sources.list, uncommenting the linedeb-src http://gb.archive.ubuntu.com/ubuntu/ hirsute universeor equivalent sudo apt-get update- Make and change to a temporary directory.
mkdir -p /tmp/fortisslvpn && cd /tmp/fortisslvpn - Download the source for the apt
network-manager-fortisslvpnpackage:apt source network-manager-fortisslvpn cd network-manager-fortisslvpn-1.2.10- Apply the patch to
src/nm-fortisslvpn-service.chttps://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/-/merge_requests/15/diffs?commit_id=88fe44bead5b2d06aa3c294544366798fb77aa26 - Build a patched .deb, with some extra flags
dpkg-buildpackage -rfakeroot -b -uc -us cd ../- Install the new .deb
sudo dpkg -i network-manager-fortisslvpn_1.2.10-0ubuntu1_amd64.deb - Mark the package as held so it does not get updated over.
sudo apt-mark hold network-manager-fortisslvpnFortisslvpn via network manager should now dns correctly.