Windows Firewall: Minimum Firewall Rules for Internet?


  1. Posts : 107
    Windows
       #1

    Windows Firewall: Minimum Firewall Rules for Internet?


    Does anyone who is familiar with Windows Firewall with Advanced Security know the minimum set of allowed Firewall Rules required for being able to browse the internet and stream videos, download files etc?

    Could you specify which Firewall Rules must be included and set to allow in order to browse websites, use HTTPS, FTP and to stream videos from sites like YouTube and DailyMotion?

    Also what's needed to enable DNS.

    Your assistance is really appreciated here..!
      My Computer


  2. Posts : 264
    Windows 10
       #2

    Outbound ports 80, 443 and 21. DNS is port 53.
      My Computer


  3. Posts : 5,452
    Windows 11 Home
       #3

    You can use live_tcp_udp_watch to watch the traffic and then create rules based on that.

    You will need svchost allowed for DNS (DNS Client service), Windows Updates, updating certificates, etc.
    Code:
    netsh advfirewall firewall add rule name="Svchost DNS" dir=out action=allow protocol=UDP remoteport=53 program="%WINDIR%\System32\svchost.exe"
    netsh advfirewall firewall add rule name="Svchost TCP" dir=out action=allow protocol=TCP remoteport=80,443 program="%WINDIR%\System32\svchost.exe"
    If DNS Client service is disabled, DNS will be required per each app, like for a browser for example:
    Code:
    netsh advfirewall firewall add rule name="Yandex DNS" dir=out action=allow protocol=UDP remoteip=156.154.70.2,156.154.71.2 remoteport=53 program="Z:\Yandex\YandexBrowser\Application\browser.exe"
    netsh advfirewall firewall add rule name="Yandex TCP" dir=out action=allow protocol=TCP remoteport=21,80,443 program="Z:\Yandex\YandexBrowser\Application\browser.exe"

      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:54.
Find Us




Windows 10 Forums