First of all, thank you. I use ansible (to deploy many machines) so a simple copy of 2 files fixes the problem in another manner.
I hardcode "eth0" in /etc/strongswan.d/charon/resolv.conf as my default device (iface=eth0). Then I also hardcode the DNS server in /etc/systemd/resolved.conf (DNS=myDNS-VPN). This lets my automate the process for now. (I know about the issues which appears when the default interface changes e.g. to wlan0 or something) When trying your fix (mentioned above) I ran into the following issues. 1) When using the setting start_action=start, which starts the VPN connection as soon as Strongswan starts (I want that for a constant company VPN), I can not use your command "swanctl -....." because the mentioned connection is already in use. 2) I could not execute your third step in a script (command line manually works though): iface=$(ip -j route | jq -r '.[] | select(.dst == "default") | .dev + " " + (.metric // 1000000 | tostring)' | sort -k2 -n | head -n1 | cut -d ' ' -f1) As I mentioned before, I want to automate the whole process. Adding your third step command to a script, did not work for me, since your command somehow broke my script. I will give it some more testing today. Thanks so far. I am a bit unhappy that the ubuntu devs did not already fix this... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067897 Title: Ubuntu 24.04 does not install resolvconf uses systemd-resolved instead which is broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2067897/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
