Skip to content

Commit

Permalink
Fixed examples for WAFPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenyAgafonchikov committed Mar 22, 2019
1 parent 7a5a276 commit 1d9a31b
Show file tree
Hide file tree
Showing 8 changed files with 742 additions and 766 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,69 +23,65 @@
"enabledState": "Enabled",
"mode": "Prevention"
},
"customRules": {
"rules": [
{
"customRules": [
{
"name": "Rule1",
"priority": 1,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"name": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negateCondition": false,
"matchValues": [
"192.168.1.0/24",
"10.0.0.0/24"
],
"transforms": []
}
{
"matchVariables": [
{
"variableName": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negationConditon": false,
"matchValues": [
"192.168.1.0/24",
"10.0.0.0/24"
],
"transforms": []
}
],
"action": "Block"
},
{
"name": "Rule2",
"priority": 2,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"name": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negateCondition": false,
"matchValues": [
"10.0.0.0/24"
],
"transforms": []
},
{
"matchVariables": [
{
"name": "RequestHeader",
"selector": "UserAgent"
}
],
"operator": "Contains",
"negateCondition": false,
"matchValues": [
"Windows"
],
"transforms": []
}
],
"action": "Block"
}
]
}
},
{
"name": "Rule2",
"priority": 2,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"variableName": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negationConditon": false,
"matchValues": [
"192.168.1.0/24"
]
},
{
"matchVariables": [
{
"variableName": "RequestHeader",
"selector": "UserAgent"
}
],
"operator": "Contains",
"negationConditon": false,
"matchValues": [
"Windows"
]
}
],
"action": "Block"
}
]
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,66 +24,65 @@
"enabledState": "Enabled",
"mode": "Prevention"
},
"customRules": {
"rules": [
{
"customRules": [
{
"name": "Rule1",
"priority": 1,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"name": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negateCondition": false,
"matchValues": [
"192.168.1.0/24",
"10.0.0.0/24"
]
}
{
"matchVariables": [
{
"variableName": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negationConditon": false,
"matchValues": [
"192.168.1.0/24",
"10.0.0.0/24"
],
"transforms": []
}
],
"action": "Block"
},
{
"name": "Rule2",
"priority": 2,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"name": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negateCondition": false,
"matchValues": [
"10.0.0.0/24"
]
},
{
"matchVariables": [
{
"name": "RequestHeader",
"selector": "UserAgent"
}
],
"operator": "Contains",
"negateCondition": false,
"matchValues": [
"Windows"
]
}
],
"action": "Block"
}
]
}
},
{
"name": "Rule2",
"priority": 2,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"variableName": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negationConditon": false,
"matchValues": [
"192.168.1.0/24"
]
},
{
"matchVariables": [
{
"variableName": "RequestHeader",
"selector": "UserAgent"
}
],
"operator": "Contains",
"negationConditon": false,
"matchValues": [
"Windows"
]
}
],
"action": "Block"
}
]
}
}
]
Expand Down
Loading

0 comments on commit 1d9a31b

Please sign in to comment.