Answer the question
In order to leave comments, you need to log in
How to close all ports in windows 7?
How to close all ports in windows 7?
preferably by standard means without third-party software.
Answer the question
In order to leave comments, you need to log in
Unfortunately, I don’t know how to block all ports, but you can try using a dash, that is, 1-49151
command
netsh advfirewall firewall add rule dir=in action=block protocol=tcp localport=(port) name="Block_TCP-(port)
or you can spam this command in a batch file and change only the port
number.Software is easier.
Regular Windows firewall - a rule for incoming traffic - set to block.
You can also use external firewalls, for example, on a router.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question