Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I disable Internet access for programs running in Wine?

share|improve this question
up vote 1 down vote accepted

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

share|improve this answer

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.

share|improve this answer

Which programs are we talking about? Specific? All at once? In the latter case: Run them in a VM without network-access.

share|improve this answer
all the program running in wine, so how can i disable wine accessing the "internet"? sry for my english – LanceBaynes Feb 24 '11 at 21:21
Maybe there is a pure wine solution. If not, you may run wine under vmware for instance - get the VMware player software, run a linux in that player and wine on that linux, and restrict this virtual linux to not use the web. This might be possible with other virtual machines as well, which I don't have any experience with. Maybe it is possible as well in wine itself. – user unknown Feb 24 '11 at 21:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .