Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS requests from WSL can fail with dnsTunneling #1629

Closed
Marc05 opened this issue Jul 20, 2024 · 5 comments
Closed

DNS requests from WSL can fail with dnsTunneling #1629

Marc05 opened this issue Jul 20, 2024 · 5 comments
Labels
bug TYPE: a report on something that isn't working stale ATTRIBUTE: this issue has not had recent activity

Comments

@Marc05
Copy link

Marc05 commented Jul 20, 2024

I've noticed that some connections fail under Windows Subsystem for Linux (version 2.2.4.0) when Portmaster is running.

I can reproduce it with the following python script -running this script will block the terminal session until the process is killed:

# test.py
import urllib.request
try:
   urllib.request.urlretrieve("http://www.python.org/")
except Exception as e:
   print(e)

Some debugging shows the following while using Portmaster:

$ sudo strace -f -e trace=network -s 10000 python3 ./test.py 
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 3
setsockopt(3, SOL_IP, IP_RECVERR, [1], 4) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.255.255.254")}, 16) = 0
sendmmsg(3, [{msg_hdr={msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="c\356\1\0\0\1\0\0\0\0\0\0\3www\6python\3org\0\0\1\0\1", iov_len=32}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, msg_len=32}, {msg_hdr={msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\27\351\1\0\0\1\0\0\0\0\0\0\3www\6python\3org\0\0\34\0\1", iov_len=32}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, msg_len=32}], 2, MSG_NOSIGNAL) = 2
recvfrom(3, "\27\351\203\200\0\1\0\0\0\0\0\0\3www\6python\3org\0\0\34\0\1", 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.255.255.254")}, [28 => 16]) = 32
socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.255.255.254")}, 16) = 0
^Cstrace: Process 32501 detached
@Marc05 Marc05 added the bug TYPE: a report on something that isn't working label Jul 20, 2024
@Raphty
Copy link
Member

Raphty commented Jul 22, 2024

WSL is considered a VM and is therefore still out of scope #166

@Marc05
Copy link
Author

Marc05 commented Jul 22, 2024

I'm aware VMs are not supported; I opened the issue mainly for awareness. Is there a better place to report these?

I wasn't able to fix this in Portmsater even after disabling Block Secure DNS Bypassing. I was able to work around the issue by disabling dnsTunneling in WSL.

@Marc05 Marc05 changed the title Some WSL connections fail DNS requests from WSL can fail with dnsTunneling Jul 22, 2024
@Raphty
Copy link
Member

Raphty commented Jul 22, 2024

I think this here is a good place, I just wanted to manage expectations 😅

Copy link

This issue has been automatically marked as inactive because it has not had activity in the past two months.

If no further activity occurs, this issue will be automatically closed in one week in order to increase our focus on active topics.

@github-actions github-actions bot added the stale ATTRIBUTE: this issue has not had recent activity label Sep 24, 2024
Copy link

github-actions bot commented Oct 1, 2024

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.

If the issue has not been resolved, you can find more information in our Wiki or continue the conversation on our Discord.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TYPE: a report on something that isn't working stale ATTRIBUTE: this issue has not had recent activity
Projects
None yet
Development

No branches or pull requests

2 participants