for-win icon indicating copy to clipboard operation
for-win copied to clipboard

sharing drive throws firewall block error with windows native docker when cisco anyconnect VPN is ON

Open sugun999 opened this issue 9 years ago • 64 comments

Expected Behaviour:

Filesharing should work even corporate cisco anyconnect VPN is ON

Actual behaviour:

Sharing drive C fails by throwing firewall block detected error

Information:

Installed native docker on windows 10 enterprise version 10.0.14393 Also, F-secure is installed on my laptop and opened necessary network firewall openings with f-secure (to allow all traffic between 10.0.75.1 & 10.0.75.2) Everything works fine as long as the corporate cisco anyconnect VPN is NOT ON.

But as soon as corporate cisco anyconnect vpn is ON, sharing drive C fails by throwing firewall detected error.

As you know, when switching to corporate cisco anyconnect vpn, routing tables gets modified and it looks that filesharing is not working.

Is there any hack for this issue?

sugun999 avatar Dec 28 '16 14:12 sugun999

I have the same problem.

When I run "docker run --rm -v c:/Users:/data alpine ls /data" while Cisco AnyConnect Secure Mobility Client Version 4.3.02039 is logged in. I get this back.

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: mkdir /c: file exists.

Diag ID: 8CFF8C5F-5384-42B5-BDB0-704D32546F3D/2016-12-29_12-09-25

johnrb2 avatar Dec 28 '16 19:12 johnrb2

Me too.

stuft2 avatar Dec 28 '16 22:12 stuft2

Hi, which version of Docker for Windows are you using ? can you try latest beta ?

simonferquel avatar Jan 02 '17 14:01 simonferquel

Hi Simonferquel,

Thanks for the reply. I tried with both stable channel (1.12.5) & beta channel (1.13.0-rc4) and the end result is the same error which is "Firewall blocking file sharing between windows and the container. See documentation for more info"

Please note that all "file and printer sharing" inbound rules of windows firewall settings are enabled for private, public and domain profiles on my laptop. And also, windows firewall is turned off for all private, public and domain profiles.

Please help us troubleshooting this issue.

sugun999 avatar Jan 03 '17 06:01 sugun999

Okay so what I have found out from Glen Sawyer that the vpn doesn't like the IP using 10.0.75.1 most likely because it is used by the business already.

You need to change the network to 192.168.X.X

[NOTE: You may need to play around with the number so it doesn't interfere with your home network]

untitled

johnrb2 avatar Jan 03 '17 18:01 johnrb2

Hi,

Thanks for the info. Instead of trying all the numbers (1-254) for IP part, is there any specific rule/criteria in choosing the number, so that it works?

sugun999 avatar Jan 04 '17 21:01 sugun999

You just don't want it to be one that is already in use by something else.

My friend says he doesn't use 192.168.1.X for his because it is used for his network devices at home.

http://trendblog.net/ever-wondered-use-192-168-x-x-ip-addresses-home/

johnrb2 avatar Jan 04 '17 21:01 johnrb2

Hi,

I tried with several free network IPs but still docker throws same error when trying to share C drive.

sugun999 avatar Jan 05 '17 08:01 sugun999

I had to get a computer with an operating system that was the full version of Windows 10 Pro instead of the companies modified version of Windows 10 and my computer had to be off the company's domain. It could be an issue with that. I am not an official docker worker. But I would suggest trying docker for windows beta and see if it fixes it and uploading a diagnostic file and copy and sharing the reference with your issue.

johnrb2 avatar Jan 05 '17 20:01 johnrb2

@johnrb2 thanks for following up - it'd be very useful for us to learn what exactly blocked Docker on a normally configured machine.

friism avatar Jan 05 '17 20:01 friism

Hi Docker team, Any workaround to get sharing drive works even with cisco anyconnect vpn?

sugun999 avatar Jan 12 '17 07:01 sugun999

@sugun999 if possible, can you upload a diagnostic dump from the app and post the id here?

friism avatar Jan 12 '17 16:01 friism

Hi friism,

Thanks for the reply. Before sending dump, Could you please let me know, what diagnostic report contains? Will the docker collects any security info?

sugun999 avatar Jan 12 '17 18:01 sugun999

@sugun999 the diagnostic dump is pretty comprehensive to help us fully debug problems on user systems. Access to the dumps is limited to engineers working on Docker for Mac and Windows, and we handle the dumps with care.

If you're not comfortable using the diagnostic feature, please access the logs after encountering this problem, remove any sensitive info and paste the relevant log snippet in this issue.

friism avatar Jan 12 '17 21:01 friism

HI Friism,

Below is log excerpt which is logged when trying to share drive C. Please note that F-secure software with my laptop, is not blocking anything. I added rule to allow all traffic from any IPv4 which is working without VPN.

Could you please take a look at this and provide solution for this issue why filesharing doesn't work with VPN?

log_excerpt.txt

sugun999 avatar Jan 13 '17 15:01 sugun999

From the log, I see that you changed the IP settings of the VM (it says your host has IP 192.168.230.1, so your VM should have 192.168.230.2). From the following lines, I see that the VM cannot reach port 445 on 192.168.230.1. By any chance, can you make sure that the IP settings you chose do not conflict with the VPN connection IP ? (or just dump your ipconfig /all here)

simonferquel avatar Jan 13 '17 16:01 simonferquel

Hi Simonferquel,

Before or after opening VPN, I do see that "Ethernet adapter vEthernet (DockerNAT) 2" has

IPv4 Address. . . . . . . . . . . : 192.168.230.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0

Ofcourse there is new virtual adapter gets created with VPN is ON and it gets own IPv4 address 141.19x.xxx.xxx which is not conflicting with above docker Ethernet adapter IP address.

sugun999 avatar Jan 13 '17 17:01 sugun999

Hi,

Any ideas?

sugun999 avatar Jan 17 '17 16:01 sugun999

Unfortunately no. It seems that Cisco AnyConnect include some kind of firewall blocking port 445. We'll need to investigate more thoroughly, but we need the proper Cisco infrastructure to test it.

simonferquel avatar Jan 19 '17 11:01 simonferquel

I did what @johnrb2 did and it worked just fine for me. I don't think Cicso anyConnect has to block port 445 to work properly. If it did, then it wouldn't be working for me or johnrb2.

stuft2 avatar Jan 20 '17 03:01 stuft2