How can I disable Internet access for programs running in Wine?
|
feedback
|
|
If you run wine as a seperate user, you can use the iptables owner module to disable internet access. For instance, if you create an user "wine", you can use the following commands: iptables -A OUTPUT --uid-owner wine -m tcp -p tcp -j REJECT --reject-with tcp-reset #fast, but only for tcp iptables -A OUTPUT --uid-owner wine -j REJECT #all other protocols | |||
|
feedback
|
|
Wine uses an equivalent of the Windows registry, accessed through regedit as with a normal Windows system. I would imagine there is a key buried in there somewhere that you could use to disable the network connection, or at least make it local-only. (I'm not an expert on the Windows registry, so I can't say where unfortunately) Alternatively, You could try setting Wine to use a proxy to access the internet, which would obviously fail if the proxy you specify doesn't exist. That is a bit of a hack though. | |||
|
feedback
|
|
Which programs are we talking about? Specific? All at once? In the latter case: Run them in a VM without network-access. | |||||
feedback
|