WisdomSky / Cloudflared-web

Cloudflared-web is a docker image that packages both cloudflared cli and a simple Web UI to easily start or stop remotely-managed Cloudflare tunnel.
160 stars 22 forks source link

icmp failed #14

Open suhai022 opened 6 months ago

suhai022 commented 6 months ago

WRN The user running cloudflared process has a GID (group ID) that is not within ping_group_range. You might need to add that user to a group within that range, or instead update the range to encompass a group the user is already in by modifying /proc/sys/net/ipv4/ping_group_range. Otherwise cloudflared will not be able to ping this network error="Group ID 0 is not between ping group 1 to 0"

try to use command : sysctl -w net.ipv4.ping_group_range="1 2147483647" sysctl: permission denied on key "net.ipv4.ping_group_range"

suhai022 commented 6 months ago

In your environment, modify the ping_group_range parameter to include the Group ID (GID) of the user running cloudflared.

By default the cloudflared Docker container executes as a user called nonroot inside of the container. nonroot is a specific user that exists in the base image we use(https://github.com/GoogleContainerTools/distroless/blob/859eeea1f9b3b7d59bdcd7e24a977f721e4a406c/base/base.bzl#L8), and its Group ID is hardcoded to 65532.