Skip to content

Commit a0fe7a7

Browse files
committed
refine ICMP commands
1 parent 23767c8 commit a0fe7a7

File tree

1 file changed

+29
-4
lines changed
  • src/content/docs/cloudflare-one/connections/connect-networks/troubleshoot-tunnels

1 file changed

+29
-4
lines changed

src/content/docs/cloudflare-one/connections/connect-networks/troubleshoot-tunnels/common-errors.mdx

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,29 @@ To ping an IP address behind Cloudflare Tunnel, your system must allow ICMP traf
142142
143143
<Tabs> <TabItem label="Linux" icon="linux">
144144
145-
1. Ensure that `ping_group_range` includes the Group ID (GID) of the user running `cloudflared`.
145+
1. Ensure that `ping_group_range` includes the Group ID (GID) of the user running `cloudflared`:
146146
147-
1. To get the Group ID of the user, run `id -g`.
148-
2. To verify the Group IDs that are allowed to use ICMP:
147+
a. Find the user that owns the `cloudflared` process:
148+
149+
```sh
150+
ps -aux | grep cloudflared
151+
```
152+
153+
```sh output
154+
johndoe 407 0.8 1.7 1259904 35296 ? Ssl 21:02 0:00 /usr/bin/cloudflared --no-autoupdate tunnel run --token eyJhI...
155+
```
156+
157+
b. Get the Group ID of the `cloudflared` user:
158+
159+
```sh
160+
id -g johndoe
161+
```
162+
163+
```sh output
164+
10001
165+
```
166+
167+
c. Determine the Group IDs that are allowed to use ICMP:
149168
150169
```sh
151170
sudo sysctl net.ipv4.ping_group_range
@@ -155,10 +174,16 @@ To ping an IP address behind Cloudflare Tunnel, your system must allow ICMP traf
155174
net.ipv4.ping_group_range= 0 10000
156175
```
157176
158-
3. Either add the user to a group within that range, or update the range to encompass a group the user is already in. To update `ping_group_range`:
177+
d. Either add the user to a group within that range, or update the range to encompass a group the user is already in. To update `ping_group_range`:
159178
160179
```sh
161180
echo 0 10001 | sudo tee /proc/sys/net/ipv4/ping_group_range
181+
```
182+
183+
To make the change persist on reboot, update your `systcl` parameters:
184+
185+
```sh
186+
echo "net.ipv4.ping_group_range = 0 10001" | sudo tee /etc/sysctl.d/99-cloudflared.conf
162187
```
163188
164189
2. If you are running multiple network interfaces (for example, `eth0` and `eth1`), configure `cloudflared` to use the external Internet-facing interface:

0 commit comments

Comments
 (0)