Skip to content

Commit 02795df

Browse files
committed
Update source IP
1 parent a658feb commit 02795df

File tree

5 files changed

+32
-21
lines changed

5 files changed

+32
-21
lines changed

src/content/docs/cloudflare-one/policies/gateway/egress-policies/index.mdx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ The country of the user making the request. <Render file="gateway/selectors/sour
145145

146146
### Source IP
147147

148-
<Render file="gateway/selectors/source-ip-net" />
148+
<Render
149+
file="gateway/selectors/source-ip"
150+
params={{ APIendpoint: "net.src.ip" }}
151+
/>
149152

150153
### Source Port
151154

@@ -256,20 +259,25 @@ Additionally, to use these selectors to filter traffic onboarded with WARP, you
256259

257260
2. In your WARP [device profile](/cloudflare-one/connections/connect-devices/warp/configure-warp/device-profiles/), configure your [Split Tunnel](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/) depending on the mode:
258261

259-
<Tabs> <TabItem label="Exclude IPs and domains">
262+
<Tabs>
263+
264+
<TabItem label="Exclude IPs and domains">
260265
1. [Remove the route](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/#remove-a-route) to the IP address `100.64.0.0/10` from your Split Tunnel exclude list.
261-
2. [Add routes](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/#add-a-route) to exclude the following IP addresses:
262-
- `100.64.0.0/12`
266+
2. [Add routes](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/#add-a-route) to exclude the following IP addresses: - `100.64.0.0/12`
263267
- `100.81.0.0/16`
264268
- `100.82.0.0/15`
265269
- `100.84.0.0/14`
266270
- `100.88.0.0/13`
267271
- `100.96.0.0/11`
268272

269-
</TabItem> <TabItem label="Include IPs and domains">
273+
</TabItem>
274+
275+
<TabItem label="Include IPs and domains">
270276
1. Add the required [Zero Trust domains](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/#cloudflare-zero-trust-domains) or [IP addresses](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/#cloudflare-zero-trust-ip-addresses) to your Split Tunnel include list.
271277
2. [Add a route](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/#add-a-route) to include the IP address `100.80.0.0/16`.
272278

273-
</TabItem> </Tabs>
279+
</TabItem>
280+
281+
</Tabs>
274282

275283
The WARP client must be set to _Gateway with WARP_ mode for traffic affected by these selectors to route correctly.

src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,10 @@ The country of the user making the request. <Render file="gateway/selectors/sour
598598

599599
### Source IP
600600

601-
| UI name | API example |
602-
| --------- | ---------------------------------- |
603-
| Source IP | `http.conn.src_ip == "10.0.0.0/8"` |
601+
<Render
602+
file="gateway/selectors/source-ip"
603+
params={{ APIendpoint: "http.conn.src_ip" }}
604+
/>
604605

605606
### URL
606607

src/content/docs/cloudflare-one/policies/gateway/network-policies/index.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,10 @@ The country of the user making the request. <Render file="gateway/selectors/sour
355355

356356
### Source IP
357357

358-
<Render file="gateway/selectors/source-ip-net" />
358+
<Render
359+
file="gateway/selectors/source-ip"
360+
params={{ APIendpoint: "net.src.ip" }}
361+
/>
359362

360363
### Source Port
361364

@@ -377,9 +380,7 @@ The country of the user making the request. <Render file="gateway/selectors/sour
377380
<Render file="gateway/comparison-operators" />
378381

379382
:::note
380-
381383
The _in_ operator allows you to specify IP addresses or networks using CIDR notation.
382-
383384
:::
384385

385386
## Value

src/content/partials/cloudflare-one/gateway/selectors/source-ip-net.mdx

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
params:
3+
- APIendpoint
4+
---
5+
6+
The originating IP address or addresses of a device proxied by Gateway.
7+
8+
| UI name | API example |
9+
| --------- | ----------------------------------------------------- |
10+
| Source IP | <code>{props.APIendpoint}[*] in \{10.0.0.0/8\}</code> |

0 commit comments

Comments
 (0)