Closed mgp25 closed 3 years ago
Issues go stale after 90 days of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
comment.
Stale issues will be closed after an additional 30 days of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen
comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked
Expected behavior
When connected to a VPN in the host, docker container using nmap should be able to perform the network analysis.
Actual behavior
When connected to a VPN in the host, docker container using nmap is unable to make a network analysis. It seems nmap is crafting some network packet that makes a bottleneck in the docker network making it imposible to do any further analysis with that container on any interface. After a while, the container becomes network responsive again, but it is only able to make requests to the default interface, when done to an IP running a specific service on the VPN, the same issue will occur.
Information
Diagnostic logs
Docker for Mac:
3.0.3
, also happened in prior releasesSteps to reproduce the behavior
For reproducing this issue you can use any of these Dockerfiles:
Or:
I am connected to the HackTheBox VPN, I guess any VPN should work for this. The VPN has the following configuration:
I am using an alias for running the container:
alias nmapautomator='docker run -it --rm -v $(pwd):/data nmapautomator'
Test on the default interface (OK!):
Test on an IP in the VPN (OK!):
Test an IP which is running a service that makes nmap craft some packet that makes a bottleneck in the docker network:
Notice how much time this took!
102.25 seconds
After running this test, if I try to do any of the tests we did before, it will fail:Time increased in both cases and neither of them are working now. Going inside the container:
Any connection now is unreachable in the docker container and after a while it becomes reacheable again. Trying to restart the docker in this state makes the docker app stuck in
"Docker desktop is starting..."
I have the default docker network configuration and no modifications were applied to them:
I run the nmap which makes the self-DoS/bottlenick with higher verbosity leve:
Attached an image of the CPU usage, which seems
com.docker.backend
might be the problem here. It stays like that even when the execution finished.Best regards