Skip to content

Commit 876bcc6

Browse files
authored
Merge pull request #178563 from duongau/patch-1
AFD WAF - update match variable to socketaddr
2 parents 12971e5 + 20691e4 commit 876bcc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/web-application-firewall/afds/waf-front-door-configure-ip-restriction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Create an Azure Front Door profile by following the instructions described in [Q
5353
|Rule type |Match|
5454
|Priority |100|
5555
|Match type |IP address|
56-
|Match variable|RemoteAddr|
56+
|Match variable|SocketAddr|
5757
|Operation|Does not contain|
5858
|IP address or range|10.10.10.0/24|
5959
|Then|Deny traffic|
@@ -125,7 +125,7 @@ Next, add match condition to the rule:
125125

126126
```azurecli
127127
az network front-door waf-policy rule match-condition add \
128-
--match-variable RemoteAddr \
128+
--match-variable SocketAddr \
129129
--operator IPMatch \
130130
--values "ip-address-range-1" "ip-address-range-2" \
131131
--negate true \
@@ -190,7 +190,7 @@ Use the [New-AzFrontDoorWafMatchConditionObject](/powershell/module/az.frontdoor
190190
In the following example, replace *ip-address-range-1*, *ip-address-range-2* with your own range.
191191
```powershell
192192
$IPMatchCondition = New-AzFrontDoorWafMatchConditionObject `
193-
-MatchVariable RemoteAddr `
193+
-MatchVariable SocketAddr `
194194
-OperatorProperty IPMatch `
195195
-MatchValue "ip-address-range-1", "ip-address-range-2"
196196
-NegateCondition 1

0 commit comments

Comments
 (0)