Pregunta más frecuente
--------------------------
vpn-fix en ubuntu 24.04: Al establecer el tunel, no funciona bien el DNS.
---------------------------
(encontrado en https://community.fortinet.com/t5/Support-Forum/Ubuntu-24-04-Forticlient-VPN-installation-w-DNS-resolution-fix/td-p/312896 )
Al establecer el tunel, no funciona bien el DNS, especialmente dominio intra.unizar.es.
Al ejecutar "resolvectl" no muestra servidores DNS en el interfaz del tunel. Los tiene el interfaz ethernet o wifi.
Solución:
cat > ~/forti_dns_fix.sh <
#!/bin/bash
export VPN_INTERFACE=$(resolvectl | grep fctvpn | sed 's/[()]//g' | cut -d' ' -f3)
sudo resolvectl domain $VPN_INTERFACE ~.
sudo resolvectl dns $VPN_INTERFACE 155.210.33.4 155.210.12.9
EOF
chmod 755 ~/forti_dns_fix.sh
Y CADA VEZ que se establece el tunel, ejecutar "~/forti_dns_fix.sh"