Can't block internet accesss for a prefix

Questions about Wine on Linux
Locked
meyer
Level 3
Level 3
Posts: 50
Joined: Sat Jul 15, 2017 2:38 am

Can't block internet accesss for a prefix

Post by meyer »

Hi,

i re-installed ubuntu 18.04 and updated from wine 3.11 staging to 3.21 staging. on 3.11 i disabled the internet access for a prefix using a proxy (https://wiki.winehq.org/FAQ#How_do_I_co ... a_proxy.3F), bit this doesn't work anymore. i opened regedit and edited/created the values, then "rebooted" wine using

Code: Select all

env WINEARCH=win32 WINEPREFIX=/home/user/.wine wineboot -r
and checked internet access with ping

Code: Select all

env WINEDEBUG=+wininet WINEARCH=win32 WINEPREFIX=/home/user/.wine wine ping www.google.de
and this is the output:
008c:fixme:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
008c:fixme:winediag:IcmpCreateFile Falling back to system 'ping' command as a workaround.
Pinging www.google.de [172.217.16.195] with 32 bytes of data:
Reply from 172.217.16.195: bytes=32 time=101ms TTL=57
Reply from 172.217.16.195: bytes=32 time=103ms TTL=57
Reply from 172.217.16.195: bytes=32 time=57ms TTL=57
Reply from 172.217.16.195: bytes=32 time=34ms TTL=57

Ping statistics for 172.217.16.195
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
Minimum = 34ms, Maximum = 103ms, Average = 74ms
i tried several ips in the proxyserver string in regedit, but nothings works. i also imported a *.reg file that i've created on my old ubuntu installation.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Can't block internet accesss for a prefix

Post by DarkShadow44 »

008c:fixme:winediag:IcmpCreateFile Falling back to system 'ping' command as a workaround.
I doubt system ping cares about wine settings.

The safest way to disable internet, is AFAIK to do it with linux tools.
meyer
Level 3
Level 3
Posts: 50
Joined: Sat Jul 15, 2017 2:38 am

Re: Can't block internet accesss for a prefix

Post by meyer »

When i install firefox in the prefix internet also works. thats not only a problem with ping. this worked with wine 3.11 all the time.
meyer
Level 3
Level 3
Posts: 50
Joined: Sat Jul 15, 2017 2:38 am

Re: Can't block internet accesss for a prefix

Post by meyer »

No other ideas about that?
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Can't block internet accesss for a prefix

Post by DarkShadow44 »

Only the idea to use native Linux tools.
Locked