有以下二種方式做設定和修改:
1、使用
netsh
command
2、使用answer file
一、To configure the Firewall interactively
1.
At a Standard 7 command prompt
on the device, type the following:
Netsh
The Netsh tool starts.
At the Netsh prompt you can run any firewall command interactively.
For more information about the firewall commands and settings available in the
Netsh tool, at a Standard 7 command prompt, type
Netsh firewall /?
.
2.
At the Netsh prompt, do any of
the following:
- Add
a new incoming firewall rule to enable Windows Messenger
netsh advfirewall firewall add rule name="allow messenger" dir=in program="C:\Program Files\Messenger\Msmsgs.exe" action=allow
- Add
a new outgoing firewall rule to block port 80
netsh advfirewall firewall add rule name="allow80" protocol=TCP
dir=out localport=80 action=block
- Turn
the firewall off when the domain profile is active
netsh advfirewall domainprofile state off
- Enable
an existing rule
netsh advfirewall firewall set rule group="Remote Desktop" new enable=yes
- Log
dropped connections on the public profile
netsh advfirewall set publicprofile logging droppedconnections enable
- Change
the maximum log file size to 16 MB on the private profile
netsh advfirewall set privateprofile logging maxfilesize 16384