Skip to content

Commit 5cbe6f1

Browse files
authored
[WAF] Update IPv6 addresses (#23502)
1 parent 32b7455 commit 5cbe6f1

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

src/content/docs/waf/tools/ip-access-rules/parameters.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ An IP Access rule will apply a certain action to incoming traffic based on the v
1919

2020
## IP range
2121

22-
| Type | Example value | Start of range | End of range | Number of addresses |
23-
| ---------------- | ---------------- | -------------- | ---------------------------------------- | -------------------------------------: |
24-
| IPv4 `/24` range | `192.0.2.0/24` | `192.0.2.0` | `192.0.2.255` | 256 |
25-
| IPv4 `/16` range | `192.168.0.0/16` | `192.168.0.0` | `192.168.255.255` | 65,536 |
26-
| IPv6 `/64` range | `2001:db8::/64` | `2001:db8::` | `2001:db8:0000:0000:ffff:ffff:ffff:ffff` | 18,446,744,073,709,551,616 |
27-
| IPv6 `/48` range | `2001:db8::/48` | `2001:db8::` | `2001:db8:0000:ffff:ffff:ffff:ffff:ffff` | 1,208,925,819,614,629,174,706,176 |
28-
| IPv6 `/32` range | `2001:db8::/32` | `2001:db8::` | `2001:db8:ffff:ffff:ffff:ffff:ffff:ffff` | 79,228,162,514,264,337,593,543,950,336 |
22+
| Type | Example value | Start of range | End of range | Number of addresses |
23+
| ----------------- | ---------------- | -------------- | ---------------------------------------- | -------------------------------------: |
24+
| IPv4 `/24` range | `192.0.2.0/24` | `192.0.2.0` | `192.0.2.255` | 256 |
25+
| IPv4 `/16` range | `192.168.0.0/16` | `192.168.0.0` | `192.168.255.255` | 65,536 |
26+
| IPv6 `/128` range | `2001:db8::/128` | `2001:db8::` | `2001:db8::` | 1 |
27+
| IPv6 `/64` range | `2001:db8::/64` | `2001:db8::` | `2001:db8:0000:0000:ffff:ffff:ffff:ffff` | 18,446,744,073,709,551,616 |
28+
| IPv6 `/48` range | `2001:db8::/48` | `2001:db8::` | `2001:db8:0000:ffff:ffff:ffff:ffff:ffff` | 1,208,925,819,614,629,174,706,176 |
29+
| IPv6 `/32` range | `2001:db8::/32` | `2001:db8::` | `2001:db8:ffff:ffff:ffff:ffff:ffff:ffff` | 79,228,162,514,264,337,593,543,950,336 |
2930

3031
## Country
3132

src/content/docs/waf/tools/lists/custom-lists.mdx

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,11 @@ For more information and examples, refer to [Use lists in expressions](/waf/tool
5555
List items in custom lists with IP addresses must be in one of the following formats:
5656

5757
- Individual IPv4 addresses
58+
- Individual IPv6 addresses
5859
- IPv4 CIDR ranges with a prefix from `/8` to `/32`
59-
- IPv6 CIDR ranges with a prefix from `/12` to `/64`
60+
- IPv6 CIDR ranges with a prefix from `/12` to `/128`
6061

61-
You can combine individual addresses and CIDR ranges in the same list.
62-
63-
:::note
64-
65-
To specify an IPv6 address, enter it as a CIDR range with a `/64` prefix, the largest supported prefix for IPv6 CIDR ranges.
66-
67-
For example, instead of `2001:db8:6a0b:1a01:d423:43b9:13c5:2e8f`, enter one of the following:
68-
69-
- `2001:db8:6a0b:1a01:0000:0000:0000:0000/64`
70-
- `2001:db8:6a0b:1a01::/64` (using the [double colon notation](https://tools.ietf.org/html/rfc5952#section-4.2))
71-
72-
The IPv6 address topology describes the last 64 bits as the host identifier. Matching on a `/128` prefix would identify a specific IPv6 address, but not the host in general. It would be possible for an attacker to change their specific IPv6 address from a single machine.
73-
74-
:::
62+
The same list can contain both individual addresses and CIDR ranges.
7563

7664
You can use uppercase or lowercase characters for IPv6 addresses in lists. However, when you save the list, uppercase characters are converted to lowercase.
7765

src/content/docs/waf/tools/lists/lists-api/json-object.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ The JSON object properties for a list item are defined as follows:
219219
Any of these formats can exist in the same custom list with IP addresses:
220220
<ul>
221221
<li>IPv4 address</li>
222-
<li>IPv6 (up to <code>/64</code>) address</li>
223-
<li>IPv4 ranges as <code>/32</code> through <code>/2</code> CIDRs</li>
224-
<li>IPv6 ranges as <code>/64</code> through <code>/4</code> CIDRs</li>
222+
<li>IPv6 address</li>
223+
<li>IPv4 ranges as <code>/8</code> through <code>/32</code> CIDRs</li>
224+
<li>IPv6 ranges as <code>/12</code> through <code>/128</code> CIDRs</li>
225225
</ul>
226226
</p>
227227
</td>

0 commit comments

Comments
 (0)