From ccfad43c81c0bc82c79cf0e9d1fd86105e78b669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Tue, 9 Nov 2021 21:17:38 +0100 Subject: [PATCH] docs: Add some documentation for proper ICMP ECHO system config. System ping utility cannot be used in SLR container so we need to use ICMP sockets. CW-Bug-Id: #19340 --- docs/ICMP_ECHO.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/ICMP_ECHO.md diff --git a/docs/ICMP_ECHO.md b/docs/ICMP_ECHO.md new file mode 100644 index 00000000..b0565cc3 --- /dev/null +++ b/docs/ICMP_ECHO.md @@ -0,0 +1,26 @@ +# ICMP ECHO requests (ping) + +Some games rely on ICMP ECHO requests to detect network connectivity, +or to measure connection ping. + +Proton supports sending ICMP ECHO requests using RAW sockets or DGRAM +ICMP sockets, but the former requires elevated priviledges, and the +latter may also be disabled by default. + +DGRAM ICMP sockets can be enabled for a given set of user groups by +running the following command, and will stay enabled until next reboot: + +``` +sudo sysctl -w net.ipv4.ping_group_range=" " +``` + +Where (resp ) is lower bound (resp higher) of the user +groups which will be allowed to create such sockets. It is possible to +enable them for any group by using "0 4294967295". + +In order for the configuration to be persistent, it is possible to add +the following line to `/etc/sysctl.conf` (or a file in `/etc/sysctl.d`): + +``` +net.ipv4.ping_group_range=" " +```