Share via


Windows 10 VPN wont work when firewall is enabled

Question

Monday, December 16, 2019 10:22 AM

Hi!

So i have a problem with Windows 10 Built-in VPN.

Everytime i connect the VPN it disconnects my Wifi / ethernet connection. 
When i disable Windows Firewall it works like a charm.

Do you guys have any workaround / solve to this?

has anyone had this same problem before?

Cheers!

All replies (10)

Monday, December 16, 2019 11:46 AM

Hello,

You can try allowing VPN via Firewall and see if that helps:

https://www.kapilarya.com/windows-firewall-has-blocked-some-features-of-this-app-windows-10

Hope this helps!

Note: Included link in this reply refers to blog post by a trusted Microsoft MVP.

Microsoft MVP (Windows and Devices for IT)

Windows Insider MVP

Windows Help & Support [www.kapilarya.com]


Tuesday, December 17, 2019 11:30 AM

Thank you for helping me out.

Unfortunately this doesn't solve my problem, because im using Windows 10 built-in VPN :(

Do you have any other ideas for this?

Thank you!


Tuesday, December 17, 2019 11:38 AM

Hi Vesa,

The built-in VPN has multiple selection of protocol, which protocol you using? by default it dials iKEV2 protocol.

Selection of Protocol is also depends on your VPN server.

Regards,
Jebran.


Tuesday, December 17, 2019 11:54 AM

Hi!

sorry for not mentioning that earlier. Protocol is iKEV2! :)

Thank you

-Vesa


Wednesday, December 18, 2019 7:13 AM

Hi ,

Based on my understanding , when you connect to VPN then you are not unable to connect to the Internet. Is that right?

Please feel free to let me know if my understanding is wrong.

Please make sure Use default gateway on remote network is unchecked.

Right click on your VPN connection click on Properties, next Networking tab, next click on Internet Protocol Version 4.Next click on Advanced.

Best Regards,

Candy

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]   


Wednesday, December 18, 2019 7:17 AM

Hi,

Thats correct.

When i uncheck the "use default gateway on remote network"option, it does not disconnect my internet connection anymore, but VPN doesn't work at all. I cant ping anything in internal network (where i want to connect)

-Vesa


Wednesday, December 18, 2019 7:35 AM

Hi Vesa,

It seems that the problem is that Windows 10 firewall need to be opened to properly function.

IKEv2 VPN need to open the following ports:

Protocol: ESP, Port: 50 
Protocol: UDP, Port: 500
Protocol: UDP, Port: 1701
Protocol: UDP, Port: 4500

Please open these ports on firewall then check if you could access internal network.

Best Regards,

Candy

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]   


Friday, December 20, 2019 6:14 AM

Hi ,

Just checking in to see if the information provided was helpful.

Please let us know if you would like further assistance.

Best Regards,

Candy

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]   


Friday, December 20, 2019 6:22 AM

Hi Candy,

Thank you for Checking up with me! 
I Just tried this fix, but it didn't solve my problem. :(

Sorry for late reply. I've been super busy with other projects :)

Thank you for helping me!

-Vesa


Thursday, December 26, 2019 6:06 AM

Hi ,

This problem is really strange. I need do more research on it and will get back to you as soon as possible.

If you have any updates during this process, please feel free to let me know.

Best Regards,

Candy

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]