New-AzFirewallNatRule
Bir Güvenlik Duvarı NAT Kuralı oluşturur.
Syntax
New-AzFirewallNatRule
-Name <String>
[-Description <String>]
[-SourceAddress <String[]>]
[-SourceIpGroup <String[]>]
-DestinationAddress <String[]>
-DestinationPort <String[]>
-Protocol <String[]>
[-TranslatedAddress <String>]
[-TranslatedFqdn <String>]
-TranslatedPort <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
New-AzFirewallNatRule cmdlet'i Azure Güvenlik Duvarı için bir NAT kuralı oluşturur.
Örnekler
Örnek 1: 10.1.2.3:80 hedefine 10.4.5.6:8080 hedefine sahip 10.0.0.0/24'ten tüm TCP trafiğini DNAT'ye bir kural oluşturma
New-AzFirewallNatRule -Name "dnat-rule" -Protocol "TCP" -SourceAddress "10.0.0.0/24" -DestinationAddress "10.1.2.3" -DestinationPort "80" -TranslatedAddress "10.4.5.6" -TranslatedPort "8080"
Bu örnek, 10.1.2.3:80 ile 10.4.5.6:8080 hedefine sahip 10.0.0.0/24 kaynaklı tüm trafiğin DNAT'sini oluşturacak bir kural oluşturur
Örnek 2
Bir Güvenlik Duvarı NAT Kuralı oluşturur. (otomatik olarak oluşturulmuş)
New-AzFirewallNatRule -DestinationAddress '10.0.0.1' -DestinationPort '443' -Name 'dnat-rule' -Protocol Any -SourceIpGroup <String[]> -TranslatedAddress '10.0.0.2' -TranslatedPort '8080'
Parametreler
-Confirm
Cmdlet'i çalıştırmadan önce sizden onay ister.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Bu kuralın isteğe bağlı açıklamasını belirtir.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationAddress
Kuralın hedef adresleri
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationPort
Kuralın hedef bağlantı noktaları
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Bu NAT kuralının adını belirtir. Ad, kural koleksiyonunun içinde benzersiz olmalıdır.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Protocol
Bu kural tarafından filtrelenecek trafiğin türünü belirtir. Desteklenen protokoller TCP ve UDP'dir. Özel bir "Any" değerine izin verilir, yani hem TCP hem de UDP ile eşleşir, ancak başka protokol yoktur.
Type: | String[] |
Accepted values: | Any, TCP, UDP |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SourceAddress
Kuralın kaynak adresleri
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SourceIpGroup
Kuralın kaynak ip grubu
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TranslatedAddress
Adres çevirisinin istenen sonucunu belirtir
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TranslatedFqdn
Bu NAT kuralı için çevrilmiş FQDN
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TranslatedPort
Bağlantı noktası çevirisinin istenen sonucunu belirtir
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Cmdlet çalıştırılıyorsa ne olacağını gösterir. Cmdlet çalıştırılmaz.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
None
Çıkışlar
İlişkili Bağlantılar
Azure PowerShell
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin