-
Notifications
You must be signed in to change notification settings - Fork 241
vpnc-script.js doesn't revert dns settings in windows #233
Comments
Hello, thanks for report! Yes, the script is not perfect and there are many open issues. Anyway, the best place to discuss it or propose the fixes/workaround is an upstream openconnect project community. There is no need to register into mailinglist. |
I‘ve got the similar problem: openconnect-gui 1.5.3 does not reset both ipv4 and ipv6 address.
|
Hi I Replaced the latest script from OpenConnect Web site with the script that exist in release package of this product, It works very good now in windows 10 |
Oh, ok. As far I remember, the last changes use 2 variant of the vpnc script. The goal is to use original (upstream) version for openconnect.exe and slightly modified (not merged into upstream yet) for GUI. The reason is very simple. When user get issues with GUI and console doesn't work as well, the problem should be fixed in upstream openconnect project. May be, I will update notes/hints. |
Hello, everyone!
I've use to openconnect and openvpn. It's both clients share the same tun interface and when I switch from openconnect to openvpn, settings for dns servers still from openconnect.
I've resolved problem by change 2 lines in vpnc-script.js:
// ReSet Tunnel Adapter IP = nothing
echo("Resetting Tunnel Adapter IP");
// exec("netsh interface ip set address " + env("TUNIDX") + " source=static 1.0.0.0 255.255.255.255");
//exec("netsh interface ip delete address " + env("TUNIDX") + " 1.0.0.0");
exec("netsh interface ip set dns " + env("TUNIDX") + " source=dhcp");
exec("netsh interface ip set address " + env("TUNIDX") + " source=dhcp");
That doesn't revert settings back to previous state, but in my opinion, that doesn't need for tun interface :)
The text was updated successfully, but these errors were encountered: