62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
|
FirewallRules:
|
||
|
- Description: Rule A
|
||
|
Action: Block
|
||
|
Direction: Inbound
|
||
|
Program: ''
|
||
|
Port: '21-22,25'
|
||
|
Protocol: TCP
|
||
|
- Description: Rule B
|
||
|
Action: Allow
|
||
|
Direction: Inbound
|
||
|
Program: D:\MSSQL\sqlsvr.exe
|
||
|
Port: ''
|
||
|
Protocol: ''
|
||
|
FirewallProfiles:
|
||
|
- Name: Domain
|
||
|
Enabled: 'True'
|
||
|
Connections:
|
||
|
Inbound: Block
|
||
|
Outbound: Allow
|
||
|
Settings:
|
||
|
DisplayNotification: 'False'
|
||
|
ApplyLocalFirewallRules: 'True'
|
||
|
ApplyLocalConnectionSecurityRules: 'True'
|
||
|
Logging:
|
||
|
Name: '%SYSTEMROOT%\System32\Logfiles\Firewall\domainfw.log'
|
||
|
SizeLimit: 16384
|
||
|
LogDroppedPackets: 'True'
|
||
|
LogSuccessfullConnections: 'False'
|
||
|
- Name: Private
|
||
|
Enabled: 'True'
|
||
|
Connections:
|
||
|
Inbound: Block
|
||
|
Outbound: Allow
|
||
|
Settings:
|
||
|
DisplayNotification: 'False'
|
||
|
ApplyLocalFirewallRules: 'True'
|
||
|
ApplyLocalConnectionSecurityRules: 'True'
|
||
|
Logging:
|
||
|
Name: '%SYSTEMROOT%\System32\Logfiles\Firewall\privatefw.log'
|
||
|
SizeLimit: 16384
|
||
|
LogDroppedPackets: 'True'
|
||
|
LogSuccessfullConnections: 'False'
|
||
|
- Name: Public
|
||
|
Enabled: 'True'
|
||
|
Connections:
|
||
|
Inbound: Block
|
||
|
Outbound: Allow
|
||
|
Settings:
|
||
|
DisplayNotification: 'False'
|
||
|
ApplyLocalFirewallRules: 'True'
|
||
|
ApplyLocalConnectionSecurityRules: 'True'
|
||
|
Logging:
|
||
|
Name: '%SYSTEMROOT%\System32\Logfiles\Firewall\publicfw.log'
|
||
|
SizeLimit: 16384
|
||
|
LogDroppedPackets: 'True'
|
||
|
LogSuccessfullConnections: 'False'
|
||
|
|
||
|
# ---
|
||
|
# Variables:
|
||
|
# - Name: foo
|
||
|
# Expression: |
|
||
|
# Write-Host 'bar'
|