You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for making a great tool! I set up wsl-vpnkit via systemd and once I set it up I am able to access the external network e.g. pinging google.com works but I am not able to ssh to any of the machines on my internal network. Would appreciate any tips to resolve the issue!
Version details:
WSL version: 1.1.6.0
Windows version: 10.0.19044.2728
Ubuntu 22.04.2 LTS
Troubleshooting attempts:
I read the troubleshooting in #151 but it didn't seem to help my case which may be due to the troubleshooting steps playing out slightly different for me.
Using nslookup -type=A example.com gives the following output
➜ nslookup -type=A example.com 1.1.1.1
;; communications error to 1.1.1.1#53: timed out
;; communications error to 1.1.1.1#53: timed out
;; communications error to 1.1.1.1#53: timed out
;; no servers could be reached
Here are the contents of my /etc/wsl.conf, I've tried setting generateResolvConf to both true and false.
Since you can access external URLs fine, you probably need to set generateResolvConf=false and setup your own /etc/resolv.conf with your internal DNS.
Run Get-DnsClientServerAddress and Get-DnsClient in PowerShell to find any DNS servers and any suffix searches you might be using in Windows. You can test which DNS server to use with nslookup -type=A some.internal.address.domain DNS.SVR.IPA.DDR.
As a reference for others:
I found 4 DNS servers after running Get-DnsClientServerAddress in PowerShell that worked with nslookup -type=A example.com DNS.SVR.IPA.DDR
I added each of those to /etc/resolv.conf in the form of nameserver DNS.SVR.IPA.DDR
Running Get-DnsClient showed a truncated list of suffix searches so I ran (Get-DnsClientGlobalSetting).SuffixSearchList and added relevant suffix searches from there to /etc/resolv.conf in the form of search suffixsearch1 suffixsearch2 suffixsearch3
After doing this I was able to connect to internal machines/domains on my network.
Hello, thanks for making a great tool! I set up wsl-vpnkit via systemd and once I set it up I am able to access the external network e.g. pinging google.com works but I am not able to ssh to any of the machines on my internal network. Would appreciate any tips to resolve the issue!
Version details:
WSL version: 1.1.6.0
Windows version: 10.0.19044.2728
Ubuntu 22.04.2 LTS
Troubleshooting attempts:
I read the troubleshooting in #151 but it didn't seem to help my case which may be due to the troubleshooting steps playing out slightly different for me.
Using
nslookup -type=A example.com
gives the following outputWhile
nslookup -type=A example.com 1.1.1.1
givesHere are the contents of my
/etc/wsl.conf
, I've tried settinggenerateResolvConf
to bothtrue
andfalse
.journalctl logs:
The text was updated successfully, but these errors were encountered: