Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 17:03:48 +0000



Post From: Linux

[2023-07-18 14:38:36]
VLiviu - Posts: 223
Anyone who uses wine on mint linux and have network issues, I've found this:


10.3.4 Failed to use ICMP (network ping), this requires special permissions
On *NIX systems ICMP ping requires use of raw sockets, which is limited to super user (root) only. And running Wine as root is a bad idea. Fortunately newer versions of Linux allow granular permission control to grant only required permissions to specified files.

To allow Wine opening raw sockets run this command:

sudo setcap cap_net_raw+epi /usr/bin/wine-preloader
Note: This works with default binary Wine install only on most distros. WineHQ packages install Wine to /opt/wine-stable, /opt/wine-devel/, or /opt/wine-staging. Self-compiled Wine will be located under /usr/local/bin. The 64-Bit name is wine64-preloader. Third party Wine wrappers (such as PlayOnLinux) might keep Wine binary in other places. You will need to rerun the command after updating Wine.

To remove the permissions use:

sudo setcap -r /usr/bin/wine-preloader
Tango-style info icon.svg Beginning with Wine 5.7, the WineHQ Debian and Ubuntu packages have an optional debconf setting to enable CAP_NET_RAW to allow applications that need to send and receive raw IP packets to do so. This is disabled by default because it carries a potential security risk, and the vast majority of applications do not need that capability. Users of applications that do need it can enable CAP_NET_RAW after installing Wine by running

dpkg-reconfigure wine-<branch>-amd64 wine-<branch> wine-<branch>-i386
and answering yes to the three questions. (Substitute devel, staging, or stable for <branch> in the above command.)

Tried but no luck, I cant run ping in wine:


liviu  bobdenaut  ~  wine cmd
Microsoft Windows 6.1.7601

Z:\home\liviu>ping www.google.com
Pinging www.google.com [142.250.180.196] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 142.250.180.196
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

Z:\home\liviu>


Help anyone?
Thanks