Can't block internet accesss for a prefix

Questions about Wine on Linux
Post Reply
meyer
Level 2
Level 2
Posts: 16
Joined: Sat Jul 15, 2017 2:38 am

Can't block internet accesss for a prefix

Post by meyer » Fri Nov 30, 2018 12:19 pm

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 7
Level 7
Posts: 921
Joined: Tue Nov 22, 2016 5:39 pm

Re: Can't block internet accesss for a prefix

Post by DarkShadow44 » Fri Nov 30, 2018 4:08 pm

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 2
Level 2
Posts: 16
Joined: Sat Jul 15, 2017 2:38 am

Re: Can't block internet accesss for a prefix

Post by meyer » Fri Nov 30, 2018 4:27 pm

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 2
Level 2
Posts: 16
Joined: Sat Jul 15, 2017 2:38 am

Re: Can't block internet accesss for a prefix

Post by meyer » Mon Dec 31, 2018 10:11 am

No other ideas about that?

User avatar
DarkShadow44
Level 7
Level 7
Posts: 921
Joined: Tue Nov 22, 2016 5:39 pm

Re: Can't block internet accesss for a prefix

Post by DarkShadow44 » Mon Dec 31, 2018 10:22 am

Only the idea to use native Linux tools.

Post Reply