You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds custom firewall rules to a pre-existing GPO session.
4
+
5
+
.DESCRIPTION
6
+
This script is not intended to be run directly. Instead, its relative path should be specified in the Set-ADDSFirewallPolicy.json configuration file.
7
+
It is then executed by the main Set-ADDSFirewallPolicy.ps1 script.
8
+
9
+
.PARAMETERGPOSession
10
+
Specifies the network GPO session in which the rules are to be created. To load a GPO Session, use the Open-NetGPO cmdlet. To save a GPO Session, use the Save-NetGPO cmdlet.
11
+
12
+
.PARAMETERDomainControllerAddresses
13
+
List of domain controller IP addresses, between which replication traffic should be allowed.
14
+
15
+
.PARAMETERRemoteManagementAddresses
16
+
List of IP addresses from which inbound management traffic should be allowed. This list may optionally include the IP addresses of the domain controllers.
17
+
18
+
.PARAMETERAllAddresses
19
+
List of client IP adresses from which inbound traffic should be allowed. This list should include the IP addresses of the domain controllers and management systems.
20
+
21
+
.NOTES
22
+
Author: Michael Grafnetter
23
+
Version: 2.5
24
+
25
+
#>
26
+
27
+
#Requires -ModulesNetSecurity
28
+
#Requires -Version5
29
+
30
+
[CmdletBinding()]
31
+
param(
32
+
[Parameter(Mandatory=$true)]
33
+
[string] $GPOSession,
34
+
35
+
[ValidateNotNullOrEmpty()]
36
+
[string[]] $ClientAddresses=@('Any'),
37
+
38
+
[ValidateNotNullOrEmpty()]
39
+
[string[]] $ManagementAddresses=@('Any'),
40
+
41
+
[ValidateNotNullOrEmpty()]
42
+
[string[]] $DomainControllerAddresses=@('Any'),
43
+
44
+
[ValidateNotNullOrEmpty()]
45
+
[string[]] $RemoteManagementAddresses=@('Any'),
46
+
47
+
[ValidateNotNullOrEmpty()]
48
+
[string[]] $AllAddresses=@('Any')
49
+
)
50
+
51
+
# Not all cmdlets inherit the -Verbose parameter, so we need to explicitly override it.
<stringid="RPCStaticPorts_NETLOGON_Help">This policy setting allows you to configure a static port number for the Netlogon service on a domain controller.
21
21
22
22
If you enable this policy setting and specify a static port number, the Netlogon service will use that port for communication.
23
23
24
24
If you disable or do not configure this policy setting, the Netlogon service will use a dynamic port for communication.
25
25
26
-
Note that the NTDS service must be restarted for the new setting to become effective.</string>
26
+
Note that the Active Directory Domain Services (NTDS) must be restarted for the new setting to become effective.</string>
27
27
<stringid="RPCStaticPorts_NTFRS">Domain Controller: File Replication Service (FRS) static port</string>
28
28
<stringid="RPCStaticPorts_NTFRS_Help">This policy setting allows you to configure a static port number for the File Replication Service (FRS) on a domain controller.
29
29
30
30
If you enable this policy setting and specify a static port number, the FRS will use that port for communication.
31
31
32
32
If you disable or do not configure this policy setting, the FRS will use a dynamic port for communication.
33
33
34
-
Note that the File Replication Service must be restarted for the new setting to become effective.</string>
34
+
Note that the File Replication (NtFrs) service must be restarted for the new setting to become effective.</string>
<stringid="RPCStaticPorts_CertSvc_Help">This policy setting allows you to configure a static port number used by Active Directory Certificate Services to accept certificate requests.
37
+
38
+
If you enable this policy setting and specify a static RPC over TCP endpoint, the CA will use it for communication. The required format of the endpoint is "ncacn_ip_tcp,0,PortNumber". The port number is recommended to be between 1024 and 49151, e.g., "ncacn_ip_tcp,0,10509".
39
+
40
+
If you disable or do not configure this policy setting, the CA will use a dynamic port for RPC communication.
41
+
42
+
Note that the Active Directory Certificate Services (certSvc) must be restarted for the new setting to become effective.</string>
35
43
<stringid="DNS_Turn_Off_MulticastDNS">Turn off Multicast DNS (mDNS) client</string>
36
44
<stringid="DNS_Turn_Off_MulticastDNS_Help">This policy setting allows you to turn off the Multicast DNS (mDNS) client.
37
45
@@ -49,6 +57,9 @@ If you disable or do not configure this policy setting, the Multicast DNS (mDNS)
49
57
<presentationid="RPCStaticPorts_NTFRS">
50
58
<decimalTextBoxrefId="RPCStaticPorts_NTFRS_Value"defaultValue="38903">Static port number:</decimalTextBox>
0 commit comments