Bug fix: network interfaces team.
This commit is contained in:
33
Unencrypted PS and Json files/20260515/PS/Firewall Rule.ps1
Normal file
33
Unencrypted PS and Json files/20260515/PS/Firewall Rule.ps1
Normal file
@@ -0,0 +1,33 @@
|
||||
# Create incoming rule for Ping
|
||||
New-NetFirewallRule -DisplayName "Ping" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -Action Allow
|
||||
|
||||
# Create incoming rule for CIW on Total Care PC
|
||||
New-NetFirewallRule -DisplayName "CIW Syslog" `
|
||||
-Direction Inbound `
|
||||
-Protocol UDP `
|
||||
-LocalPort 514 `
|
||||
-Action Allow `
|
||||
-Profile Private
|
||||
New-NetFirewallRule -DisplayName "CIW Email" `
|
||||
-Direction Inbound `
|
||||
-Protocol TCP `
|
||||
-LocalPort 25 `
|
||||
-Action Allow `
|
||||
-Profile Private
|
||||
|
||||
# Create outgoing rule for CIW on NVRs
|
||||
New-NetFirewallRule -DisplayName "CIW Email" `
|
||||
-Direction Outbound `
|
||||
-Protocol TCP `
|
||||
-LocalPort 25 `
|
||||
-RemotePort 25 `
|
||||
-Action Allow `
|
||||
-Profile Private,Public
|
||||
New-NetFirewallRule -DisplayName "CIW Syslog" `
|
||||
-Direction Outbound `
|
||||
-Protocol UDP `
|
||||
-LocalPort 514 `
|
||||
-RemotePort 514 `
|
||||
-Action Allow `
|
||||
-Profile Private,Public
|
||||
|
||||
Reference in New Issue
Block a user