I think this might not be the place to post a wine related script but I think it is the most easy to find spot.
I wanted to block access to the internet for some WINE apps.
I found many suggestions in the internet:
- using firejail : Did not work
- Modifying wine registry : Did not work
- Using a different user to run wine and then block using iptables : It might have worked but I don't want to do that.
What I found and it works for me (Buster Dog + wine appimage I posted in this forum) is this.
I created a script eg test.sh
Code: Select all
cd "/root/.wineCB14/drive_c/Program Files/testprogram/"
WINEPREFIX="/root/.wineCB14/" unshare -n wine test14.exe
I run this and it worked.