Skip to main content
23 events
when toggle format what by license comment
Apr 18 at 13:35 comment added Michael Logutov Automatic version worked for me, thanks. One thing - I've got an error when running powershell because it tried to load profile and some remote stuff which is disabled without signing. So adding -noprofile before -Command does the trick for me. Now it's all working without issues.
S Feb 27 at 16:57 history edited Giacomo1968 CC BY-SA 4.0
Per JHixson's comment, the startup script should include `sudo`. Also added a comment to show this script's been applied (to get over the 6 char edit limit, and so this doesn't get forgotten)
S Feb 27 at 16:57 history suggested JohnLBevan CC BY-SA 4.0
Per JHixson's comment, the startup script should include `sudo`. Also added a comment to show this script's been applied (to get over the 6 char edit limit, and so this doesn't get forgotten)
Feb 27 at 16:16 review Suggested edits
S Feb 27 at 16:57
Jan 23 at 4:12 comment added JHixson two things to note about the automated answer: it should be clear that script has been specifically created for cisco any connect, and needs to be modified if you are using another VPN provider, such as Palo Alto Global Protect. for that example you would replace Cisco AnyConnect* with PANGP* second, the script in /etc/profile.d needs to have sudo added to it. profile.d runs as the user logging in, and the script needs to be invoked with elevated permissions. This won't require a password input thanks to the step taken previously in sudoers
Jan 10 at 23:25 comment added girorme thanks @Kraego i love you man :)
Oct 5, 2023 at 9:06 review Suggested edits
Oct 5, 2023 at 10:44
Aug 17, 2023 at 12:39 comment added pak Why would I get "/bin/vpn-dns.sh: line 11: /etc/resolv.conf: Permission denied" when trying this script?
Jan 11, 2023 at 12:07 history edited Kraego CC BY-SA 4.0
deleted 64 characters in body
Jan 11, 2023 at 11:51 history edited Kraego CC BY-SA 4.0
added 1641 characters in body
Dec 8, 2022 at 4:03 comment added BugSquanch I just want to add that this is not necessarily limited to Cisco AnyConnect. This solution also works when connected through nordvpn.
Nov 4, 2022 at 11:58 comment added Anders_K I'm sure it is my own fault, but I cannot get the workaround to work. It is frustrating that Microsoft still hasn't fixed this.
Aug 26, 2022 at 7:37 comment added Kraego That's why resolve.conf generation is disabled in step 2
Aug 26, 2022 at 4:20 comment added Jayan /etc/wsl.conf change mentioned here has no real use . The resolv.conf will be recreated. [WSL 2 keeps overwriting resolv.conf ](github.com/microsoft/WSL/issues/5420). The status says closed but I had to use work around mentioned in the same page
Aug 23, 2022 at 6:13 comment added Jayan gist.githubusercontent.com/MatMercer/… captures this. I had to delete a dangling reference to /etc/resolve.conf ; and use absolute path to poweshell.exe
Feb 6, 2022 at 13:06 comment added mrexodia If you want to see the existing interface metrics you can use the PowerShell command Get-NetIPInterface
Jan 24, 2022 at 9:48 comment added Timo Can someone tell me what this does and why this is working? Is it a routing issue? How would one automate this to work automatically? (windows noob)
Dec 31, 2021 at 0:21 comment added Frank Wang This solution helped me! I didn't succeed using corporate DNS server found by nslookup but simply filling Google DNS server 8.8.8.8 in /etc/resolv.conf worked.
Sep 8, 2021 at 17:01 history edited Kraego CC BY-SA 4.0
added 354 characters in body
Jul 30, 2021 at 8:40 history edited Kraego CC BY-SA 4.0
added 737 characters in body
Jul 29, 2021 at 19:50 history edited Kraego CC BY-SA 4.0
added 74 characters in body
Jul 29, 2021 at 12:36 review First posts
Jul 30, 2021 at 14:21
Jul 29, 2021 at 12:34 history answered Kraego CC BY-SA 4.0