[Operation method] How to add inbound and outbound rules to windows firewall

illustrate

Note: To make a policy, it is necessary to understand the role of the policy. The inbound policy mainly controls the access rights of other hosts to this host, and the outbound policy mainly controls the access rights of this host to other hosts. Only by figuring out who wants to access whom, Only when the strategy is done can it take effect according to the intended purpose.


Note: For the method of opening the firewall, please refer to [Operation Method] How to open and close the firewall in windows

1. Inbound rules

1. Open the firewall and click "Advanced Settings"

insert image description here

2. Click "Inbound Rules" and then click "New Rule"

insert image description here

The following interface appears, and you can create a new rule as needed
insert image description here

3. Examples

For example, if you need to be remotely accessed to a shared file, you need to open your own port 445, and you can operate as follows

3.1 Select "Port"

insert image description here

3.2 Add ports that need to be released

insert image description here

3.3 Select the action as "Allow connection"

insert image description here

3.4 Select the application area, here I select all areas

insert image description here

2. Outbound rules

1. Click "Outbound Rules" and then click "New Rule"

insert image description here
The following interface appears, and you can create a new rule as needed
insert image description here

Other same inbound rules

Guess you like

Origin blog.csdn.net/qq_30054403/article/details/129266119