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
Access to tun/tap devices so we could use openvpn/qemu inside of "bash" - that would be awesome!
Reacted by Navid Rahimi, Nathan Henderson, Ivan Bolsunov, Tom Raganowicz, fenchu, Fredrik Wahlberg, Lukas Levin, Jason Flaks, Anton Balandin, gleiam and 5 more
Krzysztof Antczak (@krzysztofantczak) -- thanks for commenting! This sounds related to #416 ; do the comments there help you out? Not a fix, but at least a workaround.
For openVPN, I think starting it on Windows should usually result in WSL using its connection.
If WSL is correctly using the Windows VPN (via passing connections off to Windows) the next issue is likely DNS resolution, since WSL will likely be set to use the original Windows DNS resolver, while the Windows VPN is likely to change that setting on the Windows side, and the original resolvers as set in /etc/resolve.conf are either blocked by the VPN or don't know about hosts on a private network on the VPN. In other words, the problem is not just enumeration or management of linux interfaces, but proper handling of DNS resolution (to say nothing of WINS).
As for qemu depending on tun/tap: it could probably get by just using the WSL network connection like everything else (that is, if it doesn't have to enumerate network interfaces or successfully complete a tun/tap installation or change the linux firewall or other things that aren't implemented yet).
Again, workarounds or descriptions of WSL shortcomings. The WSL problems definitely exist. But much of the interface difficulty is made worse because /etc/resolv.conf does not change in real time as resolver and/or routing settings on the Windows side change. Just implementing network interfaces on WSL is only part of the problem, unless WSL starts doing all of its own networking independent of Windows.
rodrymbo yes, i understand, in fact it works pretty well - windows qemu host is accessible inside WSL etc. however i'd like to keep my dev stack tight in place. I'm developing a system which uses local VM's, running ie. vbox/vagrant/qemu on windows and ie. my GO stack apps in WSL generates few awkward moments (i'm also manipulating VMs and their settings thru my stack and it seems there's no libvirt server available for windows atm.). And i totally get it that i'll probably need to wait for it to work as we all would like to. Anyway this project looks really, really awesome as it is right now ;-)
If you have a VPN connection in Windows, there are currently issues with DNS resolution from bash. We are actively working to resolve that. But, at this time we do not have any plans of supporting VPN from bash. If that is important for you, please help us prioritize by casting your vote in our user voice page. Also see #874
Yeah, people seem to ignoring the fact, VPN was just an example. I'd like to just use the power of tun/tap devices, i didn't mean VPN-only use case. So, it seems #874 should solve that for me. DNS issue seems not even minor here ;-)
Activity
aseering commentedon Aug 22, 2016
Krzysztof Antczak (@krzysztofantczak) -- thanks for commenting! This sounds related to #416 ; do the comments there help you out? Not a fix, but at least a workaround.
ericblade commentedon Aug 22, 2016
Also related to #915 ..
rodrymbo commentedon Aug 22, 2016
For
openVPN, I think starting it on Windows should usually result in WSL using its connection.If WSL is correctly using the Windows VPN (via passing connections off to Windows) the next issue is likely DNS resolution, since WSL will likely be set to use the original Windows DNS resolver, while the Windows VPN is likely to change that setting on the Windows side, and the original resolvers as set in
/etc/resolve.confare either blocked by the VPN or don't know about hosts on a private network on the VPN. In other words, the problem is not just enumeration or management of linux interfaces, but proper handling of DNS resolution (to say nothing of WINS).As for
qemudepending on tun/tap: it could probably get by just using the WSL network connection like everything else (that is, if it doesn't have to enumerate network interfaces or successfully complete a tun/tap installation or change the linux firewall or other things that aren't implemented yet).Again, workarounds or descriptions of WSL shortcomings. The WSL problems definitely exist. But much of the interface difficulty is made worse because
/etc/resolv.confdoes not change in real time as resolver and/or routing settings on the Windows side change. Just implementing network interfaces on WSL is only part of the problem, unless WSL starts doing all of its own networking independent of Windows.krzysztofantczak commentedon Aug 22, 2016
rodrymbo yes, i understand, in fact it works pretty well - windows qemu host is accessible inside WSL etc. however i'd like to keep my dev stack tight in place. I'm developing a system which uses local VM's, running ie. vbox/vagrant/qemu on windows and ie. my GO stack apps in WSL generates few awkward moments (i'm also manipulating VMs and their settings thru my stack and it seems there's no libvirt server available for windows atm.). And i totally get it that i'll probably need to wait for it to work as we all would like to. Anyway this project looks really, really awesome as it is right now ;-)
sunilmut commentedon Nov 19, 2016
If you have a VPN connection in Windows, there are currently issues with DNS resolution from bash. We are actively working to resolve that. But, at this time we do not have any plans of supporting VPN from bash. If that is important for you, please help us prioritize by casting your vote in our user voice page. Also see #874
krzysztofantczak commentedon Nov 26, 2016
Yeah, people seem to ignoring the fact, VPN was just an example. I'd like to just use the power of tun/tap devices, i didn't mean VPN-only use case. So, it seems #874 should solve that for me. DNS issue seems not even minor here ;-)
gengjiawen commentedon May 25, 2020
Anyone tried this on WSL 2 ?
gengjiawen commentedon May 25, 2020
Works in WSL 2, just verified. Cheers 🍻