LevT:
KLASS
WildGoblin
Цитата:
Рекомендую Powershell DSC
Код:
Конфигурацию (настройку, собранную из таких ресурсов) можно и нужно хранить на guthub
И пожалуй что даже нужно.
KLASS
WildGoblin
Цитата:
Теперь надо договорится в каком виде будем шарить правила. |
Рекомендую Powershell DSC
Код:
C:\Windows\system32> install-module xNetworking -Force C:\Windows\system32> get-dscResource -Module xNetworking ImplementedAs Name ModuleName Version Properties ------------- ---- ---------- ------- ---------- PowerShell xDefaultGatewayAddress xNetworking 3.2.0.0 {AddressFamily, InterfaceAlias, ... PowerShell xDHCPClient xNetworking 3.2.0.0 {AddressFamily, InterfaceAlias, ... PowerShell xDnsClientGlobalSetting xNetworking 3.2.0.0 {IsSingleInstance, DependsOn, De... PowerShell xDnsConnectionSuffix xNetworking 3.2.0.0 {ConnectionSpecificSuffix, Inter... PowerShell xDNSServerAddress xNetworking 3.2.0.0 {Address, AddressFamily, Interfa... PowerShell xFirewall xNetworking 3.2.0.0 {Name, Action, Authentication, D... PowerShell xHostsFile xNetworking 3.2.0.0 {HostName, DependsOn, Ensure, IP... PowerShell xIPAddress xNetworking 3.2.0.0 {InterfaceAlias, IPAddress, Addr... PowerShell xNetAdapterBinding xNetworking 3.2.0.0 {ComponentId, InterfaceAlias, De... PowerShell xNetAdapterRDMA xNetworking 3.2.0.0 {Name, DependsOn, Enabled, PsDsc... PowerShell xNetBIOS xNetworking 3.2.0.0 {InterfaceAlias, Setting, Depend... PowerShell xNetConnectionProfile xNetworking 3.2.0.0 {InterfaceAlias, DependsOn, IPv4... PowerShell xNetworkTeam xNetworking 3.2.0.0 {Name, TeamMembers, DependsOn, E... PowerShell xNetworkTeamInterface xNetworking 3.2.0.0 {Name, TeamName, DependsOn, Ensu... PowerShell xRoute xNetworking 3.2.0.0 {AddressFamily, DestinationPrefi... C:\Windows\system32> get-dscResource xFirewall -Syntax xFirewall [String] #ResourceName { Name = [string] [Action = [string]{ Allow | Block | NotConfigured }] [Authentication = [string]{ NoEncap | NotRequired | Required }] [DependsOn = [string[]]] [Description = [string]] [Direction = [string]{ Inbound | Outbound }] [DisplayName = [string]] [DynamicTransport = [string]{ Any | ProximityApps | ProximitySharing | WifiDirectDevices | WifiDirectDisplay | WifiD irectPrinting }] [EdgeTraversalPolicy = [string]{ Allow | Block | DeferToApp | DeferToUser }] [Enabled = [string]{ False | True }] [Encryption = [string]{ Dynamic | NotRequired | Required }] [Ensure = [string]{ Absent | Present }] [Group = [string]] [IcmpType = [string[]]] [InterfaceAlias = [string[]]] [InterfaceType = [string]{ Any | RemoteAccess | Wired | Wireless }] [LocalAddress = [string[]]] [LocalOnlyMapping = [bool]] [LocalPort = [string[]]] [LocalUser = [string]] [LooseSourceMapping = [bool]] [OverrideBlockRules = [bool]] [Owner = [string]] [Package = [string]] [Platform = [string[]]] [Profile = [string[]]] [Program = [string]] [Protocol = [string]] [PsDscRunAsCredential = [PSCredential]] [RemoteAddress = [string[]]] [RemoteMachine = [string]] [RemotePort = [string[]]] [RemoteUser = [string]] [Service = [string]] } |
Конфигурацию (настройку, собранную из таких ресурсов) можно и нужно хранить на guthub
И пожалуй что даже нужно.