DNS settings remain set after TAP use #180

case "disconnect":
    // Delete direct route for the VPN gateway
    echo("Deleting Direct Route for VPN Gateway");
    exec("route delete " + env("VPNGATEWAY") + " mask 255.255.255.255");
    exec("netsh interface ip set dns " + env("TUNIDX") + " source=static 8.8.8.8")
    exec("netsh interface ip delete dns " + env("TUNIDX") + " 8.8.8.8")
https://github.com/openconnect/openconnect-gui/issues/180 Use above code for use with Openconnect 1.5.3

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.