framework/Resources/Scripts/security_rules.ps1

function SetSecurityRules {
    New-NetFirewallRule -DisplayName "NCache-In" -Direction Inbound -Action Allow `
        -Protocol TCP -LocalPort 9800, 8250-8260, 7800-7900, 8300-8400, 9900, 10000-11000
    New-NetFirewallRule -DisplayName "NCache-Out" -Direction Outbound -Action Allow `
        -Protocol TCP -LocalPort 7800-7900, 10000-11000
}

SetSecurityRules