Skip to content

Commit

Permalink
No snat firewall policy (#12505)
Browse files Browse the repository at this point in the history
* Adding No SNAT feature support to firewall policy

* committing prettier-fix

* adding period at end of description to prevent failure for checks
  • Loading branch information
nikhilpadhye1 authored Jan 25, 2021
1 parent f7fa292 commit 7bcd5c9
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"swagger": "2.0",
"info": {
Expand Down Expand Up @@ -339,24 +338,24 @@
}
},
"Sku": {
"description": "The pricing tier of the web application firewall policy.",
"properties": {
"name": {
"description": "Name of the pricing tier.",
"enum": [
"Classic_AzureFrontDoor",
"Standard_AzureFrontDoor",
"Premium_AzureFrontDoor"
],
"type": "string",
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
"description": "The pricing tier of the web application firewall policy.",
"properties": {
"name": {
"description": "Name of the pricing tier.",
"enum": [
"Classic_AzureFrontDoor",
"Standard_AzureFrontDoor",
"Premium_AzureFrontDoor"
],
"type": "string",
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
}
}
}
},
"type": "object"
},
"type": "object"
},
"WebApplicationFirewallPolicyList": {
"description": "Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results.",
"properties": {
Expand Down Expand Up @@ -951,4 +950,4 @@
"description": "Name of the Resource group within the Azure subscription."
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
}
],
"firewalls": [],
"snat": {
"privateRanges": [
"IANAPrivateRanges"
]
},
"dnsSettings": {
"servers": [
"30.3.4.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
}
],
"firewalls": [],
"snat": {
"privateRanges": [
"IANAPrivateRanges"
]
},
"dnsSettings": {
"servers": [
"30.3.4.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
}
],
"firewalls": [],
"snat": {
"privateRanges": [
"IANAPrivateRanges"
]
},
"dnsSettings": {
"servers": [
"30.3.4.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"*.microsoft.com"
]
},
"snat": {
"privateRanges": [
"IANAPrivateRanges"
]
},
"dnsSettings": {
"servers": [
"30.3.4.5"
Expand Down Expand Up @@ -96,6 +101,11 @@
}
],
"firewalls": [],
"snat": {
"privateRanges": [
"IANAPrivateRanges"
]
},
"dnsSettings": {
"servers": [
"30.3.4.5"
Expand Down Expand Up @@ -172,6 +182,11 @@
}
],
"firewalls": [],
"snat": {
"privateRanges": [
"IANAPrivateRanges"
]
},
"dnsSettings": {
"servers": [
"30.3.4.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,10 @@
"description": "ThreatIntel Whitelist for Firewall Policy.",
"$ref": "#/definitions/FirewallPolicyThreatIntelWhitelist"
},
"snat": {
"description": "The private IP addresses/IP ranges to which traffic will not be SNAT.",
"$ref": "#/definitions/FirewallPolicySNAT"
},
"dnsSettings": {
"description": "DNS Proxy Settings definition.",
"$ref": "#/definitions/DnsSettings"
Expand Down Expand Up @@ -1146,6 +1150,19 @@
}
}
},
"FirewallPolicySNAT": {
"description": "The private IP addresses/IP ranges to which traffic will not be SNAT.",
"x-ms-discriminator-value": "FirewallPolicySNAT",
"properties": {
"privateRanges": {
"type": "array",
"description": "List of private IP addresses/IP address ranges to not be SNAT.",
"items": {
"type": "string"
}
}
}
},
"DnsSettings": {
"description": "DNS Proxy Settings in Firewall Policy.",
"x-ms-discriminator-value": "DnsSettings",
Expand Down

0 comments on commit 7bcd5c9

Please sign in to comment.